[osg-users] 2 Questions from a learner

Franclin Foping fsfoping at yahoo.fr
Mon Aug 6 05:12:08 PDT 2007


Hi everyone,
 I am a newbie in OSG. 
  -  My first question is about shader.
 I have added a vertex shader to a node but the node itself appears dark, anyone has an idea? 
 I tried to correct the issue using a tip from the FAQ (Q32) :     
stateSet->setMode( GL_RESCALE_NORMAL, osg::StateAttribute::ON );
 but still no result! Anyone knows why?
 - For the second question, my scene consists of 2 objects, say A and B. They update their positions using a callback and a user data. A and B have the same parent. Is there a mechanism to request the position of the other object in the callback of the other object? For instance within the  callback of A, I would like to request the position of the node B. 
 Thanks in advance for your reponse.
 Kind regards,
 Franclin

       
---------------------------------
 Stockage illimité de vos mails avec Yahoo! Mail. Changez aujourd'hui de mail !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070806/a9efac08/attachment.htm 


More information about the osg-users mailing list