Introduction

This sample shows a full 3D realtime engine with some advanced features and an integrated collisions system.

Live sample : http://david.blob.core.windows.net/babylon/Babylon.html

Updates

Update: Support for Silverlight 5 (RTM)
Update: Integration of the Silverlight 5 Toolkit: http://blogs.msdn.com/b/eternalcoding/archive/2011/10/04/silverlight-toolkit-september-2011-for-silverlight-5-what-s-new.aspx
Update: Integration of the new Babylon.Toolkit: http://babylontoolkit.codeplex.com.
Update: New version integrate the new Effect class and the Importer using Nova (http://www.vertice.fr) for 3dsMax. 

Description

The engine provides support for:

 

 

Sample of the drawing phase:

C#
Edit|Remove
        void OnDraw(object sender, DrawEventArgs e) 
        { 
            if (engine.Device == null) 
            { 
                engine.Device = e.GraphicsDevice; 
            } 
 
            engine.BeginFrame(e); 
 
            if (scene != null && scene.ActiveCamera != null) 
            { 
                scene.Render(); 
 
                lock (moves) 
                { 
                    foreach (MoveDirection move in moves) 
                    { 
                        scene.ControlManager.CheckKeyboard(move, e.DeltaTime.TotalMilliseconds); 
                    } 
                } 
            } 
 
            engine.EndFrame(); 
        } 
 

Babylon uses the SilverlightEffect to compile and use shaders. Using the XNA content pipeline, you can now define your own .fx files.

To do so:

To use this effect, you just have to instantiate a new SilverlightEffect inside your code.

 The engine provides a user control to quickly integrate a rendering in yours projects:

 

XAML
Edit|Remove
<Babylon:BabylonSurface x:Name="babylonSurface"/> 
 
 

Source Code Files

More Information

For more information, please contact davca@microsoft.com or go to http://blogs.msdn.com/b/eternalcoding