Wanderer
Topic Author
Posts: 168
Joined: 08 May 2017, 18:36

OpenGL Sample not working

11 May 2017, 19:27

Hello

I am discover Noesis GUI, and want test it on OpenGL. I compile D3D11 sample and it working - I can see two cubes and login menu. OpenGL compile without problem, but window show me blue background and nothing else.

I have Intel graphic HD 3000 on my notebook.
 
User avatar
jsantos
Site Admin
Posts: 4350
Joined: 20 Jan 2012, 17:18
Contact:

Re: OpenGL Sample not working

11 May 2017, 23:23

Could define the following when compiling GLRenderdevice.cpp and try again?
#define NS_ASSERTS_ENABLED 1
#define NS_DEBUG_CFG
 
Wanderer
Topic Author
Posts: 168
Joined: 08 May 2017, 18:36

Re: OpenGL Sample not working

11 May 2017, 23:48

Tried but now program crash on start.
 
User avatar
jsantos
Site Admin
Posts: 4350
Joined: 20 Jan 2012, 17:18
Contact:

Re: OpenGL Sample not working

11 May 2017, 23:58

Is the error handled being invoked?
 
Wanderer
Topic Author
Posts: 168
Joined: 08 May 2017, 18:36

Re: OpenGL Sample not working

12 May 2017, 00:20

I am not sure if I understand, but I get Windows message = Program stop working and I can only click on End Program or Stop Program (I translate it to english).

When local win debug is run, I get this call stacks:
>	SpiningCube.exe!Noesis::Render::GLRenderDevice::CreatePrograms() Line 964	C++
 	SpiningCube.exe!Noesis::Render::GLRenderDevice::GLRenderDevice() Line 176	C++
 	SpiningCube.exe!Noesis_Init() Line 33	C++
 	SpiningCube.exe!main(int argc, char * * argv) Line 183	C++
 
User avatar
jsantos
Site Admin
Posts: 4350
Joined: 20 Jan 2012, 17:18
Contact:

Re: OpenGL Sample not working

12 May 2017, 00:31

The error handler is not being invoked?
void NoesisErrorHandler(const NsChar* filename, NsSize line, const NsChar* desc, NsBool fatal)
{
    printf("\nERROR: %s\n\n", desc);
}
You should have en error in the console.
 
Wanderer
Topic Author
Posts: 168
Joined: 08 May 2017, 18:36

Re: OpenGL Sample not working

12 May 2017, 00:40

No, I forgot mention, it looks like console is frozen (have light gray color instead black and no text is there)
This is everything what I get:
Image
 
User avatar
jsantos
Site Admin
Posts: 4350
Joined: 20 Jan 2012, 17:18
Contact:

Re: OpenGL Sample not working

12 May 2017, 00:56

Could you launch from inside the debugger and paste me here the exact stack where the error is happening?
 
Wanderer
Topic Author
Posts: 168
Joined: 08 May 2017, 18:36

Re: OpenGL Sample not working

12 May 2017, 01:08

How can I find where is error happening?
EDIT:
I guess, exact error is, error with arrow? If yes then:
>	SpiningCube.exe!Noesis::Render::GLRenderDevice::CreatePrograms() Line 964	C++
There is picture from debugger
Image
 
User avatar
jsantos
Site Admin
Posts: 4350
Joined: 20 Jan 2012, 17:18
Contact:

Re: OpenGL Sample not working

12 May 2017, 01:57

What kind of exception are you getting when the debugger halts there?

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests