PDA

View Full Version : fluids and an image sequence?


moomoor82
02-20-2008, 09:14 PM
Hey guys,
Is it possible to map an image sequence to the color and density of a 2d/3d fluid?
thanks

Scob
02-21-2008, 01:30 PM
hi ,


I know that with this plugin (stroika) you can map the color of the fluid effect .

http://www.kolektiv.com (http://www.kolektiv.com/propaganda.php?GALLERY_INDEX=2)

http://www.kolektiv.com/propaganda.php?GALLERY_INDEX=2

Hope it helps.

Cheers

Jerome

lightcache
02-21-2008, 01:49 PM
wow that looks quite impressive, has anyone used it?

akril
02-21-2008, 05:40 PM
Hi,
In fact you can do this directly in Maya without any plugins. Create your Fluid Container 3D and use Paint Fluids Tool (from Add/Edit Contents). With this tool you can paint your fluid like Sculpt Geometry, so set the Paintable attributes to "Color" or "Density" and open Attribute Maps. Inside this one, you just have to Import your map and that's it !!
Thanks to Global Paint Tool :thumbsup:

bye.

moomoor82
02-21-2008, 06:49 PM
Hey Akril,
u can only import a single image like that. I'm looking for a way to import a sequence.
thanks

Scob
02-22-2008, 09:40 AM
Hi,
In fact you can do this directly in Maya without any plugins. Create your Fluid Container 3D and use Paint Fluids Tool (from Add/Edit Contents). With this tool you can paint your fluid like Sculpt Geometry, so set the Paintable attributes to "Color" or "Density" and open Attribute Maps. Inside this one, you just have to Import your map and that's it !!
Thanks to Global Paint Tool :thumbsup:

bye.

Cool !

Thanks for the tips ! :bounce:

alexx
02-22-2008, 11:08 AM
you can use a workaround to have it the way you want..

since the search in the forum does not work here a snip from that other thread where Duncan gave the right direction:

you can create a plane that is emitting particles. these particles can use images to emit on the right place and color.
now you can use these particles to give density/color to your fluid.

use that here below as a runtime expression of your particle system.


vector $myVec = particleShape1.position;
vector $myCol = particleShape1.rgbPP;
float $densityEmission = 0.1;
int $vox[] = `fluidVoxelInfo -objectSpace false -cb -voxel ($myVec.x) ($myVec.y) ($myVec.z) fluidShape1`;
if( size($vox) > 0 ){
setFluidAttr -ad -at density -xi $vox[0] -yi $vox[1] -zi $vox[2] -fv $densityEmission fluidShape1;
setFluidAttr -at color -xi $vox[0] -yi $vox[1] -zi $vox[2] -vv ($myCol.x) ($myCol.y) ($myCol.z) fluidShape1;
}


cheers

alex

CGTalk Moderation
02-22-2008, 11:08 AM
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.