UV Attribute from N
5537 7 2- winkel
- Member
- 217 posts
- Joined: March 2006
- Offline
- Phenom
- Member
- 50 posts
- Joined: Jan. 2006
- Offline
You will need to put them all into a single sop with a merge, attribcreate and call it ypos(or whatever), then attribpromote from point to detail and change the name to yposmin, and select minimum, attribcreate again and again point to detail, but this time max, and of course change the name to yposmax, now add a null and make 2 spare channels.
detail(“../sopname”,“yposmin”,0)
detail(“../sopname”,“yposmax”,0)
call these whatever. Lock this node.(or not if you are going to be repo-ing the geo)
now whererver you are adding the normal attribute use this
fit($TY,ch(“../null/minchan”),ch(“../nul/maxchan”),0,1)
detail(“../sopname”,“yposmin”,0)
detail(“../sopname”,“yposmax”,0)
call these whatever. Lock this node.(or not if you are going to be repo-ing the geo)
now whererver you are adding the normal attribute use this
fit($TY,ch(“../null/minchan”),ch(“../nul/maxchan”),0,1)
“Don't just look for what you think you will find”
-That CSI guy
-That CSI guy
- winkel
- Member
- 217 posts
- Joined: March 2006
- Offline
- Phenom
- Member
- 50 posts
- Joined: Jan. 2006
- Offline
begrüßen zum Strand
so right, when creating an attribute, you have to assign the value for said attribute, in this case it is $TY, to assign the normal lay down a point SOP. Also in your UV textrure you had natural location which was assigning your UV to verticies, not wrong exactly, but point textrue is more likely the direction you want to go.
FYI- right click on any SOP and select spreadsheet, to see a list of all attributes, point, vertex, primitive and detail.
Im not sure where you are going with this so I just added the missing parts.
Also both Normals and UV's are vectors, so it is not as simple as N->UV
more
$NX->$MAPU, $NY->$MAPV,$NZ->$MAPW
so right, when creating an attribute, you have to assign the value for said attribute, in this case it is $TY, to assign the normal lay down a point SOP. Also in your UV textrure you had natural location which was assigning your UV to verticies, not wrong exactly, but point textrue is more likely the direction you want to go.
FYI- right click on any SOP and select spreadsheet, to see a list of all attributes, point, vertex, primitive and detail.
Im not sure where you are going with this so I just added the missing parts.
Also both Normals and UV's are vectors, so it is not as simple as N->UV
more
$NX->$MAPU, $NY->$MAPV,$NZ->$MAPW
“Don't just look for what you think you will find”
-That CSI guy
-That CSI guy
- winkel
- Member
- 217 posts
- Joined: March 2006
- Offline
- winkel
- Member
- 217 posts
- Joined: March 2006
- Offline
- Phenom
- Member
- 50 posts
- Joined: Jan. 2006
- Offline
Ok, I don't have time to test this to be sure its air tight but this is the direction you want to go.
first normalize your geometry, so that everything (or at least your $TY) is 0-1, which I didn't do, I just grabbed the points really quick and made them all on the same plane, then add your UV texture, rows and collumns, now put down a point sop off your original geo and plug in your UV sop to the second imput, and use $MAPU2 ect for the uv coordinates.
cheers
-3db
first normalize your geometry, so that everything (or at least your $TY) is 0-1, which I didn't do, I just grabbed the points really quick and made them all on the same plane, then add your UV texture, rows and collumns, now put down a point sop off your original geo and plug in your UV sop to the second imput, and use $MAPU2 ect for the uv coordinates.
cheers
-3db
“Don't just look for what you think you will find”
-That CSI guy
-That CSI guy
- winkel
- Member
- 217 posts
- Joined: March 2006
- Offline
-
- Quick Links