Results 1 to 3 of 3

Thread: ODE Integration techniques demo

  1. #1

    ODE Integration techniques demo

    I've just completed a little demo showing four commonly used numerical integration techniques used for the ordinary differential equations that one often encounters in game physics. The four methods are Standard Euler, Backwards Euler, Velocity Verlet, and Runge-Kutta. I've applied these techniques to the classic gravitational two-body problem involving the Earth and the Sun. I found that the well-known fixed-timestep-and-interpolation method suited this problem very well, especially for very large timesteps.

    You can check out this screenshot to preview the demo, but if you have JEDI-SDL and FreePascal then you can try out the demo yourself because here is the source code:

    http://www.ludicity.org/files/integrate.tar.gz (104.9 KB)

    To compile just do: fpc -Mobjfpc integrate.pp

    Be sure to read the readme.txt file for keyboard commands (you can change the timestep, as well as pause and/or return to the start).

    Oh and I've only tested this on Linux, but I hope it will work on other platforms, too.
    [size=10px]"In science one tries to tell people, in such a way as to be understood by everyone, something that no one ever knew before. But in poetry, it's the exact opposite." -- Paul Dirac[/size]

  2. #2

    ODE Integration techniques demo

    Works fine on Win32 too. Nice work
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  3. #3

    ODE Integration techniques demo

    interesting!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •