Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthordorkbot
- CommentTimeAug 9th 2011
I'm using the fireworks example: http://flintparticles.org/examples/firework-display-3d
I would like the Whizzer to appear behind previous Whizzers, and same with the SphereBang. Currently the Whizzers are placed in front of previous Whizzers. But I think it looks more natural if the Whizzers don't appear infront of any SphereBangs. How would I change the stacking order of a Whizzer?
Thanks! -
- CommentAuthorRichard
- CommentTimeAug 19th 2011
When the BitmapRenderer is created, the second parameter (false in the example) indicates whether the particles should be sorted to render particles nearer the camera on top of those behind. Set this to true and the sorting will occur.
You will also need to ensure that the particles are in fact in front of the particles you want them in front of, by setting the position of the emitters and initializing the particles appropriately.
1 to 2 of 2
