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

Book 2: 7.6/7.7 Cornell Box & Flipped Objects Question #531

Closed
hackmad opened this issue May 13, 2020 · 1 comment
Closed

Book 2: 7.6/7.7 Cornell Box & Flipped Objects Question #531

hackmad opened this issue May 13, 2020 · 1 comment

Comments

@hackmad
Copy link

hackmad commented May 13, 2020

I've read through both Book 1 and 2 a couple times and I might have missed something obvious that seems unclear to me. I do not see how the render of the Empty Cornell Box in 7.6 resulted in 3 of the faces rendering with black colour.

Looking at the Lambertian material it does not care about front_face and returns an attenuation regardless of this flag. I get the same result whether I use the flipped object or not.

I'm working in Rust (using this as a means to learn both) so it is quite possible something is off. This is the render I get:

image

I've tried adding Flipped Objects as well but it does not change the result.

Not that this is a good reference but if it helps my implementation is here: https://github.com/hackmad/raytracing_series

@hollasch
Copy link
Collaborator

Thanks for reporting (and confirming suspicions). This is covered in issue #482.

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

2 participants