I don't really like the integration templates that much. I looked into using them for the plugin but decided against it for this reason. Not all of everything loaded gets used in a scene. To clarify that you may have a document that has many huge geometries, but only one is instanced in the scene. If you are using the integration templates then all of the geometries that are loaded into the DOM will be converted. That would lead to some really slow load times. With COLLADA we want to enable modular content storage, ie one document is only a library of geometries, another document effects, etc. If one document references an external document, via URI like in instance_geometry, the DOM will automatically load the document to get that reference. So many unused assets may be loaded in the DOM and the integration templates would take time to convert them all. If you walk the scene yourself you avoid that.
-Andy Drew Whitehouse wrote: > I'm going over the dae plugin source at the moment, as well as reading > the collada_dom docs and code, I'm just wondering why the plugin wasn't > based on the integration templates ? > > -Drew > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
