Stratos: Punto de Encuentro de Desarrolladores

¡Bienvenido a Stratos!

Acceder

Foros





Meshobject.visible

Iniciado por auron, 05 de Febrero de 2006, 08:28:51 AM

« anterior - próximo »

auron

 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.

auron

 Oh wait never mind... I used the Hide property instead. =)
If that's the case, the what's Visible for?

Haddd

 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)  






Stratos es un servicio gratuito, cuyos costes se cubren en parte con la publicidad.
Por favor, desactiva el bloqueador de anuncios en esta web para ayudar a que siga adelante.
Muchísimas gracias.