Problems with own GL3 Basecode

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with own GL3 Basecode

iuiz
Hi,

we tryed to create a OpenGL basecode that does display a simple triangle, however it does not run on all PC's and we don't now why. My PC is not that old and I got new drivers, so I just don't know what is wrong with it.

Can anyone look at the Code? I know from some people that they had to change the version of the shaders, but for others it was fine like it is, what just confuses me more.

Here is the code: http://pastebin.com/rfY7q1nj

Thx,

iuiz

PS: Here is whats on my std out:
GLBasecode Init: AWT-GLCanvas[Realized true,
	jogamp.opengl.windows.wgl.WindowsOnscreenWGLDrawable,
	Realized true,
	Factory   jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory@723d7c,
	handle    0x14010a58,
	Drawable size 624x442,
	AWT pos 8/30, size 624x442,
	visible true,
	AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type AWT[subType null], connection \Display0, unitID 0, awtDevice D3DGraphicsDevice[screen=0], handle 0x0], idx 0],
	chosen    GLCaps[7 arb: on-scr, rgba 8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/0/0, dbl, mono  , hw, GLProfile[GL3/GL3]],
	requested GLCaps[on-scr, rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL3/GL3]],
	sun.awt.Win32GraphicsConfig@1729854[dev=D3DGraphicsDevice[screen=0],pixfmt=7],
	encapsulated WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type Windows, connection decon, unitID 0, handle 0x0], idx 0], pfdID 7, ARB-Choosen true,
	requested GLCaps[on-scr, rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL3/GL3]],
	chosen    GLCaps[7 arb: on-scr, rgba 8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/0/0, dbl, mono  , hw, GLProfile[GL3/GL3]]]]]
Chosen GLCapabilities: GLCaps[7 arb: on-scr, rgba 8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/0/0, dbl, mono  , hw, GLProfile[GL3/GL3]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce 9600 GT/PCI/SSE2
GL_VERSION: 3.3.0
GLSL_VERSION: 3.30 NVIDIA via Cg compiler

And then there is one more line, which is just displaying an empty box, probably a non recognised character.
Reply | Threaded
Open this post in threaded view
|

Re: Problems with own GL3 Basecode

gouessej
Administrator
Hi!

In my humble opinion, you should modify your program to get the supported GLSL version and then use GLSL shaders written in this version. As far as I know, you use some modifiers only supported in GLSL 1.4, am I wrong? I'm not a specialist of shaders. Sven or someone else should give a look at your code too.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Problems with own GL3 Basecode

iuiz
Thx, I overlooked the whole code but could not finde the error. So I tried some other projects and got them working. I will try to turn it into a simple example for an OpenGL 3 basecode, so that I can post it (maybee it helps someone else). However this will datke a while, because I have to remove some non free code :(.