Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #9576

Re: particle container in Java

From BGB <cr88192@hotmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: particle container in Java
Date 2011-11-05 09:16 -0700
Organization albasani.net
Message-ID <j93ngj$a4n$1@news.albasani.net> (permalink)
References <17fed3e9-15e0-466c-bb24-10e74633ea1b@t8g2000yql.googlegroups.com> <CAD8D679.891A%bravegag@hotmail.com> <j8vtuh$qhm$1@news.albasani.net> <4mfab7hjme9lrklbo9k3415fljail4cgl4@4ax.com>

Show all headers | View raw


On 11/5/2011 6:49 AM, Roedy Green wrote:
> On Thu, 03 Nov 2011 22:41:05 -0700, BGB<cr88192@hotmail.com>  wrote,
> quoted or indirectly quoted someone who said :
>
>> I am aware that probably around 1000-5000 particles are used for most
>> particle effects (such as explosions), where one will have maybe 2500
>> particles for the "fire and sparks", another 1000 or so for smoke
>> particles, ...
>
> are you doing this rendering in "real" time?  In other words fast
> enough for game rendering, or are you producing movie effects where
> you can take days to produce a few seconds of rendering?

real time...

more so, I try where possible to keep things in the 40-60fps range, and 
try some to keep it still usable on older HW (a laptop of mine from 
2003, and another laptop of mine from 2009 but with a lame Intel GPU, 
although the frame-rates are not very good on these).

if I were doing it offline, I could have many more particles than this.


the basic strategy for making a particle explosion in my case is 
basically to have lots of fire and smoke particles, which all "explode" 
outward from a central point. most of these are small sprites.

most particles are also non-interacting.


for offline rendering, one would likely have much larger numbers of 
particles.

this is also why one will limit the max number of particles in a scene, 
as otherwise too make particle effects would hurt the framerate (as-is, 
if there are too many particle effects, they will start sputtering).
the current limit is 10k particles, but IIRC this limit was set probably 
back when I was using a Radeon 9200 or similar. on modern HW, a higher 
limit would probably work, but I have no immediate need to change it.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

particle container in Java bob <bob@coolgroups.com> - 2011-11-03 01:05 -0700
  Re: particle container in Java Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-03 08:33 +0000
  Re: particle container in Java Roedy Green <see_website@mindprod.com.invalid> - 2011-11-03 08:12 -0700
    Re: particle container in Java BGB <cr88192@hotmail.com> - 2011-11-03 13:51 -0700
      Re: particle container in Java Roedy Green <see_website@mindprod.com.invalid> - 2011-11-04 15:54 -0700
        Re: particle container in Java BGB <cr88192@hotmail.com> - 2011-11-04 19:48 -0700
          Re: particle container in Java Roedy Green <see_website@mindprod.com.invalid> - 2011-11-05 06:42 -0700
  Re: particle container in Java Giovanni Azua <bravegag@hotmail.com> - 2011-11-03 23:38 +0100
    Re: particle container in Java BGB <cr88192@hotmail.com> - 2011-11-03 22:41 -0700
      Re: particle container in Java Roedy Green <see_website@mindprod.com.invalid> - 2011-11-05 06:49 -0700
        Re: particle container in Java BGB <cr88192@hotmail.com> - 2011-11-05 09:16 -0700
          Re: particle container in Java Roedy Green <see_website@mindprod.com.invalid> - 2011-11-06 03:07 -0800
            Re: particle container in Java Giovanni Azua <bravegag@hotmail.com> - 2011-11-06 15:15 +0100
              Re: particle container in Java BGB <cr88192@hotmail.com> - 2011-11-06 11:06 -0700
  Re: particle container in Java Arne Vajhøj <arne@vajhoej.dk> - 2011-11-03 19:03 -0400

csiph-web