PDA

View Full Version : Sampling fluid color


Htogrom
10-20-2008, 04:55 PM
I have fluid and particles, affected by that fluid. I want to pass color from fluid to particles.
I want to pass lighting info from fluid to particles. In that way, rgbPP will hold info about lighting and selfshadowing of the fluid. Then, I would connect rgbPP to fluidShader assigned to particles.

Only problem is that, I don't know a way to sample color info of the fluid. GetFluidAttr gives only voxel data, here something like colorAtPoint is needed, but it doesn't work on 3d textures. Is there any command in maya for sampling 3d texture, or to sample fluid color?

Aikiman
10-20-2008, 07:56 PM
Are you sure getFluidAttr -at color doesnt return a triple float?

cosku
10-20-2008, 09:48 PM
You wouldn't get self-shadowing properties from getFluidAttr.

Have a look at bakeFluidShading.mel under MayaDir\scripts\others

CGTalk Moderation
10-20-2008, 09:48 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.