-
Notifications
You must be signed in to change notification settings - Fork 54
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
Normals Not Copied to SCNGeometry When Vertex Normals Match Face Normals #122
Comments
This was deliberate because by default SceneKit generates flat surface normals so passing zero produces the same output. If you need the normals it wouldn't be hard to add but can I ask what you need them for? |
Thank you for the quick reply. |
That makes sense. It will be a day or two before I can investigate this - maybe you can try enabling the normals locally in your project to see if it solves the PBR issues? If so I'll enable it in the next release. it should be simple to enable because the logic is already there to generate the normals - you just need to eliminate the special case check for when the normals match the polygon normal. |
thanks, I will try it out and let you know. |
I am attempting to create an SCNGeometry from a Mesh, and I have encountered an issue where normals are not copied to the SCNGeometry if the vertex normals have the same values as the face normals. In the Euclid source code, I noticed that the normals are set to .zero initially and are only copied into the normals vector if hasVertexNormals is true. In scenarios where the vertex normals are the same as the face normals, hasVertexNormals remains false, and thus the normals aren't copied. Is there a workaround available for this? Thanks a lot for the support!
The text was updated successfully, but these errors were encountered: