Game Development Community

GetBestLights and interiors

by Kevin Johnson · in Torque Game Engine · 08/26/2004 (10:22 am) · 6 replies

Can some one point me to a place i can get a little more info on this?
when i do something like:
gClientSceneGraph->getLightManager()->getBestLights( getBoundingBox(),lights, 1)
its realitve to the interiors bounding box
I need a vector relative to the current poly box or face or whatever (via sgActivePolyList) any clues?



thanx

#1
08/28/2004 (11:31 am)
The parameters you pass into it are in world space. getBoundingBox() returns a bounding box for the current object (if you're a SceneObject subclass) in world space.

The lights returned are also expressed in worldspace.

Does that clear things up?
#2
08/28/2004 (6:19 pm)
Ok yah that makes since, now how would i get a position of the current poly in sgActivePolyList?
#3
09/04/2004 (1:30 pm)
I'm not sure I understand what you want. They're triangles...?
#4
09/07/2004 (6:53 am)
What im looking for is the position in worldspace of the currrent poly being drawn.
#5
09/07/2004 (10:42 am)
Ah. Just average the points that make it up and you've got it.
#6
09/08/2004 (12:02 pm)
Hey it worked..
damn i shoulda paid more attention in school..:)