Game Development Community

Shadow Direction

by Bob "Colonel_Klink" Watt · in Torque Game Engine · 04/06/2004 (3:12 am) · 7 replies

I first noticed that the player shadow and the building shadows don't go in the same direction in the downloadable demo. I have also noticed that it was like this with the SDK.
While its not particularly bothering me at this stage, I was wondering has there been a fix for this, and will a fix ever be put into the HEAD?

#1
04/06/2004 (5:01 am)
The sun's position was hardcoded in the shadow code b/c at the time there was no sun and no one got around to fixing this before Tribes 2 shipped. The fix for this has been floating around on the forums for something like two years (little searching will turn it up) but has never made it into the HEAD. I recently emailed that item to Ben's todo list so when he gets around to it (he's a little busy atm ;) it'll get stuck in.
#2
04/06/2004 (6:14 am)
Check out this


www.garagegames.com/mg/forums/result.thread.php?qt=17125


Also look at the last few (as of this writing) comments for the following resource


www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4050


The shadow problem is easy to fix ;)
#3
04/06/2004 (5:48 pm)
Thanks guys.
I've been a bit reluctant in inserting old code into the torque source as the first time I did it the whole engine crashed, and I had to reinstall it.
#4
04/07/2004 (12:01 pm)
Hey Matt, don't you have CVS access? :)
#5
04/08/2004 (11:23 am)
/me adds this to his todo list instead

If I remember I will check this in tomorrow.
#6
04/08/2004 (11:34 am)
There are two seperate spots this needs to be changed BTW. Make sure you get the both.
#7
04/08/2004 (11:35 am)
Roger that!