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

Normalize ray_vector? #70

Open
ruoshiliu opened this issue Dec 24, 2021 · 0 comments
Open

Normalize ray_vector? #70

ruoshiliu opened this issue Dec 24, 2021 · 0 comments

Comments

@ruoshiliu
Copy link

Hi, I see that in your code, you get ray_vector by subtracting the camera origin (camera_world) from the pixel (p_world) ray_vector = camera_world - p_world. I'm wondering if this ray_vector can have a depth other than 1? For example, can you sample a point inside the unit cube and set ray_vector = p_inside_cube - camera_world, will this ray_vector still be a valid input into the ray marching function? Thanks!

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