Wait so let me guess...

Osgcallback contains an example of this...

: )

Thanks Robert!

-Bryan

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Wednesday, April 16, 2008 10:13 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] placing image on scene

On Wed, Apr 16, 2008 at 5:42 PM, Bryan Berg <[EMAIL PROTECTED]> wrote:
> So my question is: how can I take a specific point of the scene and than
>
>             a)determine if it is to be viewed

A cull callback only gets called if the node hasn't yet been culled so
its one way of determining visibility.  Its not 100% accurate as
bounding volumes are larger than the model they enclose so its overly
conservative.  The only 100% reliable way is to render the objects and
use the OpenGL occlusion query extension to find out how many pixels
are visible.

>             b)if so, which window coordinate it corresponds to

>From within a cull callback you get get the accumulated modelview,
projection and window matrices that you can use to project the local
object coords into window coords.

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


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

Reply via email to