simple Cube - Crash
by Thomas Bang · in Collada Test · 02/18/2009 (11:50 am) · 16 replies
A simple cube exported from Lightwave 9.6
"Torque Collada Test" will crash after import.
Download Here
"Torque Collada Test" will crash after import.
Download Here
#2
02/18/2009 (1:59 pm)
This is a model without animations. Only a simple model.
#3
What this is telling me, and I could very easily be wrong, is that torque believes this to be an animated object and it cant figure out what the animation is.
Btw, this is most likely a naming glitch in your exporter.
Compare your box code with mine. This forum balked at the size of my post, so here is a zip with mine in it.
02/18/2009 (2:22 pm)
Quote:Creating cyclic animation clip to hold all animationsIs caused by:
<library_animations>
<animation id="myCuberotation_Y">
<source id="myCuberotation_Y-input">
<float_array id="myCuberotation_Y-input-array" count="1">0 </float_array>What this is telling me, and I could very easily be wrong, is that torque believes this to be an animated object and it cant figure out what the animation is.
Btw, this is most likely a naming glitch in your exporter.
Compare your box code with mine. This forum balked at the size of my post, so here is a zip with mine in it.
#4
02/18/2009 (2:33 pm)
And when i include your box.dae i can't see anything. Only an empty object.
#5
02/18/2009 (2:37 pm)
Lol. You are probably inside it. DeleD exports things Huge. I had to scale it down a whole lot just to get it to fit.
#6
02/18/2009 (2:45 pm)
I scaled it down to 0.2 0.2 0.2 so now i can see a textured cube.
#7
I wish I could help you figure out this problem, but it looks to me like it's the way collada is exported from lightwave. I could be wrong tho. Does lightwave have a triangulate model command? It's a problem I had with my models, so it's worth a try to see if that fixes your problem.
02/18/2009 (2:49 pm)
Sorry about that. I should have warned you ahead of time.I wish I could help you figure out this problem, but it looks to me like it's the way collada is exported from lightwave. I could be wrong tho. Does lightwave have a triangulate model command? It's a problem I had with my models, so it's worth a try to see if that fixes your problem.
#8
02/18/2009 (2:54 pm)
When i export from Lightwave to Collada my geometry is automatically triangulated. That's not the problem because i tested the same model in C4. No problems.
#9
The problem is indeed the animation data. Although there is nothing actually wrong with the collada file, it has exposed a bug in the loader (cannot handle animation channels with only a single keyframe).
Unfortunately until/if a new build comes out the only workaround I can suggest is to manually delete everything between the 'library_animations' tag before loading into Torque. This should only be required for static (non-animated) models.
Also - the model has not been triangulated. The single mesh contains 6 quads.
02/18/2009 (3:17 pm)
Hi Thomas,The problem is indeed the animation data. Although there is nothing actually wrong with the collada file, it has exposed a bug in the loader (cannot handle animation channels with only a single keyframe).
Unfortunately until/if a new build comes out the only workaround I can suggest is to manually delete everything between the 'library_animations' tag before loading into Torque. This should only be required for static (non-animated) models.
Also - the model has not been triangulated. The single mesh contains 6 quads.
#10
02/18/2009 (3:23 pm)
When i import this dae into C4 i have not 6 quads. I have 12 tris.
#11
02/18/2009 (3:34 pm)
C4 is a different engine lol its not torque you need to tris your object for be for putting it in torque. your dealing with 2 different engines this is torque engine not C4.
#12
02/18/2009 (3:39 pm)
This is not true. I also triangulated the model in Lightwave. Same result.
#13
The model you uploaded was not triangulated. Perhaps the C4 engine triangulates on load (a handy feature for the Torque loader to do eventually as well). Here is the geometry in the model you uploaded.
6 polygons with 4 vertices each.
However, as I mentioned, the crash issue is not related to triangulation. It is a bug in the Torque loader (easily fixed, but need to get a new build generated).
02/18/2009 (5:51 pm)
Hi Thomas,The model you uploaded was not triangulated. Perhaps the C4 engine triangulates on load (a handy feature for the Torque loader to do eventually as well). Here is the geometry in the model you uploaded.
<polylist count="6" material="surf_Cube">
<input offset="0" semantic="VERTEX" source="#myCube_vertices"></input>
<input offset="1" semantic="TEXCOORD" source="#uv_cube_uvmap" set="0"></input>
<vcount>4 4 4 4 4 4 </vcount>6 polygons with 4 vertices each.
However, as I mentioned, the crash issue is not related to triangulation. It is a bug in the Torque loader (easily fixed, but need to get a new build generated).
#14
02/19/2009 (1:34 am)
OK, it works now. I simply created 2 Keyframes.
#15
02/19/2009 (11:30 am)
Cool. That's probably a better workaround than manually editing the file anyway! ;-)
Torque Owner Mike Rowley
Mike Rowley