Game Development Community

External References in Collada importer is broken? - NOT A BUG

by Alfio Saitta · in Torque 3D Professional · 01/15/2011 (1:50 am) · 6 replies

Recently i happened to export in the collada format using a masterfile. But it is virtually impossible to import the masterfile in T3D. instead, exported from another software using the same technique of the Masterfile, the error does not occur.

The DAE MasterFile:
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
  <asset>
    <created>2011-01-06T02:33:31Z</created>
    <modified>2011-01-06T02:33:32Z</modified>
  </asset>
  <library_visual_scenes>
    <visual_scene id="VisualSceneNode">
      <node id="rootInst_Paris2010_shape" type="NODE">
        <instance_node url="./Paris2010_shape.dae#root_Paris2010_shape"/>
      </node>

      ....

      <node id="rootInst_Paris2010_shape_10" type="NODE">
        <instance_node url="./Paris2010_shape_10.dae#root_Paris2010_shape_10"/>
      </node>
    </visual_scene>
  </library_visual_scenes>
  <scene>
    <instance_visual_scene url="#VisualSceneNode"/>
  </scene>
</COLLADA>

The Log:
Error: daeStandardURIResolver::resolveElement() - Failed to resolve art/paris/Paris2010_shape.dae#root_Paris2010_shape
....
Error: daeStandardURIResolver::resolveElement() - Failed to resolve art/paris/Paris2010_shape_10.dae#root_Paris2010_shape_10

Failed to resolve instance_node with url=./Paris2010_shape.dae#root_Paris2010_shape
Error: daeStandardURIResolver::resolveElement() - Failed to resolve art/paris/Paris2010_shape.dae#root_Paris2010_shape
....
Failed to resolve instance_node with url=./Paris2010_shape_10.dae#root_Paris2010_shape_10
Error: daeStandardURIResolver::resolveElement() - Failed to resolve art/paris/Paris2010_shape_10.dae#root_Paris2010_shape_10

All files are in the same folder: C:TorqueTorque 3D 2009 1.1 Beta 3My ProjectsNew Projectgameartparis

I tried to change the url in various ways, including inserting the preffix file:// and all the full path, but i get the same result.

#1
01/15/2011 (11:06 am)
"#" in a path?? That's my guess...............and I don't see "Paris" in your instance node path?? While it gets called out in the error?

...perhaps run a Diff on the two files?? The one that 'worked' against the error throwing file?
#2
01/15/2011 (7:57 pm)
I no longer have the old file, as created in an earlier version of the software (should i reinstall the old version). In any case, i also tried to remove the "#" with the name of the node.

As per the log, it is easy to see that the T3D will automatically add the relative path from the executable:

Error: daeStandardURIResolver::resolveElement() - Failed to resolve art/paris/Paris2010_shape.dae#root_Paris2010_shape 
Failed to resolve instance_node with url=./Paris2010_shape.dae#root_Paris2010_shape

I also tried to remove the reference to the node and set it with the same name. But nothing.

<node id="root_Paris2010_shape_10" type="NODE">
         <instance_node url="./Paris2010_shape_10.dae#root_Paris2010_shape_10"/> </ node>

I also tried instance_geometry instead instance_node, but the same result.
#3
01/15/2011 (8:08 pm)
Ok, now i'm sure, it's not a problem of the T3D. Even the NVidia Scenix and Blender are able to open it.

Sorry for the error. I had to check before asking for help here. :P
#4
04/28/2011 (4:42 am)
Alfio, I didn't understand if you solved this or not...
#5
04/28/2011 (4:58 am)
ITA:
No Giorgio, non è un problema del T3D, ma nel modulo di esportazione del software che usavo. I MasterFiles funzionano alla grande, e possono essere usati per gestire grosse mappe. In pratica è un file con i riferimenti a tutti i vari modelli collada salvati singolarmente. In poche parole, come un file descrittore di mappa, tipo i MIS.

ENG:
No Giorgio, this is not a problem of the T3D, but in the export module of the software i was using. The MasterFiles work great and can be used to handle large maps. In practice it is a file with references to the various collada models saved individually. In short, like a file descriptor map, like the MIS file.
#6
05/12/2011 (12:47 am)
ENG: Oh well, tnx! I'm interested in this, I have plan to use me also masterfiles for complex buildings... Sorry for the late reply, I said "i'll reply later" then I forgot it :-)

ITA: Ah bene, grazie! Mi interessa, avevo intenzione di usare anche io i masterfiles per degli edifici abbastanza complessi... Scusa se ci ho messo a rispondere, mi son detto "poi rispondo" e poi mi sono scordato...
ITA ONLY: ...Come al solito direi, ma questo lo mettiamo solo in italiano cosi' resta tra me e te ahhahaha :-)