ChuckDanglars / exposure-render

Automatically exported from code.google.com/p/exposure-render
0 stars 0 forks source link

Weird positioning of Lightsource #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, I have come back to the positioning of the light source and it just isn't 
where I would expect it to be.

It is allways displayed far of from its center and it not correctly rotate.

The problem is somehow connected to m_Target.

If I set m_target to 0, all is as expected.

Original issue reported on code.google.com by c.web...@yahoo.de on 6 Jun 2012 at 11:53

GoogleCodeExporter commented 8 years ago

I may have corrected in in Lighting.cuh::Light::Intersect

T = (-m_Distance - Dot(R.m_O - m_Target, m_N)) / DotN; 

when using Target to set m_P it must be added upon r.o to be in the same space

Original comment by c.web...@yahoo.de on 6 Jun 2012 at 1:18

GoogleCodeExporter commented 8 years ago
Please verify if possible

Original comment by c.web...@yahoo.de on 6 Jun 2012 at 1:18