Transfer camera map color to Sand

   2415   4   2
User Avatar
Member
3 posts
Joined: Sept. 2014
Offline
Hi Guys!
I have a object with a camera projection map. I'm using this object to create a sand simulation. Everything is working fine for the sim but I need to transfer the texture on the grain particles. Is there a way to do that?


Thanks@!

Seb
Sebastien Chartier
Lead FX
User Avatar
Member
453 posts
Joined: Feb. 2013
Offline
If I understand correctly, you essentially have a picture and want to make the picture colorize your particles.
You can probably use an “Attribute from Map” SOP or a “Color Map” node (VOP context) with a VOP and or ray SOP setup to get the color to the particles.

It would be a bit easier to clarify if you could post a file.
User Avatar
Member
3 posts
Joined: Sept. 2014
Offline
Hi, I have attached a exemple of my problem with a simple scene.
I have a sphere that have a image camera projected on it.
I would like to transfer the color of this projection on the sand simulation that i have created with this sphere as the emitter.
I tried to use the Attribute from map but its not using the projection UV but a orthographic UV.

If you could help that would be awesome!
Thanks!

Attachments:
exemple.hiplc (743.5 KB)

Sebastien Chartier
Lead FX
User Avatar
Member
453 posts
Joined: Feb. 2013
Offline
Haven't worked much with particles before, but I think I got it.
I am sure you can optimize this, but the basic idea is to inherit the point attribute Cd from the source geo.

Attachments:
sand example test.hiplc (749.4 KB)

User Avatar
Member
3 posts
Joined: Sept. 2014
Offline
Thank you DASD!
It works great! So you need to subdivide the original geo to get more points.
I will test this in my project scene today.

Thanks again!
Sebastien Chartier
Lead FX
  • Quick Links