Circular Gradient!
1249 4 0- Mrmichaelt
- Member
- 14 posts
- Joined: 3月 2023
- Offline
- mestela
- Member
- 1788 posts
- Joined: 5月 2006
- Offline
Your setup works fine, what you're lacking is uv's.
The material will fit a circle in the 0:1 region of your uv's. Because your grid doesn't have any uv's, karma will go 'ok, I guess I'll just treat each polygon square as a little uv region, and fit the circle into there.'.
If you go back inside the wall sopcreate, append a uv texture sop, projection axis as 'z axis', you'll get one big circle that fills the wall.
The material will fit a circle in the 0:1 region of your uv's. Because your grid doesn't have any uv's, karma will go 'ok, I guess I'll just treat each polygon square as a little uv region, and fit the circle into there.'.
If you go back inside the wall sopcreate, append a uv texture sop, projection axis as 'z axis', you'll get one big circle that fills the wall.
- jsmack
- Member
- 8034 posts
- Joined: 9月 2011
- Offline
- Mrmichaelt
- Member
- 14 posts
- Joined: 3月 2023
- Offline
- Mrmichaelt
- Member
- 14 posts
- Joined: 3月 2023
- Offline
jsmack
uv aren't required for an planar projection on axis. The two orthogonal axes to the projection axis can be shuffled into a vec2 and used with the circle formula.
for radial (phi):
(r1 - length(x,y))/(r1-r2)
for radar sweep (theta):
n*atan2(y,x)/2PI % 1
jsmack,
Unfortunately, I am not that advanced yet! I am still a super-newb to Houdini, learning the lingo and my way around. I appreciate the help and will save this file for when I become more knowledgeable.
Thanks
-
- Quick Links