i dig up this old post to ask for help on the same subject.
I would like to try to reference externals collada files with the simplest file. "sthomas" gave a trivial example above but i can't reproduce it.
I downloaded the "cube.dae" sample file from the Collada test model bank. I would like to reference it from another dae file. This is the file :
Code :<?xml version="1.0"?> <COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1"> <asset> <created>2006-06-21T21:23:22Z</created> <modified>2006-06-21T21:23:22Z</modified> <up_axis>Y_UP</up_axis> </asset> <library_visual_scenes> <visual_scene id="VisualSceneNode" name="untitled"> <node name="cube"> <instance_node url="cube.dae"/> </node> </visual_scene> </library_visual_scenes> <scene> <instance_visual_scene url="#VisualSceneNode"/> </scene> </COLLADA>
Of course, this file and cube.dae are in the same folder.
When i run coherencyTest on it, it can't resolve the uri :
Code :ERROR: DOM Error Handler msg=daeStandardURIResolver::resolveElement() - Failed to resolve file:/D:/Documents/Utilitaires/ColladaSamples/testInclusion/cube.dae ERROR: CHECK_uri Failed uri=file:/D:/Documents/Utilitaires/ColladaSamples/testInclusion/cube.dae not resolved ERROR: DOM Error Handler msg=daeStandardURIResolver::resolveElement() - Failed to resolve file:/D:/Documents/Utilitaires/ColladaSamples/testInclusion/cube.dae
If I append "#rootNode" after cube.dae, i get the same result.
2 remarks :
- Collada Schema is 1.4.1? Does it support external references or only the 1.5?
- CoherencyTest could not resolve "file:/D:/Documents/Utilitaires/ColladaSamples/testInclusion/cube.dae". I would expect file://. But when i write the full path with that, i get even more errors.
Could someone help me?
What am i doing wrong ?
Where can i get a sample file with working external references ?