www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Melssj5 on September 05, 2005, 09:29:11 am

Title: Detecting OpneGL capability
Post by: Melssj5 on September 05, 2005, 09:29:11 am
Hi, when I began trying this engine again, I tried to use the openGL but all what I got was a white screen, so I tried all what was possible, but I just couldnt, then I thought that it could be due to my graphic card, because I lend my GForce 4 to my brother and I was using my sis651 of 64MB that is supposed to have OpenGL compatibility.

When I bring my GForce again it worked perfectly, so I want to know if is there any way that the engine API can detect this capability!!!!!
Title: Detecting OpneGL capability
Post by: EgonOlsen on September 05, 2005, 06:14:23 pm
To detect if OpenGL is possible, you may get the video modes by calling
FrameBuffer.getVideoModes(IRenderer.RENDERER_OPENGL);
If it returns a none empty array, OpenGL is supported. But that doesn't mean that your SIS651 correctly supports it. SIS is known for crappy drivers and the SIS651 is a joke of a graphics chipset. I also think some people reported problems with SIS and LWJGL but i'm not sure...
Title: Detecting OpneGL capability
Post by: Melssj5 on September 06, 2005, 09:30:35 am
ok, thanks a lot, I had spent two days after thinking of the graphic card  :oops:

Detecting the hardware aceleration  is very usefull when doing a programm.