Results 1 to 5 of 5

Thread: exported dae xml file load error

  1. #1

    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.

    Code :
    <?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>

  2. #2
    Senior Member
    Join Date
    Jul 2004
    Location
    Santa Clara
    Posts
    356
    Please get a copy of the Coherency Check, and run your file through it.

    It will tell you:

    Code :
    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

  3. #3
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    Loads just great for me. Here's how I'm testing.
    Code :
    #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\n";
    	else
    		cout << "load failed\n";
    	cin.get();
     
    	return 0;
    }

  4. #4

    Coherency Test fails to run

    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

  5. #5
    Senior Member
    Join Date
    Jul 2004
    Location
    Santa Clara
    Posts
    356

    Re: Coherency Test fails to run

    Quote Originally Posted by grnbriar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •