Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » OpenGL example does not work
OpenGL example does not work [message #50009] Sat, 16 June 2018 19:13 Go to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
In the latest Upp version (11996, Windows), it seems that OpenGL example does not work anymore (and hence any OpenGL based application). Please, could anyone fix it?

Thanks,

Javier
Re: OpenGL example does not work [message #50013 is a reply to message #50009] Sun, 17 June 2018 22:11 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Yes, It happens with MINGW and MSC.
No log running it in command line. After a first review nothing seems wrong...
Which version of Linux are you using?


Best regards
Iñaki
Re: OpenGL example does not work [message #50017 is a reply to message #50013] Mon, 18 June 2018 11:18 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Just tested with Windows 7 and it works perfectly.
In summary, the problem seems related with Windows 10.


Best regards
Iñaki
Re: OpenGL example does not work [message #50030 is a reply to message #50017] Sat, 23 June 2018 22:10 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
Ok. I wish someone fixe it. I work on Windows 10.

Thanks,

Javier

Re: OpenGL example does not work [message #50031 is a reply to message #50030] Sun, 24 June 2018 15:28 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Me too. I have updated drivers just in case but the problem remains. Embarassed

Best regards
Iñaki
Re: OpenGL example does not work [message #50032 is a reply to message #50031] Sun, 24 June 2018 16:10 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
I have just tried two demos, one 2D and 3D, and worked well.

Best regards
Iñaki
Re: OpenGL example does not work [message #50033 is a reply to message #50032] Sun, 24 June 2018 19:16 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Koldo,

Can you test on stable U++ version? I believe some last changes might broke OpenGL.

Sincerely,
Klugier


U++ - one framework to rule them all.
Re: OpenGL example does not work [message #50034 is a reply to message #50033] Mon, 25 June 2018 09:47 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Hello Klugier

Good point.
Unfortunately I have just tried stable U++ with MSC17 and MinGW, 32 and 64 bits, and the problem remains.
I am confused. I have reviewed changes in DHCtrl and GLCtrl but i have not found anything relevant. Embarassed

Just to clarify, the two tests I did that worked where programmed directly in OpenGL.


Best regards
Iñaki
Re: OpenGL example does not work [message #50035 is a reply to message #50034] Mon, 25 June 2018 13:30 Go to previous messageGo to next message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi Koldo,

Just wanted to let you know that I recently had some trouble with OpenGL / GLCtrl, until I found and disabled some 'USE-GL-SHADER' macro. My graphics hardware was not up to that, so it was not working when enabled.

I'm sorry I can't confirm the exact real name or location of the #define in U++ code base. (I'm not at the office right now and cannot check.) Hope this helps anyway.

Best regards,

Tom

Update: Maybe it was in GLDraw...

[Updated on: Mon, 25 June 2018 14:17]

Report message to a moderator

Re: OpenGL example does not work [message #50037 is a reply to message #50035] Mon, 25 June 2018 17:51 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Tom1 wrote on Mon, 25 June 2018 13:30
Hi Koldo,

Just wanted to let you know that I recently had some trouble with OpenGL / GLCtrl, until I found and disabled some 'USE-GL-SHADER' macro. My graphics hardware was not up to that, so it was not working when enabled.


That is extremely unlikely. Our shader stuff is supported by anything younger than 12 years...

Mirek
icon7.gif  Re: OpenGL example does not work [message #50038 is a reply to message #50037] Mon, 25 June 2018 21:22 Go to previous messageGo to next message
pepe1970 is currently offline  pepe1970
Messages: 1
Registered: June 2018
Location: Italy
Junior Member
Hello,
i'm new in this forum, and i'm not a guru of c++, but i like this work and i'm following it from 2006.
it is really a great job, i'm using it for small programs and to learn c++.
Any way i was working with opengl for my hobbies, and with upp version 11540 all was working very well, but i decide to migrate to version 11873 and it stopped working.
I tried some debug, and i discovered that "virtual void GLPaint()" is out of system message queue. hope this can help to solve the issue.
thanks a lot for your work.
Ciao. Smile
Re: OpenGL example does not work [message #50039 is a reply to message #50038] Tue, 26 June 2018 08:52 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Thank you Pepe

It is true. Nobody is calling GLPaint() and also nobody is calling GLCtrl::GLPane::WindowProc().
Is the problem in DHCtrl()?


Best regards
Iñaki
Re: OpenGL example does not work [message #50040 is a reply to message #50039] Tue, 26 June 2018 10:45 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Tue, 26 June 2018 08:52
Thank you Pepe

It is true. Nobody is calling GLPaint() and also nobody is calling GLCtrl::GLPane::WindowProc().
Is the problem in DHCtrl()?


BTW, I am actually starting to think that using DHCtrl is a mistake for GLCtrl.

AFAIK, it is possible to render opengl to bitmap handle, so it is possible to create GLCtrl that is not based on DHCtrl.
Re: OpenGL example does not work [message #50041 is a reply to message #50009] Tue, 26 June 2018 11:54 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Should be now fixed.
Re: OpenGL example does not work [message #50042 is a reply to message #50041] Tue, 26 June 2018 12:18 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

Mirek, do you remember our implementation of GLCtrl that uses bitmap on GTK? It is slow and it doesn't work great and it doesn't support several important features like double buffering etc. I am not sure it is the good way for implementing OpenGL. Please think about better alternative...

Sincerely,
Klugier


U++ - one framework to rule them all.
Re: OpenGL example does not work [message #50043 is a reply to message #50041] Tue, 26 June 2018 14:03 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Excellent. Thank you Mirek.

Best regards
Iñaki
Re: OpenGL example does not work [message #50056 is a reply to message #50009] Sat, 30 June 2018 16:10 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Hello Javier

Does the problem is solved?


Best regards
Iñaki
Re: OpenGL example does not work [message #50106 is a reply to message #50056] Sat, 28 July 2018 17:55 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
Problem fixed. Many thanks.
Re: OpenGL example does not work [message #50110 is a reply to message #50106] Sun, 29 July 2018 17:48 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
I think that Glew plug-in is a bit outdated. Is it right?. Perhaps an update would be fine.

Cheers,

Javier
Re: OpenGL example does not work [message #50112 is a reply to message #50110] Sun, 29 July 2018 22:56 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Javier,

I think you could help us a little Smile You can prepare updated plugin/glew package and post it here as a zip package. After that I or Mirek will push it to the trunk.

Sincerely,
Klugier


U++ - one framework to rule them all.
Previous Topic: no bionic version (linux)
Next Topic: Cross compile on linux for windows
Goto Forum:
  


Current Time: Thu Mar 28 12:14:36 CET 2024

Total time taken to generate the page: 0.01400 seconds