PDA

View Full Version : Plancton Particle: Intelligent Solution for Huge Scene (CamMovement)?


stingray2007
03-28-2011, 07:43 PM
Hi! I actually work on some underwater shots, and have created
a simple sphere volume emitter with instances pointing to the camera.

the camera has a fulldome lens attached and is placed in the center of
the emitter. a volume field kills particles near the camera (to avoid
getting extreme huge planctons on screen)

that works fine for stills, where the camera isnt moving. but i have
some shots, where the camera is following a submarine, and the movement
is very long. instead of creating a field of millions of planction it
would be great to find a solution, where just the plancton surrounding
the center camera is visible.

do you have ideas, how to solve this problem?!?

btw, i dont wanna just make them invisible, i just want to make them appear, if they are near the camera, you know?!

thanks alot for your time & Help!

ruchitinfushion
03-29-2011, 02:47 AM
Try to integrate below expression with your requirement.

float $MaxDistance = 5;
vector $POS = particleShape1.position;
if($POS.x > $MaxDistance || $POS.y > $MaxDistance || $POS.z > $MaxDistance)
{
particleShape1.lifespanPP = 0;
}
else
{
particleShape1.lifespanPP = 1;
}

Hope this will help.Thank you

Aikiman
03-29-2011, 04:34 AM
Maybe you could just place a volume emitter in front of your camera and emit particles scaling them up from 0-1 before they reach death so they appear to come from far away. I would also use opacity so the die off gradually rather than suddenly.

Maybe you could use an expression on the opacity based on distance of particle and camera to do this.

CGTalk Moderation
03-29-2011, 04:34 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.