Game Development Community

Static mesh lighting problem in 1.5.1

by Gareth Fouche · in Torque Game Engine · 04/26/2007 (1:41 am) · 2 replies

First off, let me apologise for posting this again, but it seems to be a engine issue, not a constructor one, so this is a more appropriate forum.

I'm having issues with the lighting of static meshes, even with a completely clean TGE 1.5.1. Basically, they don't recieve the suns directional lighting. Only its ambient.

They do recieve lighting from normal static lights :

img241.imageshack.us/img241/2167/screenshot00100002ej4.jpg


However, notice that, away from the lights in the main area, this rock is very dark even though the surrounding terrain is very bright. Because the sun's directional light is very bright and its ambient very low.

img221.imageshack.us/img221/8636/screenshot00100003ej4.jpg
I noticed this problem working on a stage of mine. Basically, its a docks, built using Todd Pickens FPS pack :

img291.imageshack.us/img291/4246/screenshot04200006ml2.jpg
The walls of the dock and the wooden pier are static meshes, the bright stone is a simple DIF rectangle. Notice the huge lighting difference. The player object is recieving the suns directional light normally though.

I have played with the suns settings, I've played with the settings of the static meshes, to no avail. Static light sources other than the sun seem to affect static meshes fine, and, oddly enough, static meshes baked into DIFs using constructor seem to recieve sunlight normally.

Anyone else experiencing this issue? Anyone have any ideas? Thanks for your help.

#1
04/26/2007 (1:59 am)
This is a known bug in 1.5.1 - it's being fixed in 1.5.2.

1.5.1 Character directional sunlight
#2
04/26/2007 (2:15 am)
Ah, thank you, thats fine then :)