Sorry, I'm aware how large this mailing list is so I was kind of hoping the answer would drop into my head on its own.
I would like to be able to take a vector in world co-ordinates, say a normal of a particular vertex. And then use that vector to find which texel in the EnvMap it is currently pointing at so that I can get the radiance in that direction. I have the normals of my vertices and I can transform them into world-coords. But I'm not confident on how to map that vector to its corresponding texel value in the environment map.
I think something like envmap->shade() is the method I'm looking for, but I'm not sure.
-Harsha
James Bigler wrote:
I haven't heard back on this, yet.
On Jan 29, 2008, at 10:31 AM, James Bigler wrote:
Q3) Also I've loaded a HDR image into an EnvMapBackground object. Is there a way of looking up a radiance value from a vector? Or do I need to go through Texture<Color>* from within EnvMapBackground?
Could you be more specific about what you are trying to do?
James
Archive powered by MHonArc 2.6.16.