ruchitinfushion
06-18-2010, 06:07 PM
Hello everyone,Recently i started new R&D on fluid emission from zDepth render pass.And here is my first test Depth Emission. (http://www.vimeo.com/12675981)
About Scene:>>
File texture node loaded with render sequence of zDepth.And using colorAtPoint cmd i m capturing red channel from file texture node.and with setAttr i added fluid density in Z index of fluid container.
Now help me to get high detail @ mide rez wid nice wispy wind motion.Thank you
And special thanks to Jeremy Raven for this code
int $Xres = fluidShape1.resolutionW;
int $Yres = fluidShape1.resolutionH;
float $color[] = `colorAtPoint -o RGBA -su $Xres -sv $Yres file1`;
float $alphaMult = 1;
float $rgbMult = 1;
int $i, $j, $num=0;
for ($i=0; $i < $Xres; $i++) {
for ($j=0; $j < $Yres; $j++) {
setFluidAttr -at "density" -xi $i -yi $j -fv ($color[$num*4+3]*$alphaMult ) fluidShape1;
setFluidAttr -at "color" -xi $i -yi $j -vv ($color[$num*4]*$rgbMult) ($color[$num*4+1]*$rgbMult) ($color[$num*4+2]*$rgbMult) fluidShape1;
$num++;
}
}
About Scene:>>
File texture node loaded with render sequence of zDepth.And using colorAtPoint cmd i m capturing red channel from file texture node.and with setAttr i added fluid density in Z index of fluid container.
Now help me to get high detail @ mide rez wid nice wispy wind motion.Thank you
And special thanks to Jeremy Raven for this code
int $Xres = fluidShape1.resolutionW;
int $Yres = fluidShape1.resolutionH;
float $color[] = `colorAtPoint -o RGBA -su $Xres -sv $Yres file1`;
float $alphaMult = 1;
float $rgbMult = 1;
int $i, $j, $num=0;
for ($i=0; $i < $Xres; $i++) {
for ($j=0; $j < $Yres; $j++) {
setFluidAttr -at "density" -xi $i -yi $j -fv ($color[$num*4+3]*$alphaMult ) fluidShape1;
setFluidAttr -at "color" -xi $i -yi $j -vv ($color[$num*4]*$rgbMult) ($color[$num*4+1]*$rgbMult) ($color[$num*4+2]*$rgbMult) fluidShape1;
$num++;
}
}
