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?
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?
