SlideShare una empresa de 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);

Más contenido relacionado

Destacado

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
 

Destacado (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
 

Similar a 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
 

Similar a 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
 

Último

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
parisharma5056
 
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
anilsa9823
 
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 💋 High Profile Call Girls in Lucknow - Book 8923113531 Call Girls Ava...
Lucknow 💋 High Profile Call Girls in Lucknow - Book 8923113531 Call Girls Ava...Lucknow 💋 High Profile Call Girls in Lucknow - Book 8923113531 Call Girls Ava...
Lucknow 💋 High Profile Call Girls in Lucknow - Book 8923113531 Call Girls Ava...
anilsa9823
 
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
anilsa9823
 
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKRAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
edwardsara83
 
Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)
Business Bay Call Girls || 0529877582 || Call Girls Service in Business Bay Dubai
 

Último (20)

Jeremy Casson - Top Tips for Pottery Wheel Throwing
Jeremy Casson - Top Tips for Pottery Wheel ThrowingJeremy Casson - Top Tips for Pottery Wheel Throwing
Jeremy Casson - Top Tips for Pottery Wheel Throwing
 
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
 
Patrakarpuram ) Cheap Call Girls In Lucknow (Adult Only) 🧈 8923113531 𓀓 Esco...
Patrakarpuram ) Cheap Call Girls In Lucknow  (Adult Only) 🧈 8923113531 𓀓 Esco...Patrakarpuram ) Cheap Call Girls In Lucknow  (Adult Only) 🧈 8923113531 𓀓 Esco...
Patrakarpuram ) Cheap Call Girls In Lucknow (Adult Only) 🧈 8923113531 𓀓 Esco...
 
Editorial sephora annual report design project
Editorial sephora annual report design projectEditorial sephora annual report design project
Editorial sephora annual report design project
 
Jeremy Casson - An Architectural and Historical Journey Around Europe
Jeremy Casson - An Architectural and Historical Journey Around EuropeJeremy Casson - An Architectural and Historical Journey Around Europe
Jeremy Casson - An Architectural and Historical Journey Around Europe
 
Storyboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to SingStoryboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to Sing
 
Lucknow 💋 Escorts Service Lucknow Phone No 8923113531 Elite Escort Service Av...
Lucknow 💋 Escorts Service Lucknow Phone No 8923113531 Elite Escort Service Av...Lucknow 💋 Escorts Service Lucknow Phone No 8923113531 Elite Escort Service Av...
Lucknow 💋 Escorts Service Lucknow Phone No 8923113531 Elite Escort Service Av...
 
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
 
Lucknow 💋 Escort Service in Lucknow (Adult Only) 8923113531 Escort Service 2...
Lucknow 💋 Escort Service in Lucknow  (Adult Only) 8923113531 Escort Service 2...Lucknow 💋 Escort Service in Lucknow  (Adult Only) 8923113531 Escort Service 2...
Lucknow 💋 Escort Service in Lucknow (Adult Only) 8923113531 Escort Service 2...
 
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...
 
Alex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson StoryboardAlex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson Storyboard
 
Lucknow 💋 High Profile Call Girls in Lucknow - Book 8923113531 Call Girls Ava...
Lucknow 💋 High Profile Call Girls in Lucknow - Book 8923113531 Call Girls Ava...Lucknow 💋 High Profile Call Girls in Lucknow - Book 8923113531 Call Girls Ava...
Lucknow 💋 High Profile Call Girls in Lucknow - Book 8923113531 Call Girls Ava...
 
Best Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel roomBest Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel room
 
GENUINE EscoRtS,Call Girls IN South Delhi Locanto TM''| +91-8377087607
GENUINE EscoRtS,Call Girls IN South Delhi Locanto TM''| +91-8377087607GENUINE EscoRtS,Call Girls IN South Delhi Locanto TM''| +91-8377087607
GENUINE EscoRtS,Call Girls IN South Delhi Locanto TM''| +91-8377087607
 
Aminabad @ Book Call Girls in Lucknow - 450+ Call Girl Cash Payment 🍵 8923113...
Aminabad @ Book Call Girls in Lucknow - 450+ Call Girl Cash Payment 🍵 8923113...Aminabad @ Book Call Girls in Lucknow - 450+ Call Girl Cash Payment 🍵 8923113...
Aminabad @ Book Call Girls in Lucknow - 450+ Call Girl Cash Payment 🍵 8923113...
 
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
 
Lucknow 💋 Call Girls in Lucknow ₹7.5k Pick Up & Drop With Cash Payment 892311...
Lucknow 💋 Call Girls in Lucknow ₹7.5k Pick Up & Drop With Cash Payment 892311...Lucknow 💋 Call Girls in Lucknow ₹7.5k Pick Up & Drop With Cash Payment 892311...
Lucknow 💋 Call Girls in Lucknow ₹7.5k Pick Up & Drop With Cash Payment 892311...
 
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
 
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKRAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
 
Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 00971588312479 # Call Girl Number In Dubai # (UAE)
 

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