3D Overview

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:

Ab2d Overview diagram

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).

More details about using Ab3d.Reader3ds can be found in its section.
Based on the Ab3d.Reader3ds the following applications and samples (with full source) are available:

Viewer3ds
[all videos]

Viewer3ds is a WPF application that can read 3ds files and convert them into xaml.

RobotArm sample

[all videos]

RobotArm sample demonstrates the power of Reader3ds - how simple is to create a 3D scene that can be fully manipulated from .net code - robot arm joints can be rotated, animation can be performed, lights turned on or off and more - see the sample. All this can be done with ease and without need to know all details about 3D programming in WPF.

The application is available with full source code and with a sample 3ds file.

 

Animator3ds sample application

[all videos]

Animator3ds is a sample WPF application than shows the power of the Reader3ds. It can play animated 3ds files. The application is very simple to use - just drag and drop a 3ds file into the app and press play or drag the slider.

The application is available with full source code and with a sample 3ds file.

|  Home  |  Blog  |  Users Forum  |  Contact Us  |  Terms and Conditions  |  Privacy Policy |
Copyright © 2006-2010 Andrej Benedik s.p. All Rights Reserved.