Projects / Gravit


Gravit is a gravity simulator. It uses Newtonian physics using the Barnes-Hut N-body algorithm. Although the main goal of Gravit is to be as accurate as possible, it also creates beautiful looking gravity patterns. It records the history of each particle so that it can animate and display a path of its travels. At any stage you can rotate your view in 3D and zoom in and out. Gravit uses OpenGL, Lua, SDL, SDL_ttf, and SDL_image.

Operating Systems

Recent releases

  •  08 May 2012 03:23

    Release Notes: This first release in seven years has many improvements including massive performance optimisations, a new user interface, skyboxes, international keyboard support, support for Lua 5.1, red-cyan 3D mode, and many more features and bugfixes.

    •  10 Jun 2005 09:17

      Release Notes: This version has console tab completion and some new shortcut keys. The console will now render when accessing the console with drawosd set to 0. The stereoosd command was added to view the osd in stereo. A few bugfixes were made.

      •  08 Jun 2005 12:12

        Release Notes: Stereoscopic mode was fixed to show simulation in the center of your view. The old Makefile is included and autoconf now uses sdl-config. Many bugfixes were made.

        •  31 May 2005 13:30

          Release Notes: Gravit now has scriptable spawn locations using Lua. The source now compiles with a configure script. There are per-user preferences when building from source. You can replay in slow motion using a negative value for frameskip. Your view is automatically zoomed in or out to a newly spawned simulation. Many other changes were made, including extra color modes and more commands.

          •  15 Apr 2005 08:12

            Release Notes: This release has a working Mac OS X Makefile. There is now console help accessible by typing 'help' in the console. You can list and delete saved simulations (savelist, savedelete). The console is now easy to navigate using cursor keys.

            Recent comments

            04 Apr 2005 12:46 florinandrei

            Wow!!! Awesome!
            Three thumbs up for the idea! I'm a physics geek turned computers geek, and i always liked this kind of applications.
            I didn't try yet to compile it on Linux, but probably i'll try one of these days.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.