Scatter SOP and texture color

   6321   3   0
User Avatar
Member
4 posts
Joined: June 2013
Offline
Hello, I was wondering if there's a way to generate points on the surface of a model then color those points based on the texture of the geometry?

I was thinking of Copy Sop with template>Use template attr but there maybe another way.

Thank you
User Avatar
Member
9380 posts
Joined: July 2007
Offline
if you have UVs on geometry then scatter will pass them to points and you can just append VOP SOP and using Color Map VOP to get color from texture based UVs
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
4 posts
Joined: June 2013
Offline
Ok uv, scatter and mantra shader worked fine. Thanks for the suggestion.

I have read the manual/help regarding those nodes but still can't figure out why it works. I really would like to understand it.
User Avatar
Member
9380 posts
Joined: July 2007
Offline
I didn't mean shader, even though it is the same thing, but at render time
here is simple example of the Color Map VOP in VopSop so you can then use the color on points for something still in SOPs
if you need more options for sampling the image you can use Texture VOP

and it works because UVs define texture coordinate for each point and Color Map VOP (or Texture VOP) just takes that coordinate and looks up which pixel corresponds to that on the image (it can interpolate if the sample is among more pixels) then it just returns the information from that pixel, usually RGB or RGBA channels

Attachments:
vop_colormap.hip (68.0 KB)

Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links