|
Creating applications that use 3D objects can be a hard task. But with tools and
libraries on wpf-graphics this becomes really easy.
With Ab3d.PowerToys library you can
define the 3D scene with setting the camera (SceneCamera, FirstPersonCamera,
ThirdPersonCamera, etc.), defining 3D objects (Box, Sphere, Plane,
etc.), use 3D lines and simply use events on 3D
objects.
More complex 3D objects can be defined in 3D modelling
application, saved to 3ds file and converted into XAML
with Viewer3ds or directly imported
into your application with Ab3d.Reader3ds.
The following schema shows how to get 3D objects into your application:

It is really very simple to define 3D planes that shows some content. It is also
easy to define some simple 3D elements like boxes and spheres. But when you want
to create more complex 3D elements like custom 3D buttons, 3D presentation of some
object, you have a problem - how to prepare the 3D objects in a way the WPF will
show them. So how to import the object data into WPF's Positions, TrinagleIncices,
TexureCoordinates, etc.
The tools and libraries on this site can help you overcome this problem with real
ease. All you have to do is to save you 3D data in 3ds file format.
3ds is the most commonly used file format for storing 3D content. This format was
used by AutoDesk's 3D Studio program. Because of the great popularity of this program,
the file format has become very widely used. Almost all 3D modeling programs support
some kind of import from or export to this file format. Also, there are huge web
libraries that are providing objects in this file format (see 60 Excellent Free 3D Model Websites for a list of online
3D libraries and my Links page for a list of free 3D modeling
applications).
|