3D Overview

One of the best new features that the Windows Presentation Foundation (WPF) introduced is the ability to use 2D scalable vector graphics instead of bitmaps. But if this is not enough to you it is now also possible to use 3D elements that are placed into GUI just as any other graphic element.

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

Ab2d Overview diagram

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

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

RobotArm sample


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

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.

Copyright © 2006-2009 Andrej Benedik s.p. All Rights Reserved.