Results 1 to 9 of 9

Thread: Number of particles

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    Bournemouth,dorset, uk
    Posts
    15

    Number of particles

    Hey guys,
    I am trying to build a particle model of a breaking wave. I need to know what is a reasonable number of particles that can have positions calculated in realtime, eg between frames. Also, because the wave is breaking, i cannot use a height field to represent the ocean surface, as when it breaks, the height field will not show it properly.
    Basically, I am not that interested in fancy lighting or flashy effects. I am using a 2D representation and need to find out how many particles to use.

    Any ideas??

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: Number of particles

    I think this is something you are only going to find from experimentation.

  3. #3
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    472

    Re: Number of particles

    dunno, but heres a couple of suggestions to allow you to have some more...

    Dont use dynamic data structures to store the particles (linked lists, queues etc) they will kill your frame rates.

    Do store them in a nice large array.

    Do look at vertex arrays to draw as much geometry as possible.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Sydney, NSW, Australia
    Posts
    426

    Re: Number of particles

    Err, if your going to simulate a breaking wave why not simply use a mesh?
    :: Sleep is a poor substitute for caffeine ::

  5. #5
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    B.C., Canada
    Posts
    367

    Re: Number of particles

    Breaking waves are foamy. I have yet to see a mesh that is foamy, but a particle system could probably simulate this pretty well.

    j

  6. #6
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Dunblane, Scotland
    Posts
    333

    Re: Number of particles

    I think a mesh with particles would be good.
    Reality is for idiots only the best over come it!

  7. #7
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    Bournemouth,dorset, uk
    Posts
    15

    Re: Number of particles

    Many thanks guys,

    Sorry i havent replied sooner but i have had a "FINGERS IN BLENDER" accident and have to try and type left handed.
    The advice on using a data array or vertex array will be heeded. How do i use a mesh.What is a mesh? i am really very new to this game.
    Also, what i am really trying to model accurately is how far the lip of the wave is thrown forward, how hollow the wave is.My eventual aim is to vary the gradient of the beach and have this affect the hollowness of the wave.
    My main problem concerns how to recalculate the position of each particle between frames.
    For instance, if the wave is travelling from left to right, do i calculate forces, speeds etc for particles from left to right, right to left or what.
    Also how do i ensure that the movement of one particle doesnt compress the fluid. Essentially, if the particles are in a grid, do i just calculate the effect of all neighboring particles or what.

    Cheers people

    Ben(BlenderFool)

  8. #8
    Guest

    Re: Number of particles

    Do you fully realize what you’re getting in to? I hope that you've got a very string calculus background and your willing to learn fluid dynamics. If you really want to finish (or start) this program then you should start looking for programmatic approaches to fluid dynamics. It should give you all the proper transfers of energy, which you will then have to convert into kinetic energy and see how the spray goes thru the air (which even though it is not, you should treat as a non-compressible fluid)

    What your proposing sounds exciting as you will be able to vary the viscosities of air and water so this program will eventually be able to simulate those oil droplets in water toys.

    Wow, good luck. Program your ass off!

  9. #9
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Sydney, NSW, Australia
    Posts
    426

    Re: Number of particles

    You should use a compbination of a mesh for the surface of the water and a particle engine for the foam... I can tell you this now this is a VERY hard project and requires the knowledge of fluid dynamics.
    :: Sleep is a poor substitute for caffeine ::

Similar Threads

  1. Particles
    By Samuel GL in forum OpenGL: GLSL
    Replies: 3
    Last Post: 02-03-2007, 08:27 PM
  2. Particles
    By Samuel GL in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 02-03-2007, 01:39 AM
  3. particles/vbo
    By JanHH in forum OpenGL: Advanced Coding
    Replies: 23
    Last Post: 08-11-2003, 09:06 AM
  4. Particles
    By ArchMiffo in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 09-01-2002, 10:41 PM
  5. particles
    By in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 07-29-2002, 05:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean