Foros - Stratos

Proyectos => Jad Engine => Mensaje iniciado por: auron en 05 de Febrero de 2006, 08:28:51 AM

Título: Meshobject.visible
Publicado por: auron en 05 de Febrero de 2006, 08:28:51 AM
 Hey Haddd,

I was playing around with the MeshObject.Visible property.
The engine wouldn't render the cube if it is to false right?

I tried it on the Tutorial 1 demo and it doesn't seem to work.
The cube still shows even after doing this

Haddd.Scene.MeshObjects["room"].Visible = false;

I tried putting it in the Initialisation portion of the code and in the Action part as well but it doesn't work.
Título: Meshobject.visible
Publicado por: auron en 05 de Febrero de 2006, 09:53:26 AM
 Oh wait never mind... I used the Hide property instead. =)
If that's the case, the what's Visible for?
Título: Meshobject.visible
Publicado por: Haddd en 05 de Febrero de 2006, 10:04:04 AM
 The Visible property is used internally for the engine to tell what meshes are visible. I will change it to a read only property, because you can not change its values.

When you begin the scene, the scenegraph makes visible=true the meshes that are visible from the camera. It's a propery for knowing what meshes have been rendered.

As you have discovered, Hide is the right property to "hide" a mesh.  (ole)