reading image data into a point SOP

   4365   3   1
User Avatar
Member
33 posts
Joined: Jan. 2006
Offline
anyone know how to input color data from an image into a point SOP so that I can color the points of my object based on the image? Thanks
User Avatar
Member
639 posts
Joined: July 2005
Offline
Hello,

You can probably use tex() or pic() expression to get the image that you need.

tex (string diskfile, float U, float V, string color_type)



Hope that helped,
Alex
User Avatar
Member
31 posts
Joined: July 2005
Offline
you might also try making a custom sop with vops.

the vop you'll be interested in is the color map vop. Vops will be much
faster than using the point sop.

Luca
User Avatar
Member
344 posts
Joined: July 2005
Offline
http://www.sidefx.com/index.php?option=com_wrapper&Itemid=8 [sidefx.com]

There's an HDA on the exchange for you. It's using the method Luca is talking about. I uploaded a VOP SOP HDA called PictoPointColor. It's simple; takes geometry with UVs, an image and one of 4 sets of UVs. It's really fun to play with on particle systems and scatter sops.
  • Quick Links