Hi,
Can anyone suggest why a call to gluPerspective() in the init() method has no affect on the image rendered via the display() method?
The only way I get to see my primitives on-screen is by placing my gluPerspective() call in the display() method - where it’s called for every frame rendered.
I’ve stripped my code down until it’s of the form:
in init()
- switch to projection matrix 2) load identity 3) issue gluPerspective call 4) switch to model/view matrix 5) continue set-up
in display() - apply model/view transforms 7) render display list
I see nothing on-screen unless I move steps 1 to 4 into the display() method.
Am I missing something obvious here?
Could the code in the reshape() method play a part in this?
Do I need to post real code here or can anyone suggest likely errors?
Any / all suggestions mightily appreciated.