The 3D samples from my MIX11 session are now online. You can grab them on MSDN Code Gallery.
XNA Math Library – Math library from XNA which is planned for the SDK.
Triangle Sample – Draw a simple triangle by specifying vertices with position and color.
Color Cube Sample – Draw a rotating cube with solid or gradient color faces.
Animated Textured Cube Sample – Draw a rotating cube with texture shaded faces.
Controllable Textured Cube Sample – Draw a textured cube that can be rotated by Silverlight UI controls.
Solar Wind Sample – Draw the Earth with day and night transitions, atmosphere layers, and population density overlays. Demonstrates more advanced concepts like mipmaps, texture blending, multiple drawing passes, sampler states, and lighting.
Windows Café with the Babylon Engine – Make a virtual visit to the Windows Café in Paris. David Catuhe blogged about it here.
House Builder – John Papa wrote about this demo he showed in the keynote here.
Will the windows cafe code be made available? I really want to know how to create an intereactive camera.
@Karl: Yes, we’re hoping to put the Babylon Engine with the Windows Cafe model online on CodePlex.
I’d really like to see the Solar Wind Sample. Will that code be posted to codeplex sometime?
I’d like to play with adding some NASA Neo layers for a blog post.
Thanks
I wrote parts of the Solar Wind demo in a hurry and it continued to evolve as we developed the API. So, I have a little bit of code cleanup to do and then I’ll get that posted soon.
I’m looking forward to playing with your solar wind demo.
In the meantime I tried out the Babylon sample, but ran into a problem:
“Message: Invalid or malformed application: Check manifest”
Once I changed the solution ‘Babylon’ properties “Single Startup project” from ‘Babylon’ to ‘Babylon.Web’ all was good. Quite cool!
What are .bsf files?
Not much info turned up in Bing – BadukSearch/BadukTracer Selected Game File?
BSF = Babylon Scene File
It’s a custom format the engine knows how to parse. David Catuhe wrote an exporter for 3DSMax which dumps the geometry data to that format.
Good news, I’m nearly finished with the Solar Wind updates and will post it shortly.
Solar Wind has been posted.
http://code.msdn.microsoft.com/Solar-Wind-3D-Sample-4cb56170
Great!
Lots of fun ahead. I should be able to set up an overlayTexture loaded from some interesting WMS services.
Thanks much!
Here is an extension of your solar wind sample using the NASA Neo global data: http://blogs.onterrasystems.com/gisblog/?p=700
Thanks for all the great stuff in Silverlight 5 XNA!
Nice! I love the surface temperature layer. Great write up, and thanks for sharing.
Thanks for the post…You gave 3D samples so that silverlight developer can easily grab them from msdn code library.
Are there any news concerning the release of the windows cafe sources on codeplex? I’m really looking forward to have a look at how it was built.
The sources are already available at the link above.
I’m sorry, but I cannot find the windows cafe sample in the babylon toolkit sources.
David might have moved some things around.
The Babylon engine is here:
http://code.msdn.microsoft.com/Babylon-3D-engine-f0404ace
The cafe model is here:
http://david.blob.core.windows.net/babylon/wcafe.bsf
The museum model is here:
http://david.blob.core.windows.net/babylon/espilit.bsf
There are often written posts and articles about an exporter for 3DSMax written by David Catuhe to create .bsf files. Does anybody know what’s the name of this exporter or where I can find it? Need it really but still can’t find it!
thanks
Hi Linda,
The process to produce .bsf is a 2 steps process:
– First create your scene under 3ds max and use Vertice Nova to generate a .mxb. Vertice Nova as a free version available here :
http://www.vertice.fr/NovaStudio.aspx
– In the Babylon engine source (a href=http://code.msdn.microsoft.com/Babylon-3D-engine-f0404ace>http://code.msdn.microsoft.com/Babylon-3D-engine-f0404ace) you will find a BabylonImporter project which is able to process .mxb (using Nova Vertice free SDK). There is also a not finished Collada importer
Hope this helps !
Hi David
I’m a little bit confused about the import formats to be used with the current version of the babylon toolkit. In the current source code version on codeplex there is only a obj importer available. Is .bsf still supported in the new versions? What format should I use if I want to create an application with the latest version?
Thanks in advance!
Cheers
Marc
Hi Marc!
Actually Babylon Toolkit is not part of Babylon. The naming is confusing but the projects are not related except that they both talk about silverlight 3D
So to resume, Babylon Toolkit (as a low level toolkit) can import .obj and Babylon (as a high level scene API) works with complex scene format (.bsf) produced from 3dx max.
David.
Hi
I have a question about the ModelMesh class. I need the name of the different meshes. In the XNA framework there is also a ModelMesh class and there is a public property “Name”. (http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.graphics.modelmesh.name.aspx)
I know this is not the same class as the ModelMesh class in the Babylon Toolkit, but is there also a possibility to get the name of the meshes in the Babylon Toolkit?
Thanks in advance! 🙂
Hi Linda!
We are waiting for the next public release of Silverlight 5 to update the Babylon.Toolkit accordingly.
I note your point in our todo list 🙂
Can i get mesh information in Wcafe bsf model.I need to customize it..
how can i get mesh information in bsf model?
I have also simple Room bsf file.
Check out David’s response here:
http://babylontoolkit.codeplex.com/discussions/259361
Aaron, i need to change the wall color in W cafe 3d model at dynamically ..
It’s possible
@karthik: Changing the color when rendering is possible in a couple different ways. For example, one way to do this is to set the color of the vertices using a vertex shader, potentially with a value passed in from your application, then have the pixel shader return the vertex.color (with optional lighting adjustments).
yeah lot of thanks Aaron……………………………….
Hi Mr Aaron, please can you tell me how set backcolor on my 3D figures?, especifically, how can i set back color to the triangles?, do i need to modify VertexPositionColor struct? regards.
Hi Victor, this sample shows how to set vertex colors for your geometry:
http://code.msdn.microsoft.com/Colored-Non-Textured-3D-c0e3cda6
Hi Aaron, i have been change the 3d model color at dynamically,but it appears only for the standard materiel in 3d model,not in Multimatriel
Sample code:
babylonSurface.Scene.AmbientColor = new Microsoft.Xna.Framework.Color(138, 43, 26, 138);
In Nova Scene it’s possible to convert multi materiel as Standard materiel.
Is there any chance in babylon 3d engine sample code?
Please throw some light on these issues…
Aaron,
We tried changing the color of models (Objects) loaded from bsf file. We found a way to change the standard materials as below:
System.Collections.ObjectModel.ObservableCollection _models = babylonSurface.Scene.Models;
foreach (Babylon.Model _model in _models)
{
Babylon.StandardMaterial _stdMaterial = (Babylon.StandardMaterial)_model.Material;
_stdMaterial.Ambient = new Microsoft.Xna.Framework.Color(255, 0, 0, 255);
—
—
}
Is this right? And also how we can change other material type’s. In Vertice Nova, there is a way to attach another material to existing multimaterial and change that object’s material.
Is this possible in Babylon engine? Also is there a way to fetch the model under current mouse positon?
Overall we are trying to change the color / texture / underlying material, of the bsf loaded, where the mouse is right clicked (color / texture options thro’ some menu).
Thanks for your valuable time.
I don’t have the code in front of me at the moment, but if the material has a “Diffuse” color property you might consider using that instead of Ambient depending on whether you want lighting to be applied.
David Catuhe is the author of the Babylon engine and would be able to provide more insight into how it handles materials. It’s possible all models are rendered using the standard material.
For model and triangle picking, please see my comments on the subject here:
http://aarononeal.info/?p=203
Thanks for the right direction Aaron…
Please tell me how to convert mxb file from nova to bsf file.I am new to 3D application.