thought this to be an easy task, but I seem to be lost somewhere. How can I toggle the rendering of a whole mesh on and off? I tried to do it by setcullhint, but it only disappears, never to appear again.
Is there a way to accomplish this besides removing the geom from the scenegraph?
thought this to be an easy task, but I seem to be lost somewhere. How can I toggle the rendering of a whole mesh on and off? I tried to do it by setcullhint, but it only disappears, never to appear again.
Is there a way to accomplish this besides removing the geom from the scenegraph?
Regards
ghoust
Culling hint should work to toggle visibility on/off. You have to set it to inherit or never to get it visible again… I use this approach all the time so if that didn’t work then something else must have been wrong.
It was indeed a problem between controlUpdate and controlRender, instead of a cull hint problem.
thanx guys!
and thanx for sharing the other posibilities