Thanks Robert for the answer. 

Currently I am not sure my code is CVS compatible :) I perfom an update a 
couple of weeks ago, do not remember when. I will try first to dig deeper into 
the pb to see whether or not I can find a workaround, else I will update my cvs 
version...

Thanks.

Best Regards,
 
Jerome 



-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Robert Osfield
Sent: Tue 12/5/2006 9:58 PM
To: osg users
Subject: Re: [osg-users] custom drawable shared across sceneview
 
Hi Jerome,

In the CVS version of the OSG I have moved across to passing in a new
class object class osg::RenderInfo.  RenderInfo "has a" osg::State, as
well use "osg::View" and user data field.  The user data field is
possibly something that will be of use to you.

Robert.

On 12/5/06, SCHMID, Jerome <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>
>  I have a question for the drawImplementation and osg::State gurus...
>
>  I have 2 SceneView, each attached to a render window, and their
> corresponding subrgaph share 1 drawable from which I have implemented a
> drawImplementation function. By getting setting the ContextId of the
> sceneview state, I can successfully share classic osg nodes, in order to get
> synchronized displays in both views.
>
>  Now my pb is that I need to perform different operation into the
> drawImplementation function dependng which window/sceneview is currently
> drawn. How I achieve this?
>
>  What information can I get from the osg::State argument of the
> drawImplementation? Should I use the contextId and so by consequence have
> all the information for decision inside the custom drawable?
>
>  Or is there a way to "embbed" object into the State (by creating a new
> class?)
>
>  Hope I have been clear...Thank in advance.
>
>  Best Regards,
>
>  Jerome Schmid
>
>  ---------------------------------------------
>  Jerome SCHMID
>  Project Manager / Engineer
>  Augmented and Virtual Reality
>  Minimally Invasive Surgical Skills Center (MISS)
>  http://www.hkmisc.org.hk/
>  Prince of Wales Hospital
>  Chinese University Of Hong Kong
>  ----------------------------------------------
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/



<<winmail.dat>>

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to