1 / 28

Dev311 未来应用的 3D 体验

Dev311 未来应用的 3D 体验. 课程内容概述. WPF 相关基础知识 WPF 技术概要 商机来了. WPF 相关基础知识. TM. Windows “Longhorn” Developer Architecture As Announced at PDC 2003. Presentation. Data. Communication. Base Operating System Services. 3D Graphics. 新一代 3D 技术面向更广泛的使用者 集成 – 在用户界面的任意位置使用 3D 效果 可以使用画刷来绘制 3D 表面.

patia
Télécharger la présentation

Dev311 未来应用的 3D 体验

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Dev311未来应用的3D体验

  2. 课程内容概述 • WPF 相关基础知识 • WPF技术概要 • 商机来了

  3. WPF 相关基础知识

  4. TM Windows “Longhorn” Developer ArchitectureAs Announced at PDC 2003 Presentation Data Communication Base Operating System Services

  5. 3D Graphics • 新一代3D技术面向更广泛的使用者 • 集成 – 在用户界面的任意位置使用3D效果 • 可以使用画刷来绘制3D表面

  6. Grid 3D in a 2D World • 布局只知道2D • 使用矩形窗体来容纳3D TextBlock StackPanel StackPanel DockPanel

  7. FrameworkElement Viewport3D • 容纳和渲染3D世界里的一个视角 • 布局将其看作一个元素 Viewport3D

  8. Viewport3D Contents • Model (模型) • Camera(摄影机) • Light (灯光)

  9. Camera Type OrthographicCamera 正视摄影机 PerspectiveCamera 透视摄影机

  10. Camera – Point of View • 摄影机位置 • 摄影机的坐标点 • 摄影机的转角 • 视觉范围(广角/远距摄影照片) <PerspectiveCamera Position="30,45,40" LookDirection="-2,-3,6" UpDirection="0,1,0" FieldOfView="55" />

  11. Light • AmbientLight泛光 • DirectionalLight 方向光源 • PointLight 点光灯 • SpotLight 聚光灯

  12. Model • Viewport3D 的子元素– ModelVisual3D • ModelVisual3D.Content – Model3DGroup • Model3D树-所有子元素都源自Model3D • Model3DGroup • GeometryModel3D • Light • ScreenSpaceLines3D

  13. GeometryModel3D • 为几何形状附材质 • Geometry 定义形状 • MeshGeometry3D, etc. • 光线效果是逐点计算的 (per-vertex) • 材质包含颜色和贴图 • 随意变换 • 使几何形状便于重用

  14. Materials – 3D Brushes • 定义表面的颜色或贴图 • Brush (e.g. SolidColorBrush or DrawingBrush) • GeometryModel3D = Geometry + Material • 材质类型影响反光的效果: • DiffuseMaterial – 不光滑表层 • SpecularMaterial – 抛光表层 • EmissiveMaterial – 附加混合 • 使用MaterialGroup将多种材质效果叠加 • E.g. DiffuseMaterial 的照片+ SpecularMaterial 的抛光表面

  15. Transformations • 任何Model3D元素都可以使用 • 简单的变换 • [Rotate|Scale|Translate]Transform3D • MatrixTransform3D支持更复杂的变换 • 使用Transform3DGroup合并多种变换

  16. 2D in a 3D World • 不能影射2D界面到3D 表面 • Material + VisualBrush 能仿制 • 看上去很美?其实不能交互 • 确实是活动的– 不能交互,但是会更新内容

  17. 3D and Feasibility • WPF 提供了一个简单易用的模型 • 性能上还与DirectX有差距,不可能比他更快 • 在交付设计前制作原型

  18. Review • Viewport3D – 通过一个2D 窗口展示3D 世界 • Camera定义场景中的视角 • Model定义场景中的内容 • 至少得有一个光源 • 任何元素都能做变换 • 可以使用任何画刷制作材质

  19. 商机来了!

  20. Windows Presentation Foundation (WPF) http://wpf.netfx3.com/ • MSDN.NET Framework 3.0  WPF http://msdn.microsoft.com/winfx/reference/presentation/ • 开发商中心 www.microsoft.com/china/msdn/isv • 技术合作: 领航计划,SaaS, IP Venture, VC • 深度培训 • 市场合作 • MSDN中文站 www.microsoft.com/china/msdn • 文档库 • 网络广播

More Related