SlideShare uma empresa Scribd logo
1 de 17
Andrei Iacob Microsoft Student Partners
Agenda ,[object Object],[object Object],[object Object]
Bazele unei scene 3D +x -x +y -y +z -z Sistemul de coordonate – right handed
Bazele unei scene 3D ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Bazele unei scene 3D ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Bazele unei scene 3D MeshGeometry3D Object DispatcherObject  (abstract) DependencyObject Freezable  (abstract) Animatable  (abstract) Geometry3D  (abstract) MeshGeometry3D
Bazele unei scene 3D MeshGeometry3D – exemplu <MeshGeometry3D Positions=&quot;-1 0 0, 0 1 0, 1 0 0&quot; TriangleIndices=&quot;0 2 1&quot; />
Bazele unei scene 3D MeshGeometry3D  + material = GeometryModel3D Object DispatcherObject  (abstract) DependencyObject Freezable  (abstract) Animatable  (abstract) Material  (abstract) DiffuseMaterial EmissiveMaterial MaterialGroup SpecularMaterial
Bazele unei scene 3D MeshGeometry3D  + material = GeometryModel3D <ModelVisual3D> <ModelVisual3D.Content> <GeometryModel3D> <GeometryModel3D.Geometry> <MeshGeometry3D Positions=&quot;-1 0 0, 0 1 0, 1 0 0&quot; TriangleIndices=&quot;0 2 1&quot; /> </GeometryModel3D.Geometry>   <GeometryModel3D.Material> <DiffuseMaterial Brush=&quot;Red&quot; /> </GeometryModel3D.Material>   <GeometryModel3D.BackMaterial> <DiffuseMaterial Brush=&quot;Blue&quot; /> </GeometryModel3D.BackMaterial> </GeometryModel3D> </ModelVisual3D.Content> </ModelVisual3D>
Bazele unei scene 3D Lumini Object DispatcherObject  (abstract) DependencyObject Freezable  (abstract) Animatable  (abstract) Model3D  (abstract) GeometryModel3D Light  (abstract) AmbientLight DirectionalLight PointLightBase (abstract) PointLight SpotLight
Bazele unei scene 3D Lumini <ModelVisual3D> <ModelVisual3D.Content> <AmbientLight Color=&quot;White&quot; /> </ModelVisual3D.Content> </ModelVisual3D>
Bazele unei scene 3D Camere Object DispatcherObject  (abstract) DependencyObject Freezable  (abstract) Animatable  (abstract) Camera  (abstract) MatrixCamera ProjectionCamera  (abstract) OrthographicCamera PerspectiveCamera
Bazele unei scene 3D Camere <Viewport3D.Camera> <PerspectiveCamera Position=&quot;0 0.5 3&quot; LookDirection=&quot;0 0 -1&quot;  UpDirection=&quot;0 1 0&quot; FieldOfView=&quot;90&quot; /> </Viewport3D.Camera> LookDirection  =  VisualCenter  –  Position
Bazele unei scene 3D Prima scen ă <Viewport3D> <ModelVisual3D> <ModelVisual3D.Content> <GeometryModel3D.Geometry> <!– Forma geometrica  </GeometryModel3D.Geometry>  <GeometryModel3D.Material>  <!-- Material -->  </GeometryModel3D.Material>  </GeometryModel3D> </ModelVisual3D.Content> </ModelVisual3D> <!-- Lumina -->   <ModelVisual3D> <ModelVisual3D.Content> <AmbientLight Color=&quot;White&quot; /> </ModelVisual3D.Content> </ModelVisual3D> <!-- Camera. --> <Viewport3D.Camera> <PerspectiveCamera Position=&quot;0 0.5 1.5&quot; LookDirection=&quot;0 0 -1&quot; UpDirection=&quot;0 1 0&quot; FieldOfView=&quot;120&quot; /> </Viewport3D.Camera> </Viewport3D> 
Bazele unei scene 3D Transform ări Object DispatcherObject  (abstract) DependencyObject Freezable  (abstract) Animatable  (abstract) Transform3D  (abstract) AffineTransform3D  (abstract) RotateTransform3D ScaleTransform3D TranslateTransform3D MatrixTransform3D Transform3DGroup
Scena 3D din C# ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Hit Testing public HitTestResultBehavior HTResult(System.Windows.Media.HitTestResult rawresult) {     RayHitTestResult rayResult = rawresult as RayHitTestResult;      if (rayResult != null)     {         RayMeshGeometry3DHitTestResult rayMeshResult = rayResult as RayMeshGeometry3DHitTestResult;           if (rayMeshResult != null)         {             GeometryModel3D hitgeo = rayMeshResult.ModelHit as GeometryModel3D;        //  Aici facem ceva cu modelul.           }      }      return HitTestResultBehavior.Continue; }  PointHitTestParameters pointparams = new PointHitTestParameters(mouseposition); VisualTreeHelper.HitTest(mainViewport, null, HTResult, pointparams);

Mais conteúdo relacionado

Destaque

Silverlight and Dynamic Languge Runtime @ Forum It
Silverlight and Dynamic Languge Runtime @ Forum ItSilverlight and Dynamic Languge Runtime @ Forum It
Silverlight and Dynamic Languge Runtime @ Forum ItAndrei Iacob
 
How to get engaged to/in social media
How to get engaged to/in social mediaHow to get engaged to/in social media
How to get engaged to/in social mediaNick Decrock
 
Slideshare ReVisited
Slideshare ReVisitedSlideshare ReVisited
Slideshare ReVisitedNick Decrock
 
You're buying on the wrong market!
You're buying on the wrong market!You're buying on the wrong market!
You're buying on the wrong market!Nick Decrock
 
The Comeback of the Watch
The Comeback of the WatchThe Comeback of the Watch
The Comeback of the WatchNick Decrock
 
Looking through a black mirror
Looking through a black mirrorLooking through a black mirror
Looking through a black mirrorNick Decrock
 
The Kama Sutra for Business Pleasures - Preview
The Kama Sutra for Business Pleasures - PreviewThe Kama Sutra for Business Pleasures - Preview
The Kama Sutra for Business Pleasures - PreviewNick Decrock
 
Social Media: the Rainbow Theory
Social Media: the Rainbow TheorySocial Media: the Rainbow Theory
Social Media: the Rainbow TheoryNick Decrock
 

Destaque (12)

Silverlight
SilverlightSilverlight
Silverlight
 
Silverlight and Dynamic Languge Runtime @ Forum It
Silverlight and Dynamic Languge Runtime @ Forum ItSilverlight and Dynamic Languge Runtime @ Forum It
Silverlight and Dynamic Languge Runtime @ Forum It
 
Wpf Workgroup
Wpf WorkgroupWpf Workgroup
Wpf Workgroup
 
.NET RDF APIs
.NET RDF APIs.NET RDF APIs
.NET RDF APIs
 
How to get engaged to/in social media
How to get engaged to/in social mediaHow to get engaged to/in social media
How to get engaged to/in social media
 
Slideshare ReVisited
Slideshare ReVisitedSlideshare ReVisited
Slideshare ReVisited
 
You're buying on the wrong market!
You're buying on the wrong market!You're buying on the wrong market!
You're buying on the wrong market!
 
Bsc
BscBsc
Bsc
 
The Comeback of the Watch
The Comeback of the WatchThe Comeback of the Watch
The Comeback of the Watch
 
Looking through a black mirror
Looking through a black mirrorLooking through a black mirror
Looking through a black mirror
 
The Kama Sutra for Business Pleasures - Preview
The Kama Sutra for Business Pleasures - PreviewThe Kama Sutra for Business Pleasures - Preview
The Kama Sutra for Business Pleasures - Preview
 
Social Media: the Rainbow Theory
Social Media: the Rainbow TheorySocial Media: the Rainbow Theory
Social Media: the Rainbow Theory
 

Semelhante a 3D Scene Basics in WPF

Advanced Game Development with the Mobile 3D Graphics API
Advanced Game Development with the Mobile 3D Graphics APIAdvanced Game Development with the Mobile 3D Graphics API
Advanced Game Development with the Mobile 3D Graphics APITomi Aarnio
 
[JS EXPERIENCE 2018] Jogos em JavaScript com WebGL - Juliana Negreiros, Codem...
[JS EXPERIENCE 2018] Jogos em JavaScript com WebGL - Juliana Negreiros, Codem...[JS EXPERIENCE 2018] Jogos em JavaScript com WebGL - Juliana Negreiros, Codem...
[JS EXPERIENCE 2018] Jogos em JavaScript com WebGL - Juliana Negreiros, Codem...iMasters
 
Visualization of Big Data in Web Apps
Visualization of Big Data in Web AppsVisualization of Big Data in Web Apps
Visualization of Big Data in Web AppsEPAM
 
Introduction to three.js
Introduction to three.jsIntroduction to three.js
Introduction to three.jsyuxiang21
 
3D Image visualization
3D Image visualization3D Image visualization
3D Image visualizationalok ray
 
From Sense to Print: Towards Automatic 3D Printing from 3D Sensing Devices
From Sense to Print: Towards Automatic 3D Printing from 3D Sensing DevicesFrom Sense to Print: Towards Automatic 3D Printing from 3D Sensing Devices
From Sense to Print: Towards Automatic 3D Printing from 3D Sensing Devicestoukaigi
 
EnrichmentWeek Binus Computer Vision
EnrichmentWeek Binus Computer VisionEnrichmentWeek Binus Computer Vision
EnrichmentWeek Binus Computer Visiongiamuhammad
 
mago3D: Let's integrate BIM and 3D GIS on top of FOSS4G
mago3D: Let's integrate BIM and 3D GIS on top of FOSS4Gmago3D: Let's integrate BIM and 3D GIS on top of FOSS4G
mago3D: Let's integrate BIM and 3D GIS on top of FOSS4GSANGHEE SHIN
 
Lab Practices and Works Documentation / Report on Computer Graphics
Lab Practices and Works Documentation / Report on Computer GraphicsLab Practices and Works Documentation / Report on Computer Graphics
Lab Practices and Works Documentation / Report on Computer GraphicsRup Chowdhury
 
DrTAD Blender software. Example 3. Images as Planes. Spin (3D Object). Materi...
DrTAD Blender software. Example 3. Images as Planes. Spin (3D Object). Materi...DrTAD Blender software. Example 3. Images as Planes. Spin (3D Object). Materi...
DrTAD Blender software. Example 3. Images as Planes. Spin (3D Object). Materi...FIDE Master Tihomir Dovramadjiev PhD
 
CSS3 2D/3D transform
CSS3 2D/3D transformCSS3 2D/3D transform
CSS3 2D/3D transformKenny Lee
 
Beginning direct3d gameprogramming05_thebasics_20160421_jintaeks
Beginning direct3d gameprogramming05_thebasics_20160421_jintaeksBeginning direct3d gameprogramming05_thebasics_20160421_jintaeks
Beginning direct3d gameprogramming05_thebasics_20160421_jintaeksJinTaek Seo
 
Analysis of Microsoft Code Contracts
Analysis of Microsoft Code ContractsAnalysis of Microsoft Code Contracts
Analysis of Microsoft Code ContractsPVS-Studio
 
SVCC 2013 D3.js Presentation (10/05/2013)
SVCC 2013 D3.js Presentation (10/05/2013)SVCC 2013 D3.js Presentation (10/05/2013)
SVCC 2013 D3.js Presentation (10/05/2013)Oswald Campesato
 
Designing an Objective-C Framework about 3D
Designing an Objective-C Framework about 3DDesigning an Objective-C Framework about 3D
Designing an Objective-C Framework about 3Drsebbe
 
Final_From 2D Image To 3D Object.pptx
Final_From 2D Image To 3D Object.pptxFinal_From 2D Image To 3D Object.pptx
Final_From 2D Image To 3D Object.pptxMohsenAbdelaziz5
 

Semelhante a 3D Scene Basics in WPF (20)

Maze VR
Maze VRMaze VR
Maze VR
 
Advanced Game Development with the Mobile 3D Graphics API
Advanced Game Development with the Mobile 3D Graphics APIAdvanced Game Development with the Mobile 3D Graphics API
Advanced Game Development with the Mobile 3D Graphics API
 
[JS EXPERIENCE 2018] Jogos em JavaScript com WebGL - Juliana Negreiros, Codem...
[JS EXPERIENCE 2018] Jogos em JavaScript com WebGL - Juliana Negreiros, Codem...[JS EXPERIENCE 2018] Jogos em JavaScript com WebGL - Juliana Negreiros, Codem...
[JS EXPERIENCE 2018] Jogos em JavaScript com WebGL - Juliana Negreiros, Codem...
 
Visualization of Big Data in Web Apps
Visualization of Big Data in Web AppsVisualization of Big Data in Web Apps
Visualization of Big Data in Web Apps
 
Introduction to three.js
Introduction to three.jsIntroduction to three.js
Introduction to three.js
 
3D Image visualization
3D Image visualization3D Image visualization
3D Image visualization
 
From Sense to Print: Towards Automatic 3D Printing from 3D Sensing Devices
From Sense to Print: Towards Automatic 3D Printing from 3D Sensing DevicesFrom Sense to Print: Towards Automatic 3D Printing from 3D Sensing Devices
From Sense to Print: Towards Automatic 3D Printing from 3D Sensing Devices
 
EnrichmentWeek Binus Computer Vision
EnrichmentWeek Binus Computer VisionEnrichmentWeek Binus Computer Vision
EnrichmentWeek Binus Computer Vision
 
mago3D: Let's integrate BIM and 3D GIS on top of FOSS4G
mago3D: Let's integrate BIM and 3D GIS on top of FOSS4Gmago3D: Let's integrate BIM and 3D GIS on top of FOSS4G
mago3D: Let's integrate BIM and 3D GIS on top of FOSS4G
 
Games 3 dl4-example
Games 3 dl4-exampleGames 3 dl4-example
Games 3 dl4-example
 
Lab Practices and Works Documentation / Report on Computer Graphics
Lab Practices and Works Documentation / Report on Computer GraphicsLab Practices and Works Documentation / Report on Computer Graphics
Lab Practices and Works Documentation / Report on Computer Graphics
 
DrTAD Blender software. Example 3. Images as Planes. Spin (3D Object). Materi...
DrTAD Blender software. Example 3. Images as Planes. Spin (3D Object). Materi...DrTAD Blender software. Example 3. Images as Planes. Spin (3D Object). Materi...
DrTAD Blender software. Example 3. Images as Planes. Spin (3D Object). Materi...
 
CSS3 2D/3D transform
CSS3 2D/3D transformCSS3 2D/3D transform
CSS3 2D/3D transform
 
Beginning direct3d gameprogramming05_thebasics_20160421_jintaeks
Beginning direct3d gameprogramming05_thebasics_20160421_jintaeksBeginning direct3d gameprogramming05_thebasics_20160421_jintaeks
Beginning direct3d gameprogramming05_thebasics_20160421_jintaeks
 
Analysis of Microsoft Code Contracts
Analysis of Microsoft Code ContractsAnalysis of Microsoft Code Contracts
Analysis of Microsoft Code Contracts
 
Work With Images
Work With ImagesWork With Images
Work With Images
 
Svcc 2013-d3
Svcc 2013-d3Svcc 2013-d3
Svcc 2013-d3
 
SVCC 2013 D3.js Presentation (10/05/2013)
SVCC 2013 D3.js Presentation (10/05/2013)SVCC 2013 D3.js Presentation (10/05/2013)
SVCC 2013 D3.js Presentation (10/05/2013)
 
Designing an Objective-C Framework about 3D
Designing an Objective-C Framework about 3DDesigning an Objective-C Framework about 3D
Designing an Objective-C Framework about 3D
 
Final_From 2D Image To 3D Object.pptx
Final_From 2D Image To 3D Object.pptxFinal_From 2D Image To 3D Object.pptx
Final_From 2D Image To 3D Object.pptx
 

Último

(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶delhimunirka444
 
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...anilsa9823
 
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call GirlsCall Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girlsparisharma5056
 
Call girls in Kanpur - 9761072362 with room service
Call girls in Kanpur - 9761072362 with room serviceCall girls in Kanpur - 9761072362 with room service
Call girls in Kanpur - 9761072362 with room servicediscovermytutordmt
 
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...anilsa9823
 
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...anilsa9823
 
Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...
Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...
Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...gurkirankumar98700
 
FULL ENJOY - 9953040155 Call Girls in Sector 142 | Noida
FULL ENJOY - 9953040155 Call Girls in Sector 142 | NoidaFULL ENJOY - 9953040155 Call Girls in Sector 142 | Noida
FULL ENJOY - 9953040155 Call Girls in Sector 142 | NoidaMalviyaNagarCallGirl
 
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comBridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comthephillipta
 
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...home
 
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...anilsa9823
 
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...Jeremy Casson
 
Turn Lock Take Key Storyboard Daniel Johnson
Turn Lock Take Key Storyboard Daniel JohnsonTurn Lock Take Key Storyboard Daniel Johnson
Turn Lock Take Key Storyboard Daniel Johnsonthephillipta
 
Gomti Nagar & High Profile Call Girls in Lucknow (Adult Only) 8923113531 Esc...
Gomti Nagar & High Profile Call Girls in Lucknow  (Adult Only) 8923113531 Esc...Gomti Nagar & High Profile Call Girls in Lucknow  (Adult Only) 8923113531 Esc...
Gomti Nagar & High Profile Call Girls in Lucknow (Adult Only) 8923113531 Esc...gurkirankumar98700
 
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...akbard9823
 
OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...
OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...
OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...hanshkumar9870
 
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...akbard9823
 
exhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptxexhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptxKurikulumPenilaian
 
Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...
Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...
Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...gurkirankumar98700
 

Último (20)

(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
 
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
 
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call GirlsCall Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
 
RAJKOT CALL GIRL 76313*77252 CALL GIRL IN RAJKOT
RAJKOT CALL GIRL 76313*77252 CALL GIRL IN RAJKOTRAJKOT CALL GIRL 76313*77252 CALL GIRL IN RAJKOT
RAJKOT CALL GIRL 76313*77252 CALL GIRL IN RAJKOT
 
Call girls in Kanpur - 9761072362 with room service
Call girls in Kanpur - 9761072362 with room serviceCall girls in Kanpur - 9761072362 with room service
Call girls in Kanpur - 9761072362 with room service
 
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
 
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
 
Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...
Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...
Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...
 
FULL ENJOY - 9953040155 Call Girls in Sector 142 | Noida
FULL ENJOY - 9953040155 Call Girls in Sector 142 | NoidaFULL ENJOY - 9953040155 Call Girls in Sector 142 | Noida
FULL ENJOY - 9953040155 Call Girls in Sector 142 | Noida
 
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comBridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
 
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
 
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
 
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
 
Turn Lock Take Key Storyboard Daniel Johnson
Turn Lock Take Key Storyboard Daniel JohnsonTurn Lock Take Key Storyboard Daniel Johnson
Turn Lock Take Key Storyboard Daniel Johnson
 
Gomti Nagar & High Profile Call Girls in Lucknow (Adult Only) 8923113531 Esc...
Gomti Nagar & High Profile Call Girls in Lucknow  (Adult Only) 8923113531 Esc...Gomti Nagar & High Profile Call Girls in Lucknow  (Adult Only) 8923113531 Esc...
Gomti Nagar & High Profile Call Girls in Lucknow (Adult Only) 8923113531 Esc...
 
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
 
OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...
OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...
OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...
 
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
 
exhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptxexhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptx
 
Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...
Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...
Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...
 

3D Scene Basics in WPF

  • 1. Andrei Iacob Microsoft Student Partners
  • 2.
  • 3. Bazele unei scene 3D +x -x +y -y +z -z Sistemul de coordonate – right handed
  • 4.
  • 5.
  • 6. Bazele unei scene 3D MeshGeometry3D Object DispatcherObject (abstract) DependencyObject Freezable (abstract) Animatable (abstract) Geometry3D (abstract) MeshGeometry3D
  • 7. Bazele unei scene 3D MeshGeometry3D – exemplu <MeshGeometry3D Positions=&quot;-1 0 0, 0 1 0, 1 0 0&quot; TriangleIndices=&quot;0 2 1&quot; />
  • 8. Bazele unei scene 3D MeshGeometry3D + material = GeometryModel3D Object DispatcherObject (abstract) DependencyObject Freezable (abstract) Animatable (abstract) Material (abstract) DiffuseMaterial EmissiveMaterial MaterialGroup SpecularMaterial
  • 9. Bazele unei scene 3D MeshGeometry3D + material = GeometryModel3D <ModelVisual3D> <ModelVisual3D.Content> <GeometryModel3D> <GeometryModel3D.Geometry> <MeshGeometry3D Positions=&quot;-1 0 0, 0 1 0, 1 0 0&quot; TriangleIndices=&quot;0 2 1&quot; /> </GeometryModel3D.Geometry>   <GeometryModel3D.Material> <DiffuseMaterial Brush=&quot;Red&quot; /> </GeometryModel3D.Material>   <GeometryModel3D.BackMaterial> <DiffuseMaterial Brush=&quot;Blue&quot; /> </GeometryModel3D.BackMaterial> </GeometryModel3D> </ModelVisual3D.Content> </ModelVisual3D>
  • 10. Bazele unei scene 3D Lumini Object DispatcherObject (abstract) DependencyObject Freezable (abstract) Animatable (abstract) Model3D (abstract) GeometryModel3D Light (abstract) AmbientLight DirectionalLight PointLightBase (abstract) PointLight SpotLight
  • 11. Bazele unei scene 3D Lumini <ModelVisual3D> <ModelVisual3D.Content> <AmbientLight Color=&quot;White&quot; /> </ModelVisual3D.Content> </ModelVisual3D>
  • 12. Bazele unei scene 3D Camere Object DispatcherObject (abstract) DependencyObject Freezable (abstract) Animatable (abstract) Camera (abstract) MatrixCamera ProjectionCamera (abstract) OrthographicCamera PerspectiveCamera
  • 13. Bazele unei scene 3D Camere <Viewport3D.Camera> <PerspectiveCamera Position=&quot;0 0.5 3&quot; LookDirection=&quot;0 0 -1&quot; UpDirection=&quot;0 1 0&quot; FieldOfView=&quot;90&quot; /> </Viewport3D.Camera> LookDirection = VisualCenter – Position
  • 14. Bazele unei scene 3D Prima scen ă <Viewport3D> <ModelVisual3D> <ModelVisual3D.Content> <GeometryModel3D.Geometry> <!– Forma geometrica  </GeometryModel3D.Geometry>  <GeometryModel3D.Material>  <!-- Material --> </GeometryModel3D.Material>  </GeometryModel3D> </ModelVisual3D.Content> </ModelVisual3D> <!-- Lumina -->   <ModelVisual3D> <ModelVisual3D.Content> <AmbientLight Color=&quot;White&quot; /> </ModelVisual3D.Content> </ModelVisual3D> <!-- Camera. --> <Viewport3D.Camera> <PerspectiveCamera Position=&quot;0 0.5 1.5&quot; LookDirection=&quot;0 0 -1&quot; UpDirection=&quot;0 1 0&quot; FieldOfView=&quot;120&quot; /> </Viewport3D.Camera> </Viewport3D> 
  • 15. Bazele unei scene 3D Transform ări Object DispatcherObject (abstract) DependencyObject Freezable (abstract) Animatable (abstract) Transform3D (abstract) AffineTransform3D (abstract) RotateTransform3D ScaleTransform3D TranslateTransform3D MatrixTransform3D Transform3DGroup
  • 16.
  • 17. Hit Testing public HitTestResultBehavior HTResult(System.Windows.Media.HitTestResult rawresult) {     RayHitTestResult rayResult = rawresult as RayHitTestResult;    if (rayResult != null)     {         RayMeshGeometry3DHitTestResult rayMeshResult = rayResult as RayMeshGeometry3DHitTestResult;         if (rayMeshResult != null)         {             GeometryModel3D hitgeo = rayMeshResult.ModelHit as GeometryModel3D;      // Aici facem ceva cu modelul.         }    }    return HitTestResultBehavior.Continue; } PointHitTestParameters pointparams = new PointHitTestParameters(mouseposition); VisualTreeHelper.HitTest(mainViewport, null, HTResult, pointparams);