blinkseb
22-03-2006 10:17:42
Hello,
I'm new to 3ds max and oFusion, so sorry, my question will probably be stupid ...
I'm trying to make a simple animation of a door. In max, the animation plays fine, but, when i'm export the scene to ogre, or when i use the ogre viewport, the animation doesn't plays, and i don't understand why ...
I made the window of the door transparent, using the "opacity". It works in max, but in ogre, the window is just white ...
My scene :
http://insence.free.fr/scene.rar
Again, sorry for my stupids questions, and for my english
Lioric
22-03-2006 17:36:15
Select the door multi material (1 - Default in your scene) in the Material Editor and click on "Update Mat" in the oFusion toolbar or in the oFusion menu
The materials will be automatically updated to Ogre materials and you can fine tune the glass window material
There are several ways to do an object transparent, you can use the vertex color and alpha values of the part of the mesh you want to make transparent (disable lighting in the material to use the vertex color/alpha of the vertices)
Or you can use a 1D alpha texture (a single pixel texture will work) that you apply to all your trasparent part, and use alpha blend mode
You can use the fog settings of the material to make a semi transparent object
Or simply, in your scene, you can set the pass blend mode of the trasparent material to "modulate", disable depth write, and use the specular and diffuse color to make the opacity, like in this image, click to see it bigger
Additionally you can add an enviroment map to create a more glass like effect, click this image to see it bigger
Or you can use shaders to create advanced glass materials
About the animation of the door, the object in the scene is a "procedural" object that gets its animation updated in the internally "door creator"
You can convert it to a mesh edit object, and detach the door element to animate it manually
m_ali_alex
15-06-2006 04:22:02
hi there i created glass in 3dmax using mental-ray
and after that i discovered that it is not compatiable with ogre
do you have any suggestion how to create glass on offusion
thanks
Lioric
15-06-2006 04:31:52
m_ali_alex
15-06-2006 20:31:07
yes the way i created "using mental-ray" uses shading and ior
Lioric
16-06-2006 17:20:16
Interactive shaders are very different from off-line shaders (i.e. mental ray)
When we refer to shaders here (and in any interactive case) we mean "gpu" shaders, or if you prefer D3D9 or OpenGL shaders
In RenderMonkey there are good examples of several types of glass shaders
Read the "Using Render Monkey shaders" tutorial from the Artist Center to learn how to use render monkey shaders with oFusion
VerTiGo
06-02-2007 15:37:08
Hi, could you please update the screenshot, the actual oFusion has more options for blending. Creating the glass works, but using a envoirment-map for pseudo-reflections fails, I get a too strong effect of the envoirment.
I want to use glass for museum-showcases, so it is necessary that I'm able to see the objects inside.
Thanks & Bye
Lioric
06-02-2007 16:17:43
You can download the complete animated glass sample scene (with alpha environment mapping) in the "Example Scenes" section of the "Artist's Center"