
WPF 3D
文章平均质量分 54
wmjcom
学海无涯,苦中作乐,乐在其中!
展开
-
The Mysterious Normals Property
The Mysterious Normals Property (Part 1)December 16, 2006Roscoe, NYThese two figures are known as square cuboids: But notice how differently theyre colored. The one on the left has gradiated原创 2009-03-16 15:23:00 · 859 阅读 · 0 评论 -
WPF中使用AxisAngleRotation3D实现CAD的2D旋转功能
对于CAD图形来说,3D旋转比较常用,具体实现方法在上篇文章《WPF中3D旋转的实现 》中做了讲解,可以参考Daniel。 今天说一下CAD的2D旋转,2D旋转虽然不如3D那么常用,但也是CAD操作的基本功能需要实现。刚开始的做法是觉得用AxisAngleRotation3D没法实现2D旋转,所以用RotateTransform去实现。但是用它遇到的问题是旋转的trans原创 2010-04-29 14:37:00 · 5277 阅读 · 1 评论 -
WPF中使用TranslateTransform3D修改CAD的3D旋转中心
前面一篇文章讲述了2D旋转功能的实现,文章提到了修改3D旋转中心,这一节主要总结一下具体的修改3D旋转中心的实现方法。(这个功能的实现有一段时间了,需要通过代码好好总结一下) TranslateTransform3D以相对容器的偏移移动对象,通过OffsetX、OffsetY、OffsetZ属性来指定偏移量。 (1)定义对象 private T原创 2010-05-05 15:57:00 · 3450 阅读 · 0 评论 -
WPF中CAD control的XAML实现
下面这个XAML文件是cad control里面最重要的一部分,使用Grid包含Viewport,Viewport中包括Camera和model。 我以前和以后的关于WPF CAD的例子都是基于这个模板的,所以把这个文件单独放在一个文章里面,看其他文章遇到的话可以来查阅XAML的结构和一些Name。原创 2010-05-05 16:10:00 · 5185 阅读 · 0 评论 -
WPF结构、图形支持与DirectX学习
Windows呈现基础(Windows Presentation Foundation,WPF)是一个用于Windows平台的全新的图形显示系统。WPF是针对.NET而设计的,它受现代显示技术,如HTML和Flash,以及硬件加速技术的影响。WPF也完全不同于自从Windows 95以来一直使用的Windows用户界面。DirectX的Directness原理a. 最快速 --- 同硬件厂商合作实现特定的硬件功能.b. 最短延迟 --- 达到子弹打到你时就能听到你的惨叫, 不会象转载 2010-07-15 13:02:00 · 14014 阅读 · 0 评论 -
最优化WPF 3D性能(基于“Tier-2”硬件)
开发人员在应用程序中使用Windows Presentation Foundation来构建大量的3D控件、包含3D场景时,常常会遇到如何优化其性能的问题。WPF 3D组的几个成员提供了一个影响应用程序性能的3D类和属性的列表。当我们使用她们来优化应用程序性能时应该遵从这些建议。转载 2010-07-15 14:29:00 · 1450 阅读 · 0 评论 -
WPF在3D Cad模型中利用TextureCoordinates实现颜色渐变显示偏差值的变化
WPF中实现通过颜色连续和渐变来显示cad模型加工后零件的偏差变化。(1)利用SetRGBMaping()方法生成一张RGB的映射表,并将其作为材质应用在cad模型上。(2)遍历cad模型每一个Point3D,读取或者计算每一个点对应的偏差值(Deviation)。(3)根据偏差值计算出相应的color。(4)根据color计算出其在RGB映射表中的位置。(5)将这个位置添加到TextureCoordinates。原创 2010-11-18 16:44:00 · 3533 阅读 · 3 评论 -
WPF 3D model - Sphere, Cone, and Cylinder
Extending Visual3D - Sphere, Cone, and Cylinderhttp://blogs.msdn.com/b/danlehen/archive/2005/10/16/481597.aspx He put together a short sample which derives a Sphere, a Cone, and a Cylinder primi转载 2011-05-05 11:54:00 · 4765 阅读 · 0 评论 -
WPF: Creation of Text Labels for 3D Scene
转载:http://www.codeproject.com/KB/WPF/WPF_Text3D.aspxDownload demo - 26.46 KBDownload source - 37.19 KBIntroduction Some time ago, I started working on my application that takes the advantages转载 2011-11-20 20:20:07 · 1253 阅读 · 0 评论 -
WPF3D重要类之间的关系
1、WPF 3D重要类之间的关系 2、WPF 3D中几种不同光源 3、WPF的类图 类图转自:http://blogs.interknowlogy.com/downloads/johnbowen/Images/WPF_Poster.png原创 2012-04-11 10:56:37 · 1464 阅读 · 0 评论 -
WPF中3D旋转的实现
关于3D旋转的原理,请看Daniel Lehenbauer的文章《Rotating the Camera with the Mouse》http://viewport3d.com/trackball.htm 里面非常清楚的讲解了原理和方法,很受用。 相关代码: 2.1 Finding the Point on the Sphereprivate Vector3D原创 2010-04-27 14:11:00 · 11177 阅读 · 4 评论 -
Five Great WPF 3D Nuggets
学习WPF 3D知识,先看看这几个人的作品: If youre building a 3D application using Windows Presentation Foundation, youll find these links handy:Firstly, Daniel Lehenbauer shares the trackball implementation转载 2010-04-26 17:06:00 · 1024 阅读 · 0 评论 -
WPF 3D中多个模型如何设置某一个在最前?
问题:我们的模型包括导入的3D solid模型和axis坐标轴模型,当模型旋转的时候,3D会将axis挡住。期望:axis一直在最前面,不会被3D挡住。方法:(1) 将模型设置为透明,,同时,将axis使用EmissiveMaterial。这样实现可以在旋转后看到axis,但是这种方法并没有让axis放在最前,效果并不好,所以需要继续找到其他方法。(2) 看到有些文章中说到z原创 2009-03-25 14:03:00 · 1659 阅读 · 0 评论 -
Texture Coordinates and Visuals on 3D surfaces 纹理坐标
TextureCoordinates集合的每一个条目都是Brush空间的2D点。这些点将3D空间的三角形映射到Brush空间的三角形。当表面被渲染时,Brush空间的三角形提供了材质的颜色。One of the capabilities that WPF provides is the ability to render 2D visual elements on 3D surface. F原创 2009-03-26 11:20:00 · 2145 阅读 · 0 评论 -
WPF 3D 的十二天
Eric Sink撰写的The Twelve Days of WPF 3D的系列文章,完整介紹 WPF 3D,在此收录一下链接: The Twelve Days of WPF 3DFor the next twelve days, I will be posting one brief entry each day about WPF 3D.Performance issue转载 2009-03-25 11:41:00 · 1931 阅读 · 0 评论 -
WPF 3D Transparency Depth-Order Sorting
Just a quick post here - When making WPF 3D apps, transparency can make for some powerful visual effects. The trouble is that any re-orientation of your scene or the camera will ruin the rendering原创 2009-03-31 13:17:00 · 1900 阅读 · 0 评论 -
WPF中的3D Wireframe
WPF不支持画三维线,但开发人员提供了ScreenSpaceLines3D 类用于实现这个功能。我已经在程序中实现并成功显示3D Wireframe,并能够进行3D Solid和3D Wireframe的切换。我在熟悉这个类的基础上,自己定义了3D Wireframe xml文件的格式,用于保存3D Wireframe数据。格式如下: Form="Generic" Co原创 2009-03-31 13:20:00 · 5145 阅读 · 1 评论 -
使用WPF创建画图箭头
今天要给leader line画个箭头,所以就google一下,找到下面的文章,写的不错,可以实现我的需求,所以就摘录下来。我把源代码中的arraw.cs加入到我的工程,修改了namespace,然后写了个方法进行调用: private void DrawLeaderLineArrow(Point startPt, Point endPt) {原创 2009-04-15 14:36:00 · 10762 阅读 · 3 评论 -
WPF中的3D特性和常见的几个类
WPF 3D 常用的几个类及其关系1. Visual 类 所有二维可视化元素的基类,为 WPF 中的呈现提供支持,其中包括命中测试、坐标转换和边界框计算。 Visual 对象是一个核心 WPF 对象,其主要作用是提供呈现支持。用户界面控件(例如 Button 和 TextBox)派生自 Visual 类,并使用 Visual 定义的属性来保存它们所呈现的数据。原创 2009-11-04 12:38:00 · 9727 阅读 · 1 评论 -
Isometric View and Isometric Projection
Isometric projectionFrom Wikipedia, the free encyclopedia (Redirected from Isometric perspective)Jump to: navigation, searchFor isometric projection in video games, see Video games with i转载 2009-12-24 13:30:00 · 3254 阅读 · 0 评论 -
WPF 3D Hit Test method VisualTreeHelper.HitTest()
How to do 3D hit testing has come up a bit recently in the forums but essentially it isn’t any different than 2D hit testing which is described on MSDN here. You can either start with a 2D point on th原创 2009-12-28 12:44:00 · 2702 阅读 · 0 评论 -
WPF Chart Control With Pan, Zoom and More
IntroductionThis article gives an overview of the code and algorithms I created while writing a chart control for .NET 3.0/WPF. My chart control is useful in that it includes Pan/Zoom, has a clipboa转载 2012-09-04 13:34:25 · 2427 阅读 · 0 评论