hello Egon, as usual, very quick to answer
I checked the video modes. There are many different ones either with 16 or 32 bits depth (never 24). I also tried to split from 32 to 16 on the desktop. No results.
I checked the car and FPS demo on the same computer. Both work but i suppose they are not using AWTGLRenderer. Is There a demo with an AWTGLCanvas that i could test?
I tried to modify Config (glColorDepth set to 16, 24 and 32) no results...
I join some of my initialization code... maybe i m doing something wrong...
public WorldInterface(String [] args, String mapName, VirtualLearning vl){
[...]
this.setSize(width, height);
try{
Config.glRefresh=0;
Config.glMipmap=true;
World.setDefaultThread(Thread.currentThread());
buffer = new FrameBuffer(width, height, FrameBuffer.SAMPLINGMODE_NORMAL);
buffer.disableRenderer(IRenderer.RENDERER_SOFTWARE);
myCanvas=buffer.enableGLCanvasRenderer(IRenderer.MODE_OPENGL);
System.out.println("VIDEO MODE");
VideoMode []v = buffer.getVideoModes(IRenderer.RENDERER_OPENGL);
for (int i=0; i<v.length;i++)
System.out.println(v[i]);
this.add(myCanvas);
Config.maxPolysVisible = 50000; // max number of polygons that can be shown
keyMapper = new KeyMapper(myCanvas);
theWorld = new World();
texMan = TextureManager.getInstance();
this.setupLighting();
this.setupFog();
this.loadingTerrain(mapName+Constants.SEP);
[...]
this.setupCamera();
Config.tuneForOutdoor();
new Thread() {
public void run() {
myCanvas.addMouseListener(new WorldInterfaceMouseListener());
myCanvas.addMouseMotionListener(new WorldInterfaceMouseMotionListener());
}
}.start();
}
catch (Exception e){
System.err.println("WorldInterface constructor");
e.printStackTrace();
this.exit();
}
}