The Collada exporter recognizes if 2 or more Objects reuse the same Data block, thus it creates the geometry information only once. The actual object names are then stored in the <visual_scene> block where all objects reference the same geometry. While very efficient, this method of instancing objects is not supported by some target systems (Second Life for example)
I see 2 options here:
- Either add a switch in the C code, which disables instantiation
when the "Export to Second Life" option is enabled (ugly)
- Or add an option "Use Object Instantiation" and disable
that in the "Second Life Preset" (pretty)
Since in my opinion target specific functions should be avoided, i prefered to implement the option instead of directly programming that into the Exporter. Then object instantiation can be enabled/disabled as needed.
In the attached patch i used the Object names for the Geometry naming when instantiation is disabled. This is exactly how Collada was implemented for Blender 2.49 where instantiation was also not supported. And Second Life seems to have originally adapted their importer to Blender 2.49 (just a guess).
My patch primary adds support for Second Life. But i could imagine that it may be useful also for other target systems.
Description
Description
Event Timeline
Comment Actions
applied in revision 47060 (i used the 2nd alternative and added the option "Use Object instantiation".