Tried glOrtho, no change - think gluOrtho2D is the same anyway, it just puts in the near and far values as -1 and 1.
Tried glFrustum as well, but no difference. Its a real puzzler :s
I’m prob just missing something simple out.
Not using glViewport (except in the reshape function, which i haven’t implemented yet), because i’m using local coordinates rather than image coordinates, so to speak.
That link shows how the fractal grows through each iteration. Its hard to see it but after the first few iterations the fractal moves steadily in the (x, -y) direction. Just so gives you a clearer idea of what i’m on about!
I can email the code to anyone who’s interested and i’ll copy some in here later if I’m still stuck.
Basically I have four variables, xMin, xMax, yMin, yMax, that I use with gluOrtho2D() at the start of the program.
For each iteration, I calculate the centre of the dragon, which is simple enough (its the last vertex of the previous iteration) and adjust the values of xMin, xMax, yMin, and yMax i.e.
xMin += centreX;
xMax += centreX;
yMin += centreY;
yMax += centreY;
However if i then call gluOrtho2D again with the updated variables, the screen goes black for some reason. I just assumed u could only call gluOrtho2D once and needed to use another function if u needed to change it during execution.
Maybe i’m just too tired, or too stupid