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:
I need a vector relative to the current poly box or face or whatever (via sgActivePolyList) any clues?
thanx
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
#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.
Associate Kyle Carter
The lights returned are also expressed in worldspace.
Does that clear things up?