Results 1 to 7 of 7

Thread: when i open the DAE, nothing happens

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    7

    when i open the DAE, nothing happens

    hello

    currently i'm coding a collada exporter, and today tried to load exported DAEs into some viewers:

    http://www.pinecoast.com/collview.htm
    http://sourceforge.net/projects/colladaloader/
    and 3DS MAX too

    , but when the loading DAE file process is complete, nothing appears on the screen - the scene is empty

    i have looked at several examples, but haven't found the bug in the exported DAE

    maybe you can spot the bug?

    the exported DAE is here:
    http://myjavaserver.com/~kuchumovn/file ... s.M3GM.zip

  2. #2
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    There are a few tools available that can help you check a Collada document for errors. One is xmllint. The Collada Wiki has more info on how to use it. The other is a program called Collada Coherency Test, available as part of the Collada Refinery project on SourceForge. The coherency test does schema validation but also checks for a bunch of other problems that aren't detected by validating against the schema.

    I ran xmllint on your file and it failed to validate. You're missing the required <created> and <modified> tags in the <asset> element, and you need a <technique> element in <effect><profile_COMMON>. Once I fixed those problems the document passed validation.

    Steve

  3. #3
    Junior Member
    Join Date
    Jan 2008
    Posts
    7
    m, i've just thought that maybe that scientific notation of float numbers is the case

    at least now it shows some weird mesh

    okay then, i think the topic can be closed

    //------------------------

    thanks, sthomas

  4. #4
    Junior Member
    Join Date
    Jan 2008
    Posts
    7
    i have been running coherecyTest several times, and have found and fixed several bugs

    but i haven't managed to resolve the last error:

    WARNING: DOM Warning Handler msg=daeDefaultIDRefResolver::resolveElement() - failed to resolve poweruptex_invis.png
    WARNING: (type=node,id=the_object)binding not found for material symbol
    ERROR: CHECK_count Failed: expected=129, result=0(type=source,id=object_mesh_texture_coordi nates)array count != number of name in array value_count

    the DAE file and the texture are at the same url:
    http://myjavaserver.com/~kuchumovn/file ... s.M3GM.zip

    maybe you can say me, what this error message means?

  5. #5
    Junior Member
    Join Date
    Jan 2008
    Posts
    7
    today i've found the error - i have been outputting texture coordinates as UV and not as STP

    now only those 2 warnings aren't eliminated

    and the object is being displayed untextured

    //------------------------------------------------------

    oh, yeah - i have specified another material in the triangles section

    now the second warning is gone and the material is correct

    //------------------------------------------------------

    no warnings now
    still no texture

  6. #6
    Junior Member
    Join Date
    Jan 2008
    Posts
    7
    oh, i think i may have got it - in object material's diffuse properties i have specified a color, but if i intended to wrap the object with the texture i should have placed there something like this:

    Code :
    <effect>
     <profile_COMMON>
     
            <newparam sid="C__project_archivos_necesarios_para_ejecutar_el_exe_static_model_HORSE.jpg-surface">
              <surface type="2D">
                <init_from>C__project_archivos_necesarios_para_ejecutar_el_exe_static_model_HORSE.jpg</init_from>
                <format>A8R8G8B8</format>
              </surface>
            </newparam>
            <newparam sid="C__project_archivos_necesarios_para_ejecutar_el_exe_static_model_HORSE.jpg-sampler">
              <sampler2D>
                <source>C__project_archivos_necesarios_para_ejecutar_el_exe_static_model_HORSE.jpg-surface</source>
                <minfilter>LINEAR_MIPMAP_LINEAR</minfilter>
                <magfilter>LINEAR</magfilter>
              </sampler2D>
            </newparam>
     
      <phong>
        <diffuse>
                  <texture texture="C__project_archivos_necesarios_para_ejecutar_el_exe_static_model_HORSE.jpg-sampler" texcoord="CHANNEL1">
                  </texture>

  7. #7
    Junior Member
    Join Date
    Jan 2008
    Posts
    7
    if somebody somewhen faces similar issues - the correct DAE file: (textured sphere)

    Code :
    <?xml version="1.0" encoding="ISO-8859-1"?>
     
    <COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
      <asset>
        <contributor>
          <author>Bungie studios</author>
          <comments>3d-object from Oni, extracted with Oni Model Extractor</comments>
          <copyright>Take Two Interactive</copyright>
        </contributor>
        <created>2008-01-27T23:02:57.854Z</created>
        <modified>2008-01-27T23:02:57.854Z</modified>
        <up_axis>Z_UP</up_axis>
      </asset>
      <library_materials>
        <material id="object_material" name="object_material">
          <instance_effect url="#object_material_effect"/>
        </material>
      </library_materials>
      <library_effects>
        <effect id="object_material_effect" name="object_material_effect">
          <profile_COMMON>
            <newparam sid="object_surface">
              <surface type="2D">
                <init_from>texture</init_from>
              </surface>
            </newparam>
            <newparam sid="texture_sampler">
              <sampler2D>
                <source>object_surface</source>
                <minfilter>LINEAR_MIPMAP_LINEAR</minfilter>
                <magfilter>LINEAR</magfilter>
              </sampler2D>
            </newparam>
            <technique sid="common">
              <phong>
                <ambient>
                  <color>0.1 0.1 0.1 1</color>
                </ambient>
                <diffuse>
                  <texture texture="texture_sampler" texcoord="texture_channel"/>
                </diffuse>
                <specular>
                  <color>0.9 0.9 0.9 1</color>
                </specular>
                <shininess>
                  <float>40</float>
                </shininess>
              </phong>
            </technique>
          </profile_COMMON>
        </effect>
      </library_effects>
      <library_geometries>
        <geometry id="object_geometry" name="object_geometry">
          <mesh>
            <source id="object_mesh_coordinates">
              <float_array id="object_mesh_coordinate_array" count="129">0.038008 -0.760000 -0.000000 0.038008 -0.537401 -0.537401 0.418008 -0.537401 -0.380000 0.038008 -0.760000 -0.000000 0.575409 -0.537401 -0.000000 0.038008 -0.760000 -0.000000 0.418008 -0.537401 0.380000 0.038008 -0.760000 -0.000000 0.038008 -0.537401 0.537401 0.038008 -0.760000 -0.000000 -0.341992 -0.537401 0.380000 0.038008 -0.760000 -0.000000 -0.499393 -0.537401 -0.000000 0.038008 -0.760000 -0.000000 -0.341992 -0.537401 -0.380000 0.038008 -0.760000 -0.000000 0.038008 -0.537401 -0.537401 0.038008 0.000000 -0.760000 0.575409 0.000000 -0.537401 0.798008 -0.000000 0.000000 0.575409 -0.000000 0.537401 0.038008 -0.000000 0.760000 -0.499393 0.000000 0.537401 -0.721992 0.000000 -0.000000 -0.499393 0.000000 -0.537401 0.038008 0.000000 -0.760000 0.038008 0.537401 -0.537401 0.418008 0.537401 -0.380000 0.575409 0.537401 0.000000 0.418008 0.537401 0.380000 0.038008 0.537401 0.537401 -0.341992 0.537401 0.380000 -0.499393 0.537401 -0.000000 -0.341992 0.537401 -0.380000 0.038008 0.537401 -0.537401 0.038008 0.760000 0.000000 0.038008 0.760000 0.000000 0.038008 0.760000 0.000000 0.038008 0.760000 0.000000 0.038008 0.760000 0.000000 0.038008 0.760000 0.000000 0.038008 0.760000 0.000000 0.038008 0.760000 0.000000</float_array>
              <technique_common>
                <accessor source="#object_mesh_coordinate_array" count="43" stride="3">
                  <param name="X" type="float"/>
                  <param name="Y" type="float"/>
                  <param name="Z" type="float"/>
                </accessor>
              </technique_common>
            </source>
            <source id="object_mesh_normals">
              <float_array id="object_mesh_normal_array" count="129">-0.000000 -1.000000 -0.000000 0.080510 -0.652628 -0.753389 0.589656 -0.652628 -0.475797 -0.000000 -1.000000 -0.000000 0.753389 -0.652628 0.080510 -0.000000 -1.000000 -0.000000 0.475797 -0.652628 0.589656 -0.000000 -1.000000 -0.000000 -0.080510 -0.652628 0.753389 -0.000000 -1.000000 -0.000000 -0.589656 -0.652628 0.475797 -0.000000 -1.000000 -0.000000 -0.753389 -0.652628 -0.080510 -0.000000 -1.000000 -0.000000 -0.475797 -0.652628 -0.589656 -0.000000 -1.000000 -0.000000 0.080510 -0.652628 -0.753389 0.000000 0.000000 -1.000000 0.707107 0.000000 -0.707107 1.000000 -0.000000 0.000000 0.707107 -0.000000 0.707107 -0.000000 -0.000000 1.000000 -0.707107 -0.000000 0.707107 -1.000000 0.000000 -0.000000 -0.707107 0.000000 -0.707107 0.000000 0.000000 -1.000000 -0.080510 0.652628 -0.753389 0.475797 0.652628 -0.589655 0.753389 0.652628 -0.080510 0.589656 0.652628 0.475797 0.080510 0.652628 0.753389 -0.475797 0.652628 0.589656 -0.753389 0.652628 0.080510 -0.589656 0.652628 -0.475797 -0.080510 0.652628 -0.753389 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000</float_array>
              <technique_common>
                <accessor source="#object_mesh_normal_array" count="43" stride="3">
                  <param name="X" type="float"/>
                  <param name="Y" type="float"/>
                  <param name="Z" type="float"/>
                </accessor>
              </technique_common>
            </source>
            <source id="object_mesh_texture_coordinates">
              <float_array id="object_mesh_texture_coordinate_array" count="129">0.000000 0.000000 0.0 0.000000 0.250000 0.0 0.125000 0.250000 0.0 0.125000 0.000000 0.0 0.250000 0.250000 0.0 0.250000 0.000000 0.0 0.375000 0.250000 0.0 0.375000 0.000000 0.0 0.500000 0.250000 0.0 0.500000 0.000000 0.0 0.625000 0.250000 0.0 0.625000 0.000000 0.0 0.750000 0.250000 0.0 0.750000 0.000000 0.0 0.875000 0.250000 0.0 0.875000 0.000000 0.0 1.000000 0.250000 0.0 0.000000 0.500000 0.0 0.125000 0.500000 0.0 0.250000 0.500000 0.0 0.375000 0.500000 0.0 0.500000 0.500000 0.0 0.625000 0.500000 0.0 0.750000 0.500000 0.0 0.875000 0.500000 0.0 1.000000 0.500000 0.0 0.000000 0.750000 0.0 0.125000 0.750000 0.0 0.250000 0.750000 0.0 0.375000 0.750000 0.0 0.500000 0.750000 0.0 0.625000 0.750000 0.0 0.750000 0.750000 0.0 0.875000 0.750000 0.0 1.000000 0.750000 0.0 0.000000 1.000000 0.0 0.125000 1.000000 0.0 0.250000 1.000000 0.0 0.375000 1.000000 0.0 0.500000 1.000000 0.0 0.625000 1.000000 0.0 0.750000 1.000000 0.0 0.875000 1.000000 0.0</float_array>
              <technique_common>
                <accessor source="#object_mesh_texture_coordinate_array" count="43" stride="3">
                  <param name="S" type="float"/>
                  <param name="T" type="float"/>
                  <param name="P" type="float"/>
                </accessor>
              </technique_common>
            </source>
            <vertices id="object_mesh_vertices">
              <input semantic="POSITION" source="#object_mesh_coordinates"/>
            </vertices>
            <triangles material="object_material" count="48">
              <input semantic="VERTEX" source="#object_mesh_vertices" offset="0"/>
              <input semantic="NORMAL" source="#object_mesh_normals" offset="1"/>
              <input semantic="TEXCOORD" source="#object_mesh_texture_coordinates" offset="2"/>
     
     
    1 1 1 18 18 18 2 2 2 18 18 18 19 19 19 2 2 2 2 2 2 19 19 19 4 4 4 19 19 19 20 20 20 4 4 4 4 4 4 20 20 20 6 6 6 20 20 20 21 21 21 6 6 6 6 6 6 21 21 21 8 8 8 21 21 21 22 22 22 8 8 8 8 8 8 22 22 22 10 10 10 22 22 22 23 23 23 10 10 10 10 10 10 23 23 23 12 12 12 23 23 23 24 24 24 12 12 12 12 12 12 24 24 24 14 14 14 24 24 24 25 25 25 14 14 14 14 14 14 25 25 25 16 16 16 17 17 17 27 27 27 18 18 18 27 27 27 28 28 28 18 18 18 18 18 18 28 28 28 19 19 19 28 28 28 29 29 29 19 19 19 19 19 19 29 29 29 20 20 20 29 29 29 30 30 30 20 20 20 20 20 20 30 30 30 21 21 21 30 30 30 31 31 31 21 21 21 21 21 21 31 31 31 22 22 22 31 31 31 32 32 32 22 22 22 22 22 22 32 32 32 23 23 23 32 32 32 33 33 33 23 23 23 23 23 23 33 33 33 24 24 24 33 33 33 34 34 34 24 24 24 24 24 24 34 34 34 25 25 25 35 35 35 27 27 27 26 26 26 27 27 27 17 17 17 26 26 26 0 0 0 1 1 1 2 2 2 3 3 3 2 2 2 4 4 4 5 5 5 4 4 4 6 6 6 7 7 7 6 6 6 8 8 8 9 9 9 8 8 8 10 10 10 11 11 11 10 10 10 12 12 12 13 13 13 12 12 12 14 14 14 15 15 15 14 14 14 16 16 16 36 36 36 28 28 28 27 27 27 37 37 37 29 29 29 28 28 28 38 38 38 30 30 30 29 29 29 39 39 39 31 31 31 30 30 30 40 40 40 32 32 32 31 31 31 41 41 41 33 33 33 32 32 32 42 42 42 34 34 34 33 33 33 1 1 1 17 17 17 18 18 18</p>
            </triangles>
          </mesh>
        </geometry>
      </library_geometries>
      <library_images>
        <image id="texture" name="texture">
          <init_from>poweruptex_invis.png</init_from>
        </image>
      </library_images>
      <library_visual_scenes>
        <visual_scene id="powerup_invis.M3GM" name="powerup_invis.M3GM">
          <node id="the_object" name="the_object" type="NODE">
            <instance_geometry url="#object_geometry">
              <bind_material>
                <technique_common>
                  <instance_material symbol="object_material" target="#object_material">
                    <bind_vertex_input semantic="texture_channel" input_semantic="TEXCOORD" input_set="1"/>
                  </instance_material>
                </technique_common>
              </bind_material>
            </instance_geometry>
          </node>
        </visual_scene>
      </library_visual_scenes>
      <scene>
        <instance_visual_scene url="#powerup_invis.M3GM"/>
      </scene>
    </COLLADA>

Posting Permissions

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