Wonderful. I get frustum culling working beautifully on a test height map (A), but when I load in a new height map (B) which is about 4 times the size, frustum culling decides to screw up.
It seems as if regardless of where my camera is, the view frustum rotates around world coords 0,0,0 rather than the camera(?)
Any ideas? I only changed the heightmap!
Note: the code is an implementation of Mark Morley’s example:
http://cslab.wheaton.edu/~dthulson/projects/Pirates/frustum.html