uv 2 Cd

   2858   3   2
User Avatar
Member
121 posts
Joined: July 2008
Offline
I'm scattering points over a surface and want to get my uv color info on to the point. Anybody an idea how to do this quick.
cheers
Available for new projects
User Avatar
Member
121 posts
Joined: July 2008
Offline
ok, I found it. For those that want to know I did it like this.
I created a popnet with a source and a voppop.
In the voppop I import uv -> vec2float -> colormap -> Cd
I then refrence the image in a copnet.

Cheers

Attachments:
uv2cd.hipnc (773.2 KB)

Available for new projects
User Avatar
Member
1799 posts
Joined: Oct. 2010
Offline
Another approach you could use is the tex() expression with a point sop. After your scatter node, add a point SOP , under color choose add color, then for your expression use tex(“../yourTexturePathOnDisk.tga”, $MAPU, $MAPV, r) for the red. Copy that expression to the green and blue but change the last parameter to g and b respectively. Doing it this way you would not even need COPs
-G
User Avatar
Member
121 posts
Joined: July 2008
Offline
Hey G, thx for the alternative solution. It works like a charm and even much faster. Cheers.

Attachments:
uv2cd_v2.hipnc (782.0 KB)

Available for new projects
  • Quick Links