Hi Simon,

On Thu, Jul 8, 2010 at 11:09 PM, Simon Julier <[email protected]> wrote:
>
> I'm developing a video-see-through AR application which will show the user
> the contents of holes in the ground. To get the correct depth cues, the user
> should be able to see the contents of the hole only when they look down into
> it. From what I can tell, the right way to achieve this is to create some
> "phantom objects" which are transparent but occlude objects placed behind
> them. These phantom objects should be realised by writing them into the
> depth buffer only.
>
> Is that correct? If so, could anybody point me towards a suitable
> reference?
>

You can use the osg::ColorMask state attribute to prevent the object from
writing to the color buffer. I've used this technique in my
video-see-through apps.

Cheers,
Farshid
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to