-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
NormalNode not fully fixed #17126
Comments
/ping @sunag |
@njarraud Thank your nice explanation... I will see this in this weekend.
Yes, I want to remove |
@njarraud This is already fixed but should I publishing the PR withing a few days. |
Thanks. Really looking forward to testing it! |
Awesome. I currently use my own branch with quick fixes for the problems I encountered. Modifications look good. I'll try them when PR will be merged with the dev branch. Thanks again. |
Description of the problem
NormalNode has been updated a few days ago however I do not believe that it has fixed the issue with the LOCAL scope.
See jsfiddle with the dev version of three.js
Objects displaying world normal seem to be represented properly: normal doesn't depend on the camera but only on the orientation of the object.
Objects displaying local normal seem to be represented incorrectly: normal shall not depend on the camera and shall be identical independently of the object orientation. This is not the case and it currently behaves the same way as the view normal.
Objects displaying view (camera) normal seem to be represented properly: normal are based on the camera view.
The solution with vObjectNormal presented in this post seems to help but I don't know if it is a proper fix or only works in some cases.
NormalMapNode output doesn't seem to be correct either and it may be related to this issue. I will do some more testing on this one. Once we manage to get NormalNode outputting the expected values, we shall then recheck normalMapNode and BumpMapNode.
I created the exact same configuration in Blender where normals are properly represented for all 3 scopes. You can download the blend file here.
/ping @sunag
Three.js version
Browser
OS
The text was updated successfully, but these errors were encountered: