Hello friends,
I am curious how to change the angle of the normals on a circle. I am applying noise to them and want the noise to push outward along the normal direction. If you look at my image this works but the normals are facing inward. I am also wondering why it work. I do not understand.
Thanks Houdiners!
Adjusting Normal Direction [Solved]
11458 2 1- cglard
- Member
- 9 posts
- Joined: Jan. 2017
- Offline
- Andr
- Member
- 900 posts
- Joined: Feb. 2016
- Offline
Polyframe node is a little mystery to me too
You can use the facet node and toggle invert normal.
or in a wrangle @N = -@N;
If you want to stick to the wrangle, you can calculate the normals with the following code:
@N = normalize(@P - center); // center in your case is 0. The normalize function helps you to have a unit vector in case you circle has radius different than 1.
You can use the facet node and toggle invert normal.
or in a wrangle @N = -@N;
If you want to stick to the wrangle, you can calculate the normals with the following code:
@N = normalize(@P - center); // center in your case is 0. The normalize function helps you to have a unit vector in case you circle has radius different than 1.
- cglard
- Member
- 9 posts
- Joined: Jan. 2017
- Offline
Andr
nter in your case is 0. The normalize function helps you to have a unit vector in case you circle has radius different than 1.
Thank you so much for the response Andr. That work perfectly. I also just tried @N = @P; and that works as well. What exactly is it doing? The normals of the object are being set to the point dir?
-
- Quick Links