Results 1 to 6 of 6

Thread: Simple simulations - need advice

  1. #1

    Simple simulations - need advice

    I'm a relative newbie to OpenGL and I'm planning to develop simple simulations of astromonical events - e.g. solar eclipse, asteroid hurtling toward earth, gas cloud collapsing for form a star, etc.

    How would you go about writing systems like these with OpenGL? I've got simple programs working now, but they hardcode the geometry and don't use any kind of scene graph or bsp-tree for scene manipulation (and I'm not sure they need to).

    I'm not sure where to start. Any references would be greatly appreciated.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2001

    Re: Simple simulations - need advice

    definitely not bsp trees. they are used for hidden surface removal and work best with indoor environments. sounds like you should start looking at particle engines, gravity, physics, etc.


  3. #3
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Bonn, Germany

    Re: Simple simulations - need advice

    Check out the spec section about vertex arrays. It's pretty straight forward once you manage to wrap your mind around it. This will remove the need for hard-coded geometry.

    Animation and culling falls into the realm of software engineering challenges though. OpenGL is too low level to handle it all.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Jul 2001

    Re: Simple simulations - need advice

    For a space sim however, you might consider researching Octrees or at least frustum culling. I'm sure the former isn't particularly `easy' or at beginner level (intermidiate). There are `scene graphs' available all over the place that hook into OpenGL though - so you might consider using one of those (if you want to learn how they work, its best to try and write your own however).

  5. #5

    Re: Simple simulations - need advice

    Thanks for the tips. I should amend my original "newbie" statement. While I'm a newbie to OpenGL, I've been programming in C and C++ for 8-10 years.

    My OpenGL experience is currently the basics I've learned with the Red Book and Super Bible - transformations, matrix stacks, simple camera operation, texture mapping, lighting, materials.

    I'm just stuck on where to go next for the "higher level" stuff involved in building/rendering a scene. The Graphics Gems books seem to be too low level...Real Time Rendering and the 3D Game Engine Design book look promising. OpenInventor seems like overkill for what I would like to do.

    Anyway, thanks again, and I hope this gives a better picture about where I currently am in my experience.

  6. #6
    Member Newbie
    Join Date
    Aug 2001
    Vancouver, British Columbia, Canada

    Re: Simple simulations - need advice

    You could check out some VRML tutorials (google search: vrml tutorial)

    Coding the graph is easy once you see how it's done, and VRML does it.


Similar Threads

  1. Need some advice
    By Ehsan Nekooee in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 08-26-2009, 02:08 PM
  2. Looking for tutorials on OpenGL simulations
    By maxxjr in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-21-2009, 07:42 PM
  3. I want to create Sandbags for Military Simulations
    By iris_raj in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-04-2003, 04:57 AM
  4. want some advice
    By c_anindya in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-22-2002, 05:00 PM
  5. Some advice please.
    By Zadkiel in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 12-30-2000, 08:27 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