[osg-users] is there a way to select an invisible object?
gianluca.natale at adstorino.it
Mon Jul 7 05:22:32 PDT 2008
What I mean is:
I have a scene made of 3 spheres,
each attached under a different switch node.
The first two spheres are visible (their switches
are turned on), while the third is not (so its
switch is turned off).
I would like to select also the third
sphere (imagine for example that I want
the third sphere to be visible only when the
mouse is over it), even when it is invisible.
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Robert
Sent: lunedì 7 luglio 2008 11.35
To: OpenSceneGraph Users
Subject: Re: [osg-users] is there a way to select an invisible object?
What do you mean by "select" and object?
What type of object?
On Mon, Jul 7, 2008 at 10:24 AM, Gianluca Natale
<gianluca.natale at adstorino.it> wrote:
> Hi All!
> I'm using OSG to implement my own scene graph
> to draw my scene on the screen.
> Sometimes I would need to select an object even if it
> is invisible (I mean that the switch node it is attached
> to is set to off). But this seems impossible to me,
> because I don't want to draw the object, so I have to
> disable that switch.
> On the other hand, if I disable the switch, how can I
> select it (with the standard OpenGL picking mechanism)?
> Do I have to duplicate the scene graph, one for
> selection and the other for drawing?
> Thank you in advance for your suggestions.
> Gianluca Natale
> osg-users mailing list
> osg-users at lists.openscenegraph.org
osg-users mailing list
osg-users at lists.openscenegraph.org
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.4.5/1536 - Release Date: 7/5/2008
More information about the osg-users