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 !
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to