I'm doing some kind of Collada scene exporter for my software. The scenes contain several models that are all Collada files.
So I export the scenes in which all the "instance_geometry" tags reference external files. No problem here (unless you use Blender that doesn't handle this!).
The problem is this one: now all my models are in a specific folder (with sub-folders) and are referenced with a relative path in the Collada scene files. (absolute paths wouldn't be valid as the software is to be distributed on other computers).
But what if the base directory of the models changes on the other computers? I need to specify a mesh base directory that can be easily changed.
So I'd like something like that :
Code :<instance_geometry url=Reference_to_base_dir + Path_relative_to_base_dir#MeshGeometry/>
where the Reference_to_base_dir is some kind of tag specified at the beginning of the scene file.
So my questions are :
- Is it possible to do this?
- If yes, how so? Where can I create the Reference_to_base_dir tag and how instance_geometries' url can refer to it ?