Game Development Community

[Fixed]Vehicle CollisionBox Shadow Problem

by CSMP · in Torque Game Engine · 09/25/2009 (3:48 pm) · 6 replies

I'm having a problem where I have a HeliClass vehicle with all the correct nodes and meshes (afaik) and no matter what I seem to do the shadow is always being cast from the Collision-1 mesh.

I've looked through many posts about this subject and none seem to give me a straight answer, most of the posts are of conlicting and incorrect information...

I've tried setting up the Bounds correctly, tried not using alpha textures, tried not scaling the model and also setup the HeliClass with the 5 Vehicle.cc Shadow source code lines with no luck.

I'm using MilkShape 1.8.5 and DTSPlus 2.7.3 Exporter, but judging by most of the other posts it seems that program and exporter have almost nothing to do with the actual problem as it has been a posted problem with most if not all program configurations.

#1
09/25/2009 (7:11 pm)
Checked some other known working models and the setup is correct, unless there is something else needed for the heliclass.

I diffed the helivehicle, vehicle, flyingvehicle and wheeledvehicle and it seems like the shadows should be working correctly...

Mainly it looks like the shadows are being called from the Vehicle.cc and each other class should have the shadow based on inheritance.

I know I have to be overlooking something.
#2
09/25/2009 (9:52 pm)
I've noticed that vehicles models with only one detail level will use the collision mesh for the shadow. Does your model have multiple detail levels?
#3
09/25/2009 (9:58 pm)
Actually, I have just converted it over from a .3ds file so I've been more or less testing it and trying to get the nodes and etc correct.

Appreciate the help, I'll have to try that next time I get the chance!
#4
09/26/2009 (12:44 am)
Seems like you could test to see if it's an art issue by just creating a WheeledVehicle datablock with the helicopter body. Assuming you've seen WheeledVehicle shadows working, that is ;).
#5
09/26/2009 (1:27 pm)
Give your object multiple LOD's, ya, try that.

I found the Combat Starter Kit codebase to operate in that fashion; unless you had multiple LOD's, you only get a low poly shadow.

To test it, I merely copied the existing detail level geometry and gave it appropriate LOD values, all of a sudden, I got nice detailed shadows.
#6
09/27/2009 (9:35 am)
Ok guys check this out,
I tested adding an LOD level and no deal, tested the model with the WheeledVehicle class and no deal, added another LOD level (for a total of 3) and it worked!!!

Now, since my other 2 Heli's have this problem I know exactly what to do, Thanks guys!
:)