Hi Michael,

Michael Ortega wrote:

Hello,

I want to use the following lines in my application :

glColorMask(GL_FALSE,GL_FALSE,GL_FALSE,GL_FALSE);
   //here I draw an object
glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_TRUE);
(Thus, I draw an object only in the Depth buffer)

switching OpenGL state per drawable is the job of StateChunks. I think it would be easy
to write a derived StateChunk to do what you want.
See for example OSGBlendChunk.h/.cpp, methods activate / deactivate / changeFrom

If you want it for a complete drawing into a viewport, then a derived Viewport should be suitable.
See for example OSGColorBufferViewport.h/.cpp

My problem is the following :
My Opensg application is a client/server (two servers and one client), I would like to know where I could insert this codes lines ? How I can inform the servers that they must draw an objet only in the Depth Buffer ?

Both approaches work with clustering.

Christoph


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to