Classification: UNCLASSIFIED
Caveats: NONE

I can't answer all of them, but I've worked with two items:

>3) How can I make some objects invisible entirely for some period of
>time? I use update callbacks.

This is best done with the cull mask.  See setNodeMask() on Node objects and
setCullMask() on your view.

>5) Can I determine which object is effectively clicked? Or in other
>words, which object is the nearest to the camera at mouse pointer's
>coordinates, if any?

See the osgpick example for picking.  It does require you to click *on* an
object, not just near it.

Lee

-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Daniel
Drubin
Sent: Thursday, July 09, 2009 2:42 PM
To: OpenSceneGraph Users
Subject: [osg-users] A couple of questions

Greetings,

I got a couple of (hopefully trivial) questions. I work with my own
viewer class which is derived from osgViewer::Viewer.
I use OSG 2.6.1.

1) When I start rendering, the camera is always initially placed at
some default position and direction, which apparently displays at the
center the largest visible object. Is there a way to set the camera as
I wish?

2) I add lights to the scene and disable the default OSG light, but
still get the default lighting and my lights don't have an effect. Is
there something trivial that I miss?

3) How can I make some objects invisible entirely for some period of
time? I use update callbacks.

4) Can I use update callback for Root node?

5) Can I determine which object is effectively clicked? Or in other
words, which object is the nearest to the camera at mouse pointer's
coordinates, if any?

Thanks,
Daniel
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Classification: UNCLASSIFIED
Caveats: NONE



_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to