Game Development Community

TGEA: Lighting detection possible?

by Jon C · in Torque Game Engine · 02/11/2008 (4:32 pm) · 1 replies

I posted this in "Getting started", but never got a reply.

Is it possible to detect how lit an area is? Namely where the player model is...

Such as: If you're standing in the middle of an empty area and the sun light is hitting you, the light hitting the player would be 100%, whereas if they were standing in a shadow it'd be 0-99%.

#1
02/13/2008 (9:26 am)
May be a Ray Cast can determine the visiblity of the sun from player itself.
There was an example of it in the Thomson Advanced Book.