canvas not filling frame

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

canvas not filling frame

stevemaddock
When using the latest builds for JOGL on Windows 64 (jogl-b1483-1483), I can get a Java 13/JOGL program to compile and run (with some warnings about illegal reflective access). However, the canvas does not fill the frame - it fills the bottom left area of the frame. For the same program, it used to fill the frame under Java 8/JOGL2.3.2.
Any suggestions?
I can post the program to draw a single '2D' triangle if that helps.


Reply | Threaded
Open this post in threaded view
|

Re: canvas not filling frame

Sven Gothel
Administrator
On 10/8/19 3:43 PM, Steve Maddock [via jogamp] wrote:
> When using the latest builds for JOGL on Windows 64 (jogl-b1483-1483), I can
> get a Java 13/JOGL program to compile and run (with some warnings about
> illegal reflective access). However, the canvas does not fill the frame - it
> fills the bottom left area of the frame. For the same program, it used to fill
> the frame under Java 8/JOGL2.3.2.
> Any suggestions?
> I can post the program to draw a single '2D' triangle if that helps.

it would help if you could just test with one of the many
unit tests, like com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestGearsES2NEWT

However, either you wait for the pre-release build
or you build the java11 branch, older versions won't help.

~Sven
Reply | Threaded
Open this post in threaded view
|

Re: canvas not filling frame

farrellf
In reply to this post by stevemaddock
I have this same problem. I think it's related to DPI scaling in windows. With scaling set to 200%, my GLCanvas is a quarter the size it should be, and positioned in the bottom-left corner. I have not had time to try compiling the Java11 branch to see if that fixed this problem.

Even if this problem is fixed in JOGL, I wonder if we will still have problems with mouse coordinates in Java 11. The reported values get affected by DPI scaling as well, and I see no way to disable that for a specific JPanel/GLCanvas without disabling DPI-scaling for the entire program.

-Farrell
Reply | Threaded
Open this post in threaded view
|

Re: canvas not filling frame

gouessej
Administrator
In reply to this post by stevemaddock
By the way, could this problem be related to HiDPI too?
https://jogamp.org/bugzilla/show_bug.cgi?id=1395
Julien Gouesse | Personal blog | Website