Results 1 to 2 of 2

Thread: Simulation

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2002
    Posts
    19

    Simulation

    I am trying to generate a rain like simulation. here the water is dropped into a glass plate and water droplet moves towards the gravity. as i use some sphere as a droplet and generate randomly in the grass plate.

    how to retain the frame when using Double Buffering. letz say for example when i am trying to move the droplet down and simultaneously generating droplets in different locations. how to retain the buffer. is there anyway to store these information in the memory and retain each n every frame?

    if we do this is this will take more memory to render the scene? or any alternative method to accomplish this task? I am displaying this droplets in the render or display function but can't able to retain the previous frames.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: Simulation

    First understand how rendering works, each time you render you start from the scratch.

    You make varibles to hold the location of each drop, and redraw the complete scene with each drop in a new location.

    You need to look at some tutor's on how to use openGL, this will give you a better idea of how to program. I thing what you want to do is too advanced for you. try learning to draw object and learn programming a little more.

    nehe.gamedev.net is a good place to start.

    Originally posted by ajmrm:
    I am trying to generate a rain like simulation. here the water is dropped into a glass plate and water droplet moves towards the gravity. as i use some sphere as a droplet and generate randomly in the grass plate.

    how to retain the frame when using Double Buffering. letz say for example when i am trying to move the droplet down and simultaneously generating droplets in different locations. how to retain the buffer. is there anyway to store these information in the memory and retain each n every frame?

    if we do this is this will take more memory to render the scene? or any alternative method to accomplish this task? I am displaying this droplets in the render or display function but can't able to retain the previous frames.

Similar Threads

  1. Replies: 1
    Last Post: 02-03-2017, 05:49 AM
  2. Simulation
    By PlayBoy in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 12-19-2002, 03:22 AM
  3. Newbie -- NC - CAD Simulation
    By tiko in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-18-2002, 10:23 AM
  4. Simulation
    By atiface in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-28-2002, 07:22 PM
  5. Physics Simulation
    By MaverickHL in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-04-2001, 06:43 PM

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