Hi,

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

something like

mygeometry->getOrCreateStateSet()->setAttributeAndModes(new
osg::Depth(osg::Depth::ALWAYS), osg::StateAttribute::ON)

On Wed, Jul 6, 2016 at 9:08 PM, Daniel Neos <daniel...@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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



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

Reply via email to