Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
jabheightmap 0.1 (January 27, 2003) This program features a small OpenGL world created with a PNG heightmap. It puts all of the quads of the map into an octree, which is used to cull quads that definitely aren't in the view frustum. It requires OpenGL (of course), X11/GLX, and libpng. To build it, run 'make' in the jabheightmap-0.1 directory (you may need to edit the Makefile appropriately for your system first); a binary called 'main' will be created, which you can then execute. Use the mouse to look around and use the arrow keys to move. Pressing the w key will toggle wireframe mode, s will dump a raw RGBA screenshot to a file named screen.raw, and escape will quit. I doubt I'll ever do anything more with this, so I'm releasing it in case anyone else finds the code helpful. The code is covered by a BSD-style license (see map.h or any other source file for the exact terms). The PNG images are public domain. Josh Beam <email@example.com> http://joshbeam.com/