Page 1 of 1

OpenGL Demo Error

Posted: 09 Jan 2016, 15:26
by gdtiti01
Hi!
Sorry before login wrong account。
I am get the code from https://github.com/Noesis/Tutorials/tre ... ntegration, then I integrated NoesisGUI-SDK-win-1.2.5f9 in the Vs2013. I have installed the GULT and NoesisGUI。Compilation of normal,But when I run, error is produced. Gui.XamlPlayer work good
Please help me to solve this problem
thanks
glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC)wglGetProcAddress("glBindFramebuffer");
glUseProgram = (PFNGLUSEPROGRAMPROC)wglGetProcAddress("glUseProgram");
glBindFramebuffer and glUseProgram always null

Re: OpenGL Demo Error

Posted: 09 Jan 2016, 16:08
by jsantos
Could you add the following code and tell me the value of the following strings (just after glutCreateWindow() invocation):
const char* vendor = glGetString(GL_VENDOR);
const char* renderer= glGetString(GL_RENDERER);
const char* version = glGetString(GL_GL_VERSION);

Re: OpenGL Demo Error

Posted: 09 Jan 2016, 16:11
by jsantos
Could you also test if XamlPlayer works correctly in OpenGL?

To activate the GL renderer, please edit the file (Gui.XamlPlayer.ini):
[Render.RenderSystem]
Render = "GL"

Re: OpenGL Demo Error

Posted: 09 Jan 2016, 16:40
by gdtiti01
vendor:Microsoft Corporation
renderer : GDI Generic
version : 1.1.0
[Render.RenderSystem]
;CenterPixelOffset = 0.5
;CheckATI1N = false
;CheckATI2N = false
;CheckAlphaToCoverage = false
;CheckFetch4 = false
;CheckHWPCF = false
;ForceReferenceRasterizer = false
;MinPixelShaderVersion = 3
;MinVertexShaderVersion = 3
;PerfHUDEnabled = false
;Render = ""
;WaitRetrace = true


Re: OpenGL Demo Error

Posted: 09 Jan 2016, 16:43
by gdtiti01
Render = "GL"
Gui.XamlPlayer work good

Re: OpenGL Demo Error

Posted: 09 Jan 2016, 17:00
by jsantos
vendor:Microsoft Corporation
renderer : GDI Generic
version : 1.1.0
The GL context is not being created properly, we need at least GL2. It seems that GLUT is creating a non-hw accelerated context. I can't give you more information because the code that creates the context is in GLUT. By the way, why did you have to install GLUT? We provide the binary in our sample.

Re: OpenGL Demo Error

Posted: 09 Jan 2016, 17:05
by gdtiti01
Thank you, maybe I know where is wrong

Re: OpenGL Demo Error

Posted: 09 Jan 2016, 17:28
by gdtiti01
I shouldn't in Mac systems running Windows vm, directly using the Windows system operation is normal
Thank you very much

Re: OpenGL Demo Error

Posted: 09 Jan 2016, 18:05
by jsantos
Fine! Anyway we should report a better error. We will add a check in the next version.