SlideShare une entreprise Scribd logo
1  sur  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);

Contenu connexe

En vedette

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
Andrei Iacob
 

En vedette (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
 

Similaire à Wpf Workgroup 4

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
toukaigi
 
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
SANGHEE SHIN
 
CSS3 2D/3D transform
CSS3 2D/3D transformCSS3 2D/3D transform
CSS3 2D/3D transform
Kenny Lee
 
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
rsebbe
 

Similaire à Wpf Workgroup 4 (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
 

Dernier

9711106444 Ghaziabad, Call Girls @ ₹. 1500– Per Shot Per Night 7000 Delhi
9711106444 Ghaziabad, Call Girls @ ₹. 1500– Per Shot Per Night 7000 Delhi9711106444 Ghaziabad, Call Girls @ ₹. 1500– Per Shot Per Night 7000 Delhi
9711106444 Ghaziabad, Call Girls @ ₹. 1500– Per Shot Per Night 7000 Delhi
delhimunirka15
 
Call Girls In Chattarpur | Contact Me ☎ +91-9953040155
Call Girls In Chattarpur | Contact Me ☎ +91-9953040155Call Girls In Chattarpur | Contact Me ☎ +91-9953040155
Call Girls In Chattarpur | Contact Me ☎ +91-9953040155
SaketCallGirlsCallUs
 
Museum of fine arts Lauren Simpson…………..
Museum of fine arts Lauren Simpson…………..Museum of fine arts Lauren Simpson…………..
Museum of fine arts Lauren Simpson…………..
mvxpw22gfc
 
Mussafah Call Girls +971525373611 Call Girls in Mussafah Abu Dhabi
Mussafah Call Girls +971525373611 Call Girls in Mussafah Abu DhabiMussafah Call Girls +971525373611 Call Girls in Mussafah Abu Dhabi
Mussafah Call Girls +971525373611 Call Girls in Mussafah Abu Dhabi
romeke1848
 
Nehru Nagar, Call Girls ☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genui...
Nehru Nagar, Call Girls ☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genui...Nehru Nagar, Call Girls ☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genui...
Nehru Nagar, Call Girls ☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genui...
delhimunirka15
 
Call Girls In Dilshad Garden | Contact Me ☎ +91-9953040155
Call Girls In Dilshad Garden | Contact Me ☎ +91-9953040155Call Girls In Dilshad Garden | Contact Me ☎ +91-9953040155
Call Girls In Dilshad Garden | Contact Me ☎ +91-9953040155
SaketCallGirlsCallUs
 
obat aborsi Klaten wa 082135199655 jual obat aborsi cytotec asli di Klaten
obat aborsi Klaten wa 082135199655 jual obat aborsi cytotec asli di Klatenobat aborsi Klaten wa 082135199655 jual obat aborsi cytotec asli di Klaten
obat aborsi Klaten wa 082135199655 jual obat aborsi cytotec asli di Klaten
siskavia95
 
FULL ENJOY —📞9711106444 ✦/ Vℐℙ Call Girls in Jasola Vihar, | Delhi🫶
FULL ENJOY —📞9711106444 ✦/ Vℐℙ Call Girls in Jasola Vihar, | Delhi🫶FULL ENJOY —📞9711106444 ✦/ Vℐℙ Call Girls in Jasola Vihar, | Delhi🫶
FULL ENJOY —📞9711106444 ✦/ Vℐℙ Call Girls in Jasola Vihar, | Delhi🫶
delhimunirka15
 
WhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) Delhi
WhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) DelhiWhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) Delhi
WhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) Delhi
delhimunirka15
 
Azad Nagar Call Girls ,☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genuin...
Azad Nagar Call Girls ,☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genuin...Azad Nagar Call Girls ,☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genuin...
Azad Nagar Call Girls ,☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genuin...
delhimunirka15
 

Dernier (20)

9711106444 Ghaziabad, Call Girls @ ₹. 1500– Per Shot Per Night 7000 Delhi
9711106444 Ghaziabad, Call Girls @ ₹. 1500– Per Shot Per Night 7000 Delhi9711106444 Ghaziabad, Call Girls @ ₹. 1500– Per Shot Per Night 7000 Delhi
9711106444 Ghaziabad, Call Girls @ ₹. 1500– Per Shot Per Night 7000 Delhi
 
Call Girls In Chattarpur | Contact Me ☎ +91-9953040155
Call Girls In Chattarpur | Contact Me ☎ +91-9953040155Call Girls In Chattarpur | Contact Me ☎ +91-9953040155
Call Girls In Chattarpur | Contact Me ☎ +91-9953040155
 
New Call Girls In Shamli 8617370543 Shamli Escorts Service
New Call Girls In Shamli 8617370543 Shamli Escorts ServiceNew Call Girls In Shamli 8617370543 Shamli Escorts Service
New Call Girls In Shamli 8617370543 Shamli Escorts Service
 
Museum of fine arts Lauren Simpson…………..
Museum of fine arts Lauren Simpson…………..Museum of fine arts Lauren Simpson…………..
Museum of fine arts Lauren Simpson…………..
 
Turn Off The Air Con - The Singapore Punk Scene
Turn Off The Air Con - The Singapore Punk SceneTurn Off The Air Con - The Singapore Punk Scene
Turn Off The Air Con - The Singapore Punk Scene
 
Jaro je tady - Spring is here (Judith) 4
Jaro je tady - Spring is here (Judith) 4Jaro je tady - Spring is here (Judith) 4
Jaro je tady - Spring is here (Judith) 4
 
Call Girls Ahwa Just Call 📞 8617370543 Top Class Call Girl Service Available
Call Girls Ahwa Just Call 📞 8617370543 Top Class Call Girl Service AvailableCall Girls Ahwa Just Call 📞 8617370543 Top Class Call Girl Service Available
Call Girls Ahwa Just Call 📞 8617370543 Top Class Call Girl Service Available
 
Mussafah Call Girls +971525373611 Call Girls in Mussafah Abu Dhabi
Mussafah Call Girls +971525373611 Call Girls in Mussafah Abu DhabiMussafah Call Girls +971525373611 Call Girls in Mussafah Abu Dhabi
Mussafah Call Girls +971525373611 Call Girls in Mussafah Abu Dhabi
 
Just Call Vip call girls Farrukhabad Escorts ☎️8617370543 Two shot with one g...
Just Call Vip call girls Farrukhabad Escorts ☎️8617370543 Two shot with one g...Just Call Vip call girls Farrukhabad Escorts ☎️8617370543 Two shot with one g...
Just Call Vip call girls Farrukhabad Escorts ☎️8617370543 Two shot with one g...
 
Nehru Nagar, Call Girls ☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genui...
Nehru Nagar, Call Girls ☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genui...Nehru Nagar, Call Girls ☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genui...
Nehru Nagar, Call Girls ☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genui...
 
Call Girls In Dilshad Garden | Contact Me ☎ +91-9953040155
Call Girls In Dilshad Garden | Contact Me ☎ +91-9953040155Call Girls In Dilshad Garden | Contact Me ☎ +91-9953040155
Call Girls In Dilshad Garden | Contact Me ☎ +91-9953040155
 
Orai call girls 📞 8617370543At Low Cost Cash Payment Booking
Orai call girls 📞 8617370543At Low Cost Cash Payment BookingOrai call girls 📞 8617370543At Low Cost Cash Payment Booking
Orai call girls 📞 8617370543At Low Cost Cash Payment Booking
 
obat aborsi Klaten wa 082135199655 jual obat aborsi cytotec asli di Klaten
obat aborsi Klaten wa 082135199655 jual obat aborsi cytotec asli di Klatenobat aborsi Klaten wa 082135199655 jual obat aborsi cytotec asli di Klaten
obat aborsi Klaten wa 082135199655 jual obat aborsi cytotec asli di Klaten
 
Azamgarh Call Girls WhatsApp Chat: 📞 8617370543 (24x7 ) Service Available Nea...
Azamgarh Call Girls WhatsApp Chat: 📞 8617370543 (24x7 ) Service Available Nea...Azamgarh Call Girls WhatsApp Chat: 📞 8617370543 (24x7 ) Service Available Nea...
Azamgarh Call Girls WhatsApp Chat: 📞 8617370543 (24x7 ) Service Available Nea...
 
FULL ENJOY —📞9711106444 ✦/ Vℐℙ Call Girls in Jasola Vihar, | Delhi🫶
FULL ENJOY —📞9711106444 ✦/ Vℐℙ Call Girls in Jasola Vihar, | Delhi🫶FULL ENJOY —📞9711106444 ✦/ Vℐℙ Call Girls in Jasola Vihar, | Delhi🫶
FULL ENJOY —📞9711106444 ✦/ Vℐℙ Call Girls in Jasola Vihar, | Delhi🫶
 
Storyboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to SingStoryboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to Sing
 
WhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) Delhi
WhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) DelhiWhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) Delhi
WhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) Delhi
 
Azad Nagar Call Girls ,☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genuin...
Azad Nagar Call Girls ,☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genuin...Azad Nagar Call Girls ,☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genuin...
Azad Nagar Call Girls ,☎️ ((#9711106444)), 💘 Full enjoy Low rate girl💘 Genuin...
 
Digital C-Type Printing: Revolutionizing The Future Of Photographic Prints
Digital C-Type Printing: Revolutionizing The Future Of Photographic PrintsDigital C-Type Printing: Revolutionizing The Future Of Photographic Prints
Digital C-Type Printing: Revolutionizing The Future Of Photographic Prints
 
Call Girls In Firozabad Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
Call Girls In Firozabad Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...Call Girls In Firozabad Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
Call Girls In Firozabad Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
 

Wpf Workgroup 4

  • 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);