Game Development Community

Strange lighting issue.

by Rick Austinson · in Torque Game Engine Advanced · 05/30/2009 (10:19 pm) · 2 replies

All right, this goes on the list of things that don't really need to be fixed, but it is kind of odd. Take a look at this screenshot:

http://www.rickaustinson.com/problem.jpg

That suspension bridge is 3 seperate meshes, all of which use the same textures and are set to the same settings in game, but for some reason the middle part of the bridge(a seperate mesh) is several shades darker.

Any thoughts?

#1
06/01/2009 (9:09 pm)
It's a bit of a vague stab in dark, but have a look at what's underneath the bridge (the terrain that is).

Is there a hole?
Is it a different terrain texture?

Move the bridge over land and see if you still have the problem, it could be something to do with the water.



#2
06/01/2009 (9:44 pm)
Sometimes a vague in the dark is all it takes. I'm not entirely certain, but it seems just that hunk of the bridge was caught in a shadow from somewhere, moving it over did the trick. THe easier fix then turned out to be just scooting the entire bridge over a little and re-arranging the level accordingly.

I THINK, not positive here, but my best guess is one of the objects from elsewhere in the level(the floating city, probably) was casing this shadow. And because the bridge is in DTS, the engine simply darkened the whole bridge. No big deal, just looks better as one piece.

Thankyou for your help, call me stupid but for some reason it just never occured to me to move the darn thing.