Best way to do “flying through dust” (particles)

Software: Away3D 4.x

Fragilem17, Newbie
Posted: 08 June 2013 12:20 PM   Total Posts: 15

I’m trying to create a bunch of particles around my spaceship, to give a sense of speed.

I’m trying to use particles.

What would a good setup be?

I’ve tried this:
  add the ship to the scene
  add the particle “emitter” mesh to the scene
  create a particleFollowNode on the emitter and set the target to the ship

Great, i can fly through the particles! BUT
the moment the centerpoint of the “emitter” is not inside the viewport, all the particles disappear.

Is there a better way to do this?

   

Avatar
GoroMatsumoto, Sr. Member
Posted: 08 June 2013 01:07 PM   Total Posts: 166   [ # 1 ]

You should set “bounds” for the particle mesh.

particleMesh.bounds.fromExtremes(-500, -500, -500500500500); 

or

particleMesh.bounds.fromSphere( new Vector3D(), 1000); 

Cheers.

   

Fragilem17, Newbie
Posted: 08 June 2013 02:21 PM   Total Posts: 15   [ # 2 ]

Awesome, worked!
next up: allowing only the particles that are not being looked at and are a certain distance away to be killed and put back again.

will be trying more tonight. Everything will be on github to btw. if somebody has any pointers for the next step before i continue this tonight. be my guest to comment.

thx!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X