exported dae xml file load error

Can you tell me why this simple file won’t load?
I’m finally getting the exporter to work.
This sometimes dies in dae->load (no source available it says) and sometimes when I get to getMesh - the mesh having a garbage reference count.
Only writing out the first 10 vertices at the moment to test.


<?xml version="1.0"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
    <asset>
        <created>2007-6-11T13:30:00Z</created>
        <modified>2007-6-11T13:30:00Z</modified>
        <unit meter="25" name="meter"/>
        <up_axis>Y_UP</up_axis>
    </asset>
    <library_images/>
    <library_effects/>
    <library_materials/>
    <library_visual_scenes>
        <visual_scene id="Scene">
            <node id="blMilGirlPT">
                <instance_geometry url="#blMilGirlPT"/>
            </node>
        </visual_scene>
    </library_visual_scenes>
    <library_geometries>
        <geometry id="blMilGirlPT">
            <mesh>
                <source id="points">
                    <float_array count="30">-0.34488 -0.34488 -0.34488 -0.28144 -0.28144 -0.28144 -0.33808 -0.33808 -0.33808 -0.24576 -0.24576 -0.24576 -0.28992 -0.28992 -0.28992 -0.17296 -0.17296 -0.17296 -0.18648 -0.18648 -0.18648 -0.14984 -0.14984 -0.14984 -0.15432 -0.15432 -0.15432 -0.12504 -0.12504 -0.12504</float_array>
                    <technique_common>
                        <accessor count="10" offset="0" source="#points" stride="3">
                            <param name="X" type="float"/>
                            <param name="Y" type="float"/>
                            <param name="Z" type="float"/>
                        </accessor>
                    </technique_common>
                </source>
                <vertices id="">
                    <input semantic="POSITION" source="#points"/>
                </vertices>
            </mesh>
        </geometry>
    </library_geometries>
    <scene>
        <instance_visual_scene url="#Scene"/>
    </scene>
</COLLADA>

Please get a copy of the Coherency Check, and run your file through it.

It will tell you:


CHECK_schema Error   msg=Element  {http://www.collada.org/2005/11/COLLADASchema} created': '2007-6-11T13:30:00Z' is not a valid value of the atomic type 'xs:dateTime'.

CHECK_schema Error   msg=Element  {http://www.collada.org/2005/11/COLLADASchema} modified': '2007-6-11T13:30:00Z' is not a valid value of the atomic type 'xs:dateTime'.

CHECK_schema Error   msg=Element  {http://www.collada.org/2005/11/COLLADASchema} library_images': Missing child element(s). Expected is one of ( {http://www.collada.org/2005/11/COLLADASchema}asset, {http://www.collada.org/2005/11/COLLADASchema}image ).

CHECK_schema Error   msg=Element {http://www.collada.org/2005/11/COLLADASchema} library_effects': Missing child element(s). Expected is one of ( {http://www.collada.org/2005/11/COLLADASchema}asset, {http://www.collada.org/2005/11/COLLADASchema}effect ).

CHECK_schema Error   msg=Element  {http://www.collada.org/2005/11/COLLADASchema} library_materials': Missing child element(s). Expected is one of ( {http://www.collada.org/2005/11/COLLADASchema}asset, {http://www.collada.org/2005/11/COLLADASchema}material ).

CHECK_schema Error   msg=Element {http://www.collada.org/2005/11/COLLADASchema}
vertices', attribute 'id': '' is not a valid value of the atomic type 'xs:ID'.
Unique ID conflict id=blMilGirlPT, docURI=file:test.dae 

CHECK_InstanceGeometry failed (type=node,id=blMilGirlPT)  no bind materials in instance geometry

Loads just great for me. Here’s how I’m testing.

#include <iostream>
#include <dae.h>

using namespace std;

int main() {
	DAE dae;
	if (dae.load("file:///c:/models/grnbriar.dae") == DAE_OK)
		cout << "load succeeded
";
	else
		cout << "load failed
";
	cin.get();

	return 0;
}

What does the coherencytest run in?
It is exactly what I need, but I tried the 1.0 and 1.1 on Windows XP Pro and neither will run . ‘System cannot execute the specified program’.

David

It should work fine.

Seems like you are having trouble on your system (fail to load in DOM, fail to run the coherency test)

This specific topic has moved here