Game Development Reference
In-Depth Information
We need to search for the _301_HB05_02_jpg ID conflict. We can do that with
the XML editor; for a simple text-string search, we can also use command line
string search (find, greg..), for instance using Windows cmd :
>find /N "_401_HB05_02_jpg" Xintiandi.dae
---------- XINTIANDI.DAE
[18730] <newparam sid="_401_HB05_02_jpg -surface">
[18732] <init_from>_401_HB05_02_jpg</init_from>
[18735] <newparam sid="_401_HB05_02_jpg -sampler">
[18737] <source>_401_HB05_02_jpg -surface</source>
[18759] <texture texture="_401_HB05_02_jpg -sampler"
texcoord="CHANNEL1"/>
[38858] <newparam sid="_401_HB05_02_jpg -surface">
[38860] <init_from>_401_HB05_02_jpg</init_from>
[38863] <newparam sid="_401_HB05_02_jpg -sampler">
[38865] <source>_401_HB05_02_jpg -surface</source>
[38887] <texture texture="_401_HB05_02_jpg -sampler"
texcoord="CHANNEL1"/>
[182858] <image id="_401_HB05_02_jpg">
[184307] <image id="_401_HB05_02_jpg">
The /N option returns the line number. It took about two seconds for this com-
mand to find all instances of the search string in a 32 MB COLLADA document.
We could have searched for the string id="_401_HB05_02_jpg instead, which re-
turns only where the conflicting ID is declared. This search string includes the "
character, which requires double quoting to pass to the find:
>find /N "id=_401_HB05_02_jpg" Xintiandi.dae
---------- XINTIANDI.DAE
[182858] <image id="_401_HB05_02_jpg">
[184307] <image id="_401_HB05_02_jpg">
Looking into the COLLADA document the culprits are
<image id="_401_HB05_02_jpg">
<init_from>file:///C:/.../images/0401_HB05_02.jpg</init_from>
.....
<image id="_401_HB05_02_jpg">
<init_from>file:///C:/.../images/1401_HB05_02.jpg</init_from>
From this we can deduce that there is a problem with the exporter. It is creating
an id for images from the name of the image, but has a size limitation that makes
the generated ID for 0401_HB05_02.jpg and 1401_HB05_02.jpg collide. The bug
was reported, and as it is getting fixed, one can apply an easy workaround ; rename
the image files with shorter names and re-export.
Search WWH ::




Custom Search