Rendering order problem

Al Capique

23-11-2006 16:19:10

Hi to all

I'm having a problem with a generic type scene.
The scene have some trees and kiosks with alpha on its textures. The floor and the stones has simples textures.

It seems OGRE isn't sorting the meshes correctly in its rendering order management. In fact, I don“t quite understant how OGRE built-in rendering order works, and I wound like more information about it.



Thanks in advance.

Lioric

23-11-2006 17:54:18

Are the trees a single object?

Al Capique

23-11-2006 20:03:32

Yes, each tree is a different mesh.

gerds

28-11-2006 09:26:44

Does each tree have its origin within itself? eg: At the base of each tree?

We have problems with that sometimes ;)

In fact, all of the objects need to have their own seperate origin, this is the 'value' that will be used to determine rendering order.

Also, ensure the objects you want 'sorted' (ie: the objects which have transparent parts) have "depth_write off" in the xxx.material file. This is the setting that turns on 'alpha sorting'. *I'm not sure what you have to do in 3dsmax to get this setting to appear in the xxx.material file (I'm no 3dsmax guru ;) ).