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

inside-a-sphere expected output #62

Open
MstrPikachu opened this issue Oct 2, 2023 · 1 comment
Open

inside-a-sphere expected output #62

MstrPikachu opened this issue Oct 2, 2023 · 1 comment

Comments

@MstrPikachu
Copy link

I tried running inside-a-sphere and I have shadows but I don't know if they're exactly as expected. I did draw a diagram on paper but it's hard to accurately get down the proportions of the shadows to scale.

I made a copy of inside-a-sphere where the camera width x height is 3x3 so I could see more and got this. Interestingly enough part of the camera goes outside of the planes, which is funny.

Could anyone tell me if I'm on the right track? The sphere shadows look more correct with the additional context compared to the cropped image. Before it just looked like one big shadow.

image

@Kenny2github
Copy link

Sphere z-coordinate: 1.6
Sphere radius: 0.5
Camera z-coordinate: 5
Camera focal length: 3
Focial plane z-coordinate: 5 - 3 = 2
Closest point on sphere to camera z-coordinate: 1.6 + 0.5 = 2.1 > 2
Conclusion: The black circle in the middle is where the sphere intersects the focal plane.

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