A small OpenGL demo featuring a world created with a PNG heightmap.
joshb/jabheightmap
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
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 <josh@joshbeam.com> http://joshbeam.com/
About
A small OpenGL demo featuring a world created with a PNG heightmap.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published