true isometric projection with opengl

Try using gluLookAt glClearColor(0.0, 0.0, 0.0, 1.0); glClear(GL_COLOR_BUFFER_BIT); glMatrixMode(GL_PROJECTION); glLoadIdentity(); /* use this length so that camera is 1 unit away from origin */ double dist = sqrt(1 / 3.0); gluLookAt(dist, dist, dist, /* position of camera */ 0.0, 0.0, 0.0, /* where camera is pointing at */ 0.0, 1.0, 0.0); /* which direction is … Read more

Drawing Isometric game worlds

Update: Corrected map rendering algorithm, added more illustrations, changed formating. Perhaps the advantage for the “zig-zag” technique for mapping the tiles to the screen can be said that the tile’s x and y coordinates are on the vertical and horizontal axes. “Drawing in a diamond” approach: By drawing an isometric map using “drawing in a … Read more

Improving performance of click detection on a staggered column isometric grid

This answer is based on: 2D grid image values to 2D array So here it goes: conversion between grid and screen As I mentioned in comment you should make functions that convert between screen and cell grid positions. something like (in C++): //————————————————————————— // tile sizes const int cxs=100; const int cys= 50; const int … Read more