what is up with normals in for loops?
2567 4 0- aoakenfo
- Member
- 28 posts
- Joined: 11月 2015
- Offline
- jsmack
- Member
- 8042 posts
- Joined: 9月 2011
- Offline
- aoakenfo
- Member
- 28 posts
- Joined: 11月 2015
- Offline
- jsmack
- Member
- 8042 posts
- Joined: 9月 2011
- Offline
AttribVop already runs over all primitives; looping just causes the topology to be disconnected.
Use a normal sop, set to primitives, to create face normals and then an attribwrangle in primitive mode with @N = -@N to add reversed normals to your faces.
Note that adding reversed normals to faces doesn't reverse them topologically. For that, use the reverse SOP.
Use a normal sop, set to primitives, to create face normals and then an attribwrangle in primitive mode with @N = -@N to add reversed normals to your faces.
Note that adding reversed normals to faces doesn't reverse them topologically. For that, use the reverse SOP.
- ArchiactVR
- Member
- 2 posts
- Joined: 6月 2018
- Offline
Thanks for the response and your time jsmack. Much appreciated.
I want to iterate over all primitives. I export the orientation of each face to another program and build a rotation matrix. The problem is, when I export the results at the end of the for loop everything faces the wrong way.
I'm exporting the forward and normal. If I export the forward and right vector, and calculate the normal myself, the face direction is correct. Signs changing on the forward and right vectors don't matter because they're both on the surface of the triangle.
Clear as mud?
I want to iterate over all primitives. I export the orientation of each face to another program and build a rotation matrix. The problem is, when I export the results at the end of the for loop everything faces the wrong way.
I'm exporting the forward and normal. If I export the forward and right vector, and calculate the normal myself, the face direction is correct. Signs changing on the forward and right vectors don't matter because they're both on the surface of the triangle.
Clear as mud?
-
- Quick Links