Overview of 3D graphics in Windows Presentation FoundationWindows Presentation Foundation 3-D classes allow developers to create 3D models in Windows applications as a part of GUI. Creating
3D Models involves Coordinate System Cameras and Projections With Camera, a 3D model can be viewed in different angles. The camera can be positioned at any distance from the model for a particular view angle. The NearPlaneDistance and FarPlaneDistance properties of ProjectionCamera limit the range for the projection, the model within this range are displayed in the screen. There
are two types of Camera available in WPF Using Perspective camera, 3D models can be visualized more realistically. There is a vanishing point for Perspective camera, the point where the edges of the surfaces tend to join. In Orthographic projection, edges are parallel. Model and Mesh Primitives At present the Windows Presentation Foundation supports modeling geometries with GeometryModel3D and the Geometry property of this particular model takes a mesh primitive. There
are two types of 3D models The Mesh is a model defined using surfaces, formed using triangle. The solid model is it defined using volume. The WPF supports 3D models based on the mesh geomentry. To
create a 3D Model
Applying
Materials to the Model There are three types of materials, based on their light reflecting property. 1.
Diffuse Material - don't reflect light, ex. cotton clothes. Illuminating
the Scene There
are 4 types of lights Directional light - It is like a beam of light rays. It has only the direction vector, but no location. Point light - It has position information. The objects near to the light get more illuminated than the objects in the far. Spot light - it is derived from the point light and directional light. They have both direction and position. InnerConeAngle, OuterConeAngle, and position are specified. Transforming
Models Animating
Models Thus
as a developer you can use the Windows Presentation Foundation 3-D classes to
create 3D model for giving more visual representation of their system.
FREE
Subscription
Subscribe
to our mailing list and receive new articles Note
: We never rent, trade, or sell my email lists to Visit
.NET Programming Tutorial Homepage ______________________________________________________ |