Sign in to follow this  

Bidirectional path tracing and pinhole camera

This topic is 2845 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm implementing a bidirectional path tracer as described in chapter 10 of the Veach thesis: http://graphics.stanford.edu/papers/veach_thesis/ Now my problem is how to calculate the probability density function (PDF) with respect to projected solid angle for the primary ray (z0->z1) for a pinhole camera. This is important to calculate the relative probabilities with which the other sampling techniques would have created the same path and needed to calculate the weight for the contribution of the path. According to equations (10.9) from the thesis the relative probabilities can be calculated. As an example consider the path generated by a (1,2) sampling technique. Then the ratio p2/p1 = ( P(x0->x1) * G(x0<->x1) ) / ( P(x2->x1) * G(x2<->x1) ), where P(x->x') is the PDF with respect to projected solid angle for extending the path at x into the direction to x'. Now the term P(x2->x1) is the same as P(z0->z1), where z0 is the location of the camera (and origin of all primary rays) and z1 is the vertex hit by the primary ray. So how to compute the value of P(z0->z1) ? [Edited by - nmi on February 27, 2010 2:05:06 AM]

Share this post


Link to post
Share on other sites

This topic is 2845 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this