Game Development Community

Shadows of vehicle tires?

by Neil Marshall · in Torque Game Engine · 06/20/2003 (8:11 pm) · 9 replies

How do I get the vehicles tires (and person) to cast a shadow?

Right now I've just got the frame of the bicycle casting a shadow and it looks really funny without tires and a person.

#1
06/26/2003 (8:08 pm)
I Add the wheels to the vehicle model. Then for the running wheels I use Invisible (png with alpha 255,255,255) wheels the same size as the mounted wheels. I also have a few script mods for making the steering happen but they aren't to hard to figure out. Anyways the shadows work. I am not sure about spokes but.........
hope that helps
Matt

Edit:
I just noticed this also. Probably would help.
Fixes to get shadows working on DTS objects: posted by Melv Mey
#2
06/10/2004 (5:47 am)
Hey Matthew

Or anyone else.
I'm a beginner in using Torque and now when I'm going to switch my wheels for a pair of skies (runners) I have made my wheels invisible and mounted the skies. But now I can't figure out how to make those skies follow the (invisible )wheels while steering and damping... Any suggestions? Please.

/Niclas
#3
06/10/2004 (6:14 pm)
A quick and easy way you might consider is to make them a part of the vehicle model instead of mounting them from a seperate model. Linking them to follow the steering/suspension animations should get the effects you want. Of course if you are going to be changing them to differing runner models this won't work.
#4
06/14/2004 (1:26 am)
I really don't now how to link my animation to the buggy suspension. Is there any tutorials out there or where should I start looking in the code
#5
06/15/2004 (9:12 am)
The problem seems to be that we're using Maya and don't have any example model to investigate. I have now succedeed getting the suspension to work in the game. It took me quite a while to figure out what to call the suspension animations (spring#) in the model to make it follow the car suspension.

Now I wonder if someone can tell me what to name the steering animation so it follows the car steering. I haven't seen this information in the forum (yet), if it can be done this way at all.
#6
06/15/2004 (11:04 am)
The problem seems to be that we're using Maya and don't have any example model to investigate. I have now succedeed getting the suspension to work in the game. It took me quite a while to figure out what to call the suspension animations (spring#) in the model to make it follow the car suspension.

Now I wonder if someone can tell me what to name the steering animation so it follows the car steering. I haven't seen this information in the forum (yet), if it can be done this way at all.
#7
06/15/2004 (1:53 pm)
The steering animation is named "steering", and the animation for the brake lights is named "breakLight".

I posted a thread a while back about a code change that makes matching the steering animation of the suspension to the angle that the engine actually turns the wheels to. I would suggest trying it out since it makes designing the animations much easier.
www.garagegames.com/mg/forums/result.thread.php?qt=17470
#8
06/16/2004 (5:12 am)
Thanks a lot Martin. I got it working now
#9
06/16/2004 (4:06 pm)
Glad I could help