DTS Meshes in Torque demo missing data
by Leadwerks · in Torque Game Engine · 11/08/2005 (2:31 pm) · 0 replies
I have been testing dts meshes all day. I have determined that data directly prior to Checkpoint 8 is missing in the meshes I am testing, from the Torque demo. I presently using rock1.dts.
Between Checkpoint 7 and Checlpoint 8, there lies a block of data 24 bytes long. There are two nodes in the mesh, so this is presumably 6 float values indicating default translation. However, the data block, according to the German .dts docs, is supposed to contain rotations as well.
I have loaded the file up to that point, and passed all checkpoint successfully. Any light you can shed on this matter would be greatly appreciated. My loading code at that part looks like this:
Thank you very much.
Between Checkpoint 7 and Checlpoint 8, there lies a block of data 24 bytes long. There are two nodes in the mesh, so this is presumably 6 float values indicating default translation. However, the data block, according to the German .dts docs, is supposed to contain rotations as well.
I have loaded the file up to that point, and passed all checkpoint successfully. Any light you can shed on this matter would be greatly appreciated. My loading code at that part looks like this:
Checkpoint=ReadInt(f)
If Checkpoint<>7 RuntimeError "Error reading file. (Checkpoint 7)"
For n=1 To numNodes
qx#=ReadFloat(f)
qy#=ReadFloat(f)
qz#=ReadFloat(f)
qw#=ReadFloat(f)
x#=ReadFloat(f)
y#=ReadFloat(f)
z#=ReadFloat(f)
Next
For n=1 To numNodeTranslations
x#=ReadFloat(f)
y#=ReadFloat(f)
z#=ReadFloat(f)
Next
For n=1 To numNodeRotations
qw#=ReadFloat(f)
qx#=ReadFloat(f)
qy#=ReadFloat(f)
qz#=ReadFloat(f)
Next
Checkpoint=ReadInt(f)
If Checkpoint<>8 RuntimeError "Error reading file. (Checkpoint 8)"Thank you very much.