Roger James wrote :
This does not address the fundamental issue; that is that when a geode is
rendered in the OSG model in inherits the accumulated state from its parents
in the graph. It is this inherited state which defines which "materials" in
Collada terms are applied to the geometries. This is further complicated by
the fact that each geometry in a geode can have its own state that may
modify the inherited state. So to replicate the OSG rendering in Collada
terms it would appear as changes to the inherited stateSet are encountered
during a traversal of the of the OSG graph then each new "material" should
be named and defined in the "library". This means that when geode is
encountered any new "materials" encountered in the local geode stateSet and
any of the stateSets of the associated geometries need to be named and
defined in the "library". I don't know enough about Collada to decide if the
"materials" defined in the geometry stateSets can be locally defined! The
currently "active" materials then need to be bound to the Collada geometry
node and the local naming mechanism used to control the application of
materials defined in geometry(drawable) stateSets to their relevant meshes.
I knew I should have written this before I went to the pub!
Does it make any sense?
Yes, at least for me :-)
I'm in fact in the same situation : understanding what could be done but
without the collada knowledge I'd need to write the changes myself.
As you said the main question is whether we can reproduce the OSG's
StateSet inheriting in collada, or are we forced to create one material
for each geometry that has a different list of statesets attached to it.
I don't know enough about Collada to code this up myself. But maybe we can
work out the design together and I might be able to give it a go.
Roger
I'm OK with this approach and can help you to code the changes.
Sebastien.
------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
--
Sebastien Grignard
R&D Developer
Archivideo
40, rue des Veyettes - 35000 Rennes FRANCE
Phone: +033 2 99 86 30 20
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/