-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
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
Mesh raycast function problem #24083
Comments
Do you mind to properly fill out the issue template? Also please demonstrate the issue with a live example. |
Sorry, my English is so bad; so I hope to describe the problem briefly and directly; |
Please let me know if the issue has no value and I will close it; |
What does that mean? How does the position data look like? |
sorry for disturbing your mind,This refers to any position data that is not normalized,like: |
Your setup is actually not valid. The |
|
And thank you for letting me learn something new |
I think this is related to #22874. It's not valid for float buffers but right now if a position or uv attribute are normalized with integer data then raycasting will not return a correct result. cc @donmccurdy. |
Even if it's a PR, it's better to follow the discussion at #22874. Marking this as a duplicate. |
Describe the bug
When the BufferAttribute class uses the normalized attribute and is set to true; the raycast function of the Mesh class does not use the normalized Vector3 calculation synchronously
Describe the bug
To Reproduce
1、create a BufferGeometry width position attribute data not normailized
2、position BufferAttribute normalized attribute set to true;
3、render this geometry to scene and get it by Raycaster
The text was updated successfully, but these errors were encountered: