Game Development Community

Need help with ambient animation.

by Infinitum3D · in Torque Game Engine · 08/21/2008 (1:58 pm) · 7 replies

I've made a simple box "sign.dts" in studioMax. I've "keyed" an animation sequence to make the sign swing back and forth. I have bounds, collisions, and a sequence in studioMax.

I export the .dts and open with showTool. The sign swings in showTool.

I load a mission in TGE. F-11 to open the editor and place the "sign" in my world.

I see the box, but no textures, no animation, and no collision...

Any ideas?

I've tried exporting three times (with different names) and each is the same.

Help!

Thanks,
Tony

#1
08/21/2008 (4:43 pm)
You did make a sign.cs file listing the baseshape and the animation sequences didn't you?

Though that shouldn't stop textures from showing up.
#2
08/21/2008 (8:32 pm)
I'm trying to work with embedded animation, not .dsq's.

Do I still need a .cs?
#3
08/25/2008 (11:00 am)
OK, I named my sequence 'ambient', I have a bounding box that surrounds my animation, I have a texture named base.item.png and .cs with datablock and onAdd function.

My shape loads and moves (yay!) but my texture doesn't show up.

256x256 and it shows up on other 'static' shapes, but not my animated shape.

Also, no collision. I have a mesh, which works as static but not during animation?

Any ideas?

Tony
#4
08/25/2008 (12:40 pm)
It seems like the problem is my UVW map. It applies the texture to 'bounds' not 'shape2'.

Mapping coordinates are correct, I think, a box with the same parameters as 'shape2'.

Hmmm....

Anyone else have this prob or similar?

Thanks!

Tony
#5
08/25/2008 (1:03 pm)
I deleted my UVW map and re-did it. I now have a swinging sign with texture and animation. I do NOT have collision, even with a collision mesh, and my bounding box is way oversized....

I'll keep going until its right.

Tony
#6
08/25/2008 (1:54 pm)
Turns out I used 0.7cm (centimeters) instead of 0.7m (meters) for my collision mesh.

I now have a swinging sign with texture and collision.

...angels singing..."Hallelujah!"...

I'll upload it as a .zip freebie as soon as I get a wifi signal on my laptop.

Tony
#7
08/27/2008 (2:49 pm)
OK I now have a swinging sign (box) with texture (base.item.png) and collision and animation, a plane (2 sided texture) that swings back and forth lie a tapestry or banner, and a flag that waves. I also have various flagpoles, signposts, and textures.

If anyone wants them I can e-mail them, but I can't upload them since geocities maxes out at like 5MB.

Anyone want to host them?

Tony