I have finally got something to draw on screen using 3d, am drawing lines at the moment. I have set the ortho to:
glOrtho(100.0,-100.0,100.0,-100.0,100.0,-100.0);
and have set the lookat to
gluLookAt(0,0,0,0,0,60,0,1,0);
The idea of the look at it from far back.
What is meant to happen in my program is a line should get animated, but when i draw the initail line it does the following, excuse the ascii art:
-----------|------------
| | |
| | |
| | |
| | |
| |
| |
------------------------
hopefully from that you should work out that the line does not start as a dot, as it should and on the first frame is drawn like that.
Can you see anything wrong with the ortho or look at, am using projection matrix and all of these settings are in the Display() function.
Can someone shed some light on what it might be. It could be a coding problem with my code, am looking into that now.