Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why the x value of the pFilm is changed to the negation of it in RealisticCamera? #233

Open
kanition opened this issue Mar 20, 2022 · 0 comments

Comments

@kanition
Copy link

In line 910, the x value is assigned as -pFilm2.x. However there is no explain to it in the context. Could you give more details about this operation? Thanks a lot.

// Find point on film, _pFilm_, corresponding to _sample.pFilm_
Point2f s(sample.pFilm.x / film.FullResolution().x,
sample.pFilm.y / film.FullResolution().y);
Point2f pFilm2 = physicalExtent.Lerp(s);
Point3f pFilm(-pFilm2.x, pFilm2.y, 0);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant