Using Group and Material for Fluid Surface

   2390   2   1
User Avatar
Member
68 posts
Joined: 10月 2011
Offline
Hello, I need help on assigning different materials based on point color. My scene consists of 1 Dop Network exporting into particle_fluid geo by using the shelf tool. I used several emitters with different color. I was able to access those colors after sim. I thought I can group(points) them and use materialSOP(point attribute) to assign a material to that group. But it seem to not work.

I hope I somehow made sense. Thanks for helping.
User Avatar
Member
68 posts
Joined: 10月 2011
Offline
It's still a riddle to me on what to do next. So basically here's what I did:
Created an emitter and turn it into a FLIP emitter using the shelf tool.
Added three more emitters using FLIP source.
Each emitter has its own viscosity and density attributes.
Add colors to each emitters(R, G, B 0.1, B 0.9).
Sim went well.

Colors are in the surface geo contained created by FLIP emitter shape tool.

Now here's the thing. I thought I could group the surface (points) using the colors and assign different shaders/materials. I did that and it didn't work. I used group (points) then materials(point attributes on groups).

I would appreciate any help I could get. Thank you
User Avatar
Member
1391 posts
Joined: 12月 2010
Offline
The important thing is you can't use Point Group in the Material SOP , the Point Attribute class in this node is only for point's instance.

So you can extract each particle group with “Delete SOP” and Point Expression and assign different material to each group , Then merge them together after assigning different material.

Also if you wanna add different material and render your particles as points (not Mesh or Surface) , So you should convert your Flip Particles to Old-Particle System type with Add SOP.

I made a simple project about these methods for you :wink:

Attachments:
JKEmitterMultiColor.zip (128.1 KB)

https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
  • Quick Links