[osg-users] Keep Geometry always visible withtout occlusions

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Wed Jul 6 13:26:18 PDT 2016


you can add Depth attribute to your fat vertex with ALWAYS set as a depth

something like

osg::Depth(osg::Depth::ALWAYS), osg::StateAttribute::ON)

On Wed, Jul 6, 2016 at 9:08 PM, Daniel Neos <daniel.rd at hotmail.de> wrote:

> Hi,
> I have a scene consisting one geometry node. This node contains 2
> geometries. One of them has a lot of vertices, color are bound per vertex.
> The other one is a single vertex, but set with a point of the size of 15,
> basically it is just a 'fat' vertex. This servers as a marker.
> This marker shall be always visibile, but unfortunalety the other geometry
> mostly occludes the marker. It seems like the marker is stuck in between.
> I managed it to get it always visible with making the marker opaque and
> setting the other geometry as transparent.
> But now since it is transparent, unwanted (but understandable) effects
> occurs (the background can shine through).
> Is there a way to always keep a marker unoccluded with letting the actual
> geometry opaque.
> Thank you!
> Cheers,
> Daniel
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68025#68025
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160706/5764117c/attachment-0003.htm>

More information about the osg-users mailing list