Game Development Community

Get texture light?

by Daniel Buckmaster · in Torque Game Engine · 05/28/2007 (3:39 am) · 2 replies

I've just had an idea for a Thief-style multiplayer game, but it'd need one specific feature - the ability to figure out just how well-lit the ground is under the player. Is there a way to do this with script, or would I have to code my own way?

About the author

Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!


#1
05/28/2007 (6:14 am)
Daniel,

There was a thread on this exact thing about a year and a half ago. A number of potentially useful ideas popped up in that discussion. After a quick search, I found one link. It seems like there should be another one out there as well. But here you go . . .

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

I hope that helps.
#2
05/28/2007 (10:29 am)
I need a post-it note on my forehead. SEARCH in big letters...
Thanks for the link. :)
I think I'd go down the route of checking vertices to get an average light value for the model. An idea would be to create a separate mesh, like collision meshes, but just have it contain vertices at joints and extremities. Then check these vertices for light somehow.