Game Development Community

Collada export from within the world editor

by Eric Thomas Patton · in Torque 3D Professional · 01/12/2010 (6:31 pm) · 8 replies

We are porting over a project from TGEA and have quite a few dif files that we would rather have in Collada format. I saw the two options in the editor menu for "Export Interiors to Collada" and "Export to Collada" so I decided to give them a shot.

The one specifically for dif files didn't do anything that I could tell so I'm not sure if it's broken or something, but the Export to Collada option did save them as files without extensions. We added the .dae to the end and they loaded into the game, but without any of the textures we previously had on them.


Is there any way to map the old textures back the way they were without having to re-texture them? I tried loading the collada files into blender, but neither of the importers worked so I'm not sure how we can re-texture them anyway.





#1
01/12/2010 (6:34 pm)
You have to add the extension from within the editor. It's a tad touchy about it. I used the "export dif to collada" option to export my dif objects. (just remember to add .dae to the end of the name)
#2
01/12/2010 (9:41 pm)
did you have to re texture them or is there a way to keep any work we've done with that? i attempted to add :


<library_images>
  <image id="myTexture.png" name="myTexture_png">
    <init_from>myTexture.png</init_from>
  </image>
</library_images>
<library_materials>
  <material id="colladaMat" name="colladaMat">
    <instance_effect url="#colladaMat-fx"/>
  </material>
</library_materials>

to the collada file in the area where it is already in there (but originally blank) and then made this:

new Material(myMat)
{
   baseTex[0] = "myTexture";
   mapTo = "colladaMat";

   translucent = true;
   translucentBlendOp = None;
};

but it wouldn't even load the collada file in after i did this. i used the proper file names instead of the filler in there, but i might not be doing everything right. the things i tried were from the documentation, but i'm not really used to looking at how data is organized for meshes so I wasn't all too sure of what I was doing hehe.

#3
01/12/2010 (10:56 pm)
No. I exported them to the same folder that held my dif and they retained their textures.
#4
01/12/2010 (11:18 pm)
ahh it's probably because i'm not using the export interiors to collada option that it isn't keeping the textures i'm guessing. though i can't seem to get that to work =/

i press it and the window comes up that asks if i want to select them all and i click that option but when i click export, nothing happens at all. the window just closes and no files are made.

are you using 1.1 alpha? maybe it's bugged or something
#5
01/12/2010 (11:30 pm)
yup that's what it was. i tried the same thing in 1.01 and it worked fine. is there a fix for 1.1 currently known for this? it's not a big deal now since i can just export them in my 1.01, but would be nice to know
#6
03/16/2010 (10:58 am)
Bump. This problem still persists in Beta 1.
#7
03/21/2010 (1:30 am)
Logged as THREED-896
#8
08/02/2010 (9:53 pm)
Fixed in 1.1 Beta 2.