Overview of 3D graphics in Windows Presentation Foundation
Windows Presentation Foundation 3-D classes allow developers to create 3D models in Windows applications as a part of GUI.
3D Models involves
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.
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.
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.
create a 3D Model
Materials to the Model
There are three types of materials, based on their light reflecting property.
Diffuse Material - don't reflect light, ex. cotton clothes.
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.
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.
to our mailing list and receive new articles Note
: We never rent, trade, or sell my email lists to Visit
.NET Programming Tutorial Homepage ______________________________________________________
to our mailing list and receive new articles
: We never rent, trade, or sell my email lists to
Visit .NET Programming Tutorial Homepage