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

glm::intersectRayTriangle might be broken #998

Open
dgrat opened this issue Mar 9, 2020 · 0 comments
Open

glm::intersectRayTriangle might be broken #998

dgrat opened this issue Mar 9, 2020 · 0 comments

Comments

@dgrat
Copy link

dgrat commented Mar 9, 2020

I am in a sphere at pos 0,0,0 and the sphere radius is 10 with center 0,0,0.
If I intersect along one direction e.g. dir 1,0,0 I expect one intersecting face. Instead it gives me always several intersections (always two I think). What makes me wonder most is that the Distance is one time positive (as expected) and one time negative despite the directions vector is positive. The only case where this should happen is if I use a line intersection (lineTriangleIntersection). This is why I think the test case and the ray function is broken.

image

glm version 9.9
from: https://github.com/dgrat/voxelizer

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

No branches or pull requests

2 participants