Kit 3D
Kit3D is a 3D graphics engine written for Microsoft Silverlight. Kit3D was initally released in a JavaScript format to run with Silverlight 1.0, now there is a new release which is written for the upcoming Silverlight 2 release. The new version of the engine is written in C# and the classes now model the WPF3D types which are found in the System.Windows.Media.Media3D namespace. Applications written using Kit3D will look nearly identical to code written to produce WPF3D content.
NOTE: Use this library at your own risk, it does not come with any level of support.
There are still lots of things to work on:
- XAML Parser
- Improving coverage of WPF3D types
- Improve texture mapping
- View Frustum Culling - stop items outside of the view area from being visible
If you want to try to use this library, then there is a test project which is in the code you can download from http://www.codeplex.com/kit3d. Also the library is modelled after the WPF System.Windows.Media.Media3D namespace, so you can look at the following link to get an overview of how to use this library More info Obviously this library is just a subset of the actual WPF3D namespace.
EXAMPLES
The following demos were all written in C# and taken mainly from existing examples using WPF3D syntax, in order to run these samples you will need to install the Silverlight Beta2 install, which can be found at: http://www.microsoft.com/silverlight/resources/install.aspx?v=2.0
This sample was converted from Charles Petzold's 3D Programming for Windows book (really awesome book) www.charlespetzold.com
Sphere
This sample was converted from Charles Petzold's 3D Programming for Windows book (really awesome book) www.charlespetzold.com
Dodecahedron
An example of texture mapping
Texture Example
A tiger created with solid polygons
Solid Tiger
A tiger created with textured polygons
Texture Tiger
An example of using hit testing to know when the user click on an object in 3D, mouse down and drag on the torus to rotate the image
Hit Testing Example
This sample was converted from Charles Petzold's 3D Programming for Windows book (really awesome book) www.charlespetzold.com
Solar System
This sample was based on an excellent set of WPF tutorials at http://blogs.inetium.com/blogs/mhodnick/archive/2006/03/30/34.aspx
Rotating Cubes
The following demos were written using the Javascript version of the engine and work on 1.0 versions of Silverlight and above:
To see some demos, you can click on the following links (in order for the demos to work you will need to download and install Silverlight 1.0 from Microsoft [http://www.microsoft.com/Silverlight/]):
Spinning cubes with solid faces
Spinning cubes with texture mapped faces
Spinning playing cards with texture mapped faces
3D Picture Grid
Getting the code: The code and examples can be downloaded from
www.codeplex.com/Kit3D In
order to build the code you need to have a full version of Visual Studio (the
Express versions don't work with the SL2 install) http://silverlight.net/GetStarted