Here's an idea.. First, apply a ClusterCullingCallback to each icon, with the normal vector being the up-vector at the icon's location. This is prevent icons from rendering behind the Earth .
Render the Earth normally, and then also to the stencil buffer. Increase the render bin # of the icons so it's higher than that of the Earth. Then, render the icons with an osg::Stencil attribute. Set it to pass on either z-pass OR stencil-pass. Finally, render everything else as usual (planes, etc). Maybe? Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 On Tue, Aug 4, 2009 at 6:19 AM, Sergey Bocharov <[email protected]> wrote: > Hi, > > yes, icons is the place labels on the eart (for example city label), > objects above earth - ballistic missile or plane. > > Now if label and air object is in one eye point - label masks air object. > > Sorry for my english, mixed up "under" and "above" in previous posts. :-) > > > > Thank you! > > Cheers, > Sergey > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=15769#15769 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

