[Solved] Hidden entity is visible

Cha

29-05-2009 14:08:44

Hi all :)

I've searched on the forum for my problem and found it :
If you want to make sure that some entity will not be rendered, hide it in max and enable "Export Hidden" support at the export dialog, in this case the entity will not be rendered, but can be made visible later with the "setVisible" method

Well, I've made a scene in 3DS Max with an hidden object. I've exported it, enabling "Export Hidden", but when I load the scene in Ogre, object which has to be hidden is rendered.
I can of course set it to be not visible with the function "setVisible" but I will not do that in bigger scene for all objects...
If I look in the .osm, the propertie "hidden" of the entity is set to true, but in Ogre it's rendered. I don't understand.
Any idea ?

Thanks !
Cha

Evak

29-05-2009 19:49:15

Hmm, you know there really should be way to hide meshes. Surprised that visibility visibility spinnerin object properties, or renderable and visible to camera can't be used to set whether an object is hidden or not. See image below.



that was mostly a suggestion to lioric and the ofusion team.

One thing you can do to make your objects invisible is create a material. You don't need to have an alpha texture, just make a basic material and set alpha_rejection always fail in your ofusion material pass. If you have lots of hidden objects, or objects that will be hidden give them a nametag that you can parse through in the ogre scene manager using a callback, and change their material all at once when you need them visible.

We have hidden collision meshes in our projects, and use a _COL flag, all meshes with _COL in the name are found, hidden and have newton static tree collision added at runtime.

Cha

09-06-2009 09:48:55

Thanks for your answer.
I've finally done what I wanted to do. Thanks again !