I'm writing a tile-based mini-rpg in OpenGL.
At the moment I am setting up my screen like so:
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0.0f, 640.0f, 480.0f, 0.0f, -1000.0f, 1000.0f);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
This works great, I've got the map loaded and rendering, 3D objects rendering where they're supposed to, pathfinding, etc. all going. However, I would like to try out how it looks in a perspective view (similar angle to Warcraft 3). I thought replacing the glOrtho line with the following would work:
glFrustum(0.0f, 640.0f, 480.0f, 0.0f, -1000.0f, 1000.0f);
but instead nothing shows at all, no map, no objects, nothing.
Shouldn't it be comparable with what I originally set up?