Hello Guest

noob needs help: strange drawing

  • 3 Replies
  • 4608 Views
noob needs help: strange drawing
« on: March 04, 2007, 15:05:41 »
« Last Edit: March 04, 2007, 15:09:55 by straightXedge »

*

Offline Matzon

  • *****
  • 2242
Re: noob needs help: strange drawing
« Reply #1 on: March 04, 2007, 22:42:39 »
probably your GL initialization that is different ?

Re: noob needs help: strange drawing
« Reply #2 on: March 05, 2007, 16:22:12 »
The normal Display.create() path does a little initialization of OpenGL:
Code: [Select]
GL11.glMatrixMode(GL11.GL_PROJECTION);
GL11.glLoadIdentity();
GL11.glOrtho(0.0, current_mode.getWidth(), 0.0, current_mode.getHeight(), -1.0, 1.0);
GL11.glMatrixMode(GL11.GL_MODELVIEW);
GL11.glLoadIdentity();
GL11.glViewport(0, 0, current_mode.getWidth(), current_mode.getHeight());
I could not find something similar in the AWTGLCanvas initialization. So you probably need to set up your view this way (or similar) to get it to work the same.

To the Devs: Should the 2 paths be different? ???
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

Re: noob needs help: strange drawing
« Reply #3 on: March 06, 2007, 14:49:59 »
thx guys, fool running were right, it works now ^^

thx