Hi Robert
Hi Sebastian,
I have just reviewed your changes to the obj plugin and am curious
when the apply(osg::Group& node) method that you have modified doesn't
just defer the the custom traverse() method to
pushStateSet/popStateSet(), instead the original author explicitly the
base class osg::NodeVisitor::traverse(node) method. This makes me
think the original author didn't want to have the
pushStateSet/popStateSet used for Group's for some reason.
The problem with the original implementation is that it will not export
materials which are not directly plugged into the Geode's stateset. The
pushed state is exclusively used for materials and textures.
Thus I expected this the correct way to tackle it. As for the custom
apply(osg::Group&): I believe this stems from the fact that OBJ allows
named "groups".
So maybe I simply don't used the correct way to make groups export their
properties.
Any suggestion how to tackle this problem differently? Currently
exporting scenes with materials bound to Group-derived nodes export with
out materials/textures etc.
The only thing that catches my eye is the fact, that instead of calling
node.traverse() the apply(Group) calls the
explicitosg::NodeVisitor::traverse( node )..
P.S. virtual void apply(osg::Geode &node); doesn't seem to have any
implementation, any ideas?
Cheers
Sebastian
Robert.
On 29 January 2016 at 11:40, Sebastian Messerschmidt
<[email protected]
<mailto:[email protected]>> wrote:
Hi Robert
The exporter wasn't taking all StateSets (specifically
group-statesets) into account when exporting materials.
Changes made against trunk.
Cheers
Sebastian
_______________________________________________
osg-submissions mailing list
[email protected]
<mailto:[email protected]>
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org