[osg-users] Strange behaviour - no explanation
Werner Modenbach
Werner.Modenbach at texion.eu
Wed Jan 24 09:04:37 PST 2018
Hi all,
I import a 3DS model and after import it shows me a flat structure of
geodes:
Final OSG node structure looks like this:
Group
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geometry
Geode
Geometry
Geode
Geometry
Geometry
Geode
Geometry
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geometry
Geometry
Geometry
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geometry
Geometry
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geometry
Geode
Geometry
Geode
Geometry
Geometry
Geode
Geometry
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geometry
Geometry
Geometry
Geode
Geometry
Geode
Geometry
Geometry
Geometry
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geode
Geometry
Geometry
Geode
Geometry
Geode
Geometry
I do a pick with a LineSegmentIntersector.
The Interesections array contains 1 hit.
It is a geometry and has 1 parent - the geode.
I want this geometry to show in line mode.
geometry->getOrCreateStateSet()->setAttribute(newosg::PolygonMode(osg::PolygonMode::FRONT_AND_BACK,osg::PolygonMode::LINE));
But many geometries show up in line mode.
I wrote a check NodeVisitor and this visitor finds many geometries being
set to LineMode.
I wrote another visitor which explicitely disables linemode on all
geometries after loading of the model:
geometry->getOrCreateStateSet()->setMode(osg::StateAttribute::POLYGONMODE,osg::StateAttribute::OFF);
I already spent many hours on that but I'm running out of ideas.
Any hint from someone in the list?
Many thanks in advance
- Werner -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180124/7dbd7da2/attachment-0001.html>
More information about the osg-users
mailing list