Game Development Community

T3D: Bug in Collada Importer?

by Demolishun · in Torque 3D Professional · 01/24/2012 (12:06 pm) · 5 replies

I have this collada model that when I export has a strange position on the right leg. I checked all the keyframes and they are not warped in the source document (Blender 2.61). I also created a new blend file and imported the collada exported model and it does not show this strange leg position. So I have to wonder if there is a strange bug in the collada importer in T3D.

Here is the collada file for your entertainment it contains a simple animation as well:
www.demolishun.net/torque/stickman_skeleton.dae

About the author

I love programming, I love programming things that go click, whirr, boom. For organized T3D Links visit: http://demolishun.com/?page_id=67


#1
01/26/2012 (12:46 am)
NAB!!! (not a bug)

function Stickman_skeletonDae::onLoad(%this)
{
   %this.renameSequence("ambient", "__backup__root_1");
   %this.addSequence("__backup__root_1", "root", "0", "39", "1", "0");
   %this.removeSequence("__backup__root_1");
   %this.setNodeTransform("mount20", "0.0999919 -0.299907 0.000276997 -0.020861 -0.411421 0.911207 3.16529", "1");
}
This is what you call: "More features than your know what to do with." Part of that learning curve thing that gets you when you least expect it. I am grateful for the feature as I am sure I will need it someday. I did find a nice collada viewer to "debug" my model though!

In case you don't know what it is I am posting look at the "setNodeTransform". I did not put that in my models cs file. It was done while I was messing with the model in game. I subsequently thought my models were being imported wrong. They were, but it was by design!
#2
02/21/2012 (4:06 pm)
What Collada viewer are you using?
#4
02/22/2012 (8:21 am)
Ah ok... When you said "viewer" I was thinking a small, lightweight app that only views Collada. But Sketchup works pretty good too. =)
#5
02/22/2012 (4:25 pm)
Now that I figured out it was a feature and not a bug in T3D I don't really use Sketchup anymore. Blender and T3D seem to be true to what they show.