Flipping Normals
2035 12 1- gallerykim
- Member
- 29 posts
- Joined: 10月 2022
- Offline
- ajz3d
- Member
- 477 posts
- Joined: 8月 2014
- Offline
- gallerykim
- Member
- 29 posts
- Joined: 10月 2022
- Offline
- gallerykim
- Member
- 29 posts
- Joined: 10月 2022
- Offline
- ajz3d
- Member
- 477 posts
- Joined: 8月 2014
- Offline
- gallerykim
- Member
- 29 posts
- Joined: 10月 2022
- Offline
- ajz3d
- Member
- 477 posts
- Joined: 8月 2014
- Offline
- gallerykim
- Member
- 29 posts
- Joined: 10月 2022
- Offline
ajz3d
If this is the case, then perhaps it will be enough to reverse all primitives which have normals within a specific spread angle from the (0, -1, 0) vector? It should work for this kind of data.
Do I need to modify @N to change the normal vector?
When instructed to multiply by -1 when @N.y < 0, in the spread sheet, the N value became positive, but the actual normal did not flip.
- ajz3d
- Member
- 477 posts
- Joined: 8月 2014
- Offline
gallerykimDepends.
Do I need to modify @N to change the normal vector?
- If you have no existing vertex normals and it is only primitive winding that is wrong, then obviously no.
- If you have existing vertex normals, then regardless of primitive winding you will also need to reverse vertex normals.
When instructed to multiply by -1 when @N.y < 0, in the spread sheet, the N value became positive, but the actual normal did not flip.It would be best if you could post a sample scene.
Maybe it's a viewport bug? Or perhaps you're multiplying only one vector component instead of negating the full vector?
- gallerykim
- Member
- 29 posts
- Joined: 10月 2022
- Offline
- ajz3d
- Member
- 477 posts
- Joined: 8月 2014
- Offline
I added two Reverse SOPs (one per method) to the network that are reversing the candidate group, and now PolyExtrude returns correct result.
There were ill-formed primitives in the input geometry, so I cleaned them up by recreating primitives from their edges. This might not be a perfect solution, but it works on geometry data you provided.
There were ill-formed primitives in the input geometry, so I cleaned them up by recreating primitives from their edges. This might not be a perfect solution, but it works on geometry data you provided.
- gallerykim
- Member
- 29 posts
- Joined: 10月 2022
- Offline
- ajz3d
- Member
- 477 posts
- Joined: 8月 2014
- Offline
-
- Quick Links