Re: [osg-users] Keep Geometry always visible withtout occlusions
Hi, Indeed, the depth attribute is the way to go. You also need to set a high RenderBin number to make sure that the object you don't want occluded is always rendered last: Code: mygeometry->getOrCreateStateSet()->setAttributeAndModes(new osg::Depth(osg::Depth::ALWAYS), osg::StateAttribute::ON); mygeometry->getOrCreateStateSet()->setRenderBinDetails(1000, "RenderBin"); Cheers, Jannik -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68031#68031 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Keep Geometry always visible withtout occlusions
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 Neoswrote: > 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
[osg-users] Keep Geometry always visible withtout occlusions
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