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


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

Re: particle container in Java

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From BGB <cr88192@hotmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: particle container in Java
Date Sat, 05 Nov 2011 09:16:03 -0700
Organization albasani.net
Lines 39
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>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net +p5AYc2SYOs5IVDzEZKYlXDooy+knmAJTT9L47x9+dbHPUnz4n3CuP0S7dP3W80kSJdIZe0/j7x+jMaRZLzvtTz6gS9+oVDhUay/PqffyKn5KXspD4/o1d3ajPOisZTb
NNTP-Posting-Date Sat, 5 Nov 2011 16:16:19 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="joz8v3khQfQCUbcuxLxOEMXkC8y17mJPwc4WWYVLAtXygL87PH/QAQS80SzcD5J6r2maPkL2ndOwTPh2PQ6acWn/P4u9Q1kpoTlfvPe5vgsdzFLRK97MQ6EIxMBfYERo"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
In-Reply-To <4mfab7hjme9lrklbo9k3415fljail4cgl4@4ax.com>
Cancel-Lock sha1:zlJcgba6IyzmAlIvUuVKWkDsFXo=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9576

Show key headers only | 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 | Unroll thread


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