if (w.x >= 0.f)
*x = (2.f * M_PI - phi) * film->xResolution * INV_TWOPI;
*x = phi * film->xResolution * INV_TWOPI;
Lord Crc wrote:seems the environment camera is broken when using the path integrator. Bidir works fine. Attached is a sample image, it looks like it's completely out of focus.
Lord Crc wrote:It seems that it should test for (x < 0.f) and not (x >= 0.f). Otherwise it's not an "inverse" of EnvironmentCamera::SampleW, but perhaps that's not the point? ... Here's a quick version of the bidir render with (x < 0.f), you can see the magenta and yellow patches now have the same locations as in the path image above, relative to the red center patch.
SATtva wrote:Currently bidir code has it correct. If you reverse it, then you'll get panorama with mirrored longitude direction.
Users browsing this forum: No registered users and 1 guest