Login  Register

[SOLVED] Purple and Green Lines/Stripes on All JOGL Windows

Posted by cokedragon on Dec 24, 2020; 10:52pm
URL: https://forum.jogamp.org/SOLVED-Purple-and-Green-Lines-Stripes-on-All-JOGL-Windows-tp4040923.html



I have a JOGL project that used to work perfectly. I moved to a new PC and now it doesn't. Not even the old builds that were packaged using Launch4J and function perfectly on other people's computers without any other downloadswork on mine anymore.

The issue I'm facing is whenever I attempt to draw any color that is between white and black, my screen shows horizontal green and purple lines. I compiled a very basic project wherein all I did was create a window and then display said window with glClearColor(0.5f,0,0.5f,1) and instead of magenta, I received horizontal green lines. So, no project works.

At first I thought it was my graphics card - I'm using an HP Spectre x360 15.6" (2020) with a 1650 Ti card. I updated the drivers and nothing. It shouldn't be this because games (Destiny 2, Civilization VI) work fine.

I tried updating to 2.4.0-rc as well, as using 2.3.2 was dropping an error in the console about an "illegal reflective access" which I could not find any good solutions to with a Google search (except "downgrade from Java 11," which was useless to me as this was an issue occurring while using Java 8). This warning/error seems to be completely suppressed/bypassed with 2.4.0-rc but I don't know that it's not happening so much as just not appearing. I never saw that issue running it on my older device.

To ensure that I was not going insane, I even went back to my roots with a JOGL tutorial that originally got me using it (https://www.youtube.com/watch?v=hh6wr6oEeOs&list=PL9a_05IxzbrctpcWdVyVaF9AO0vn4WD4J&index=4). I made it about halfway through the video where he sets the color the same as I did. Again black and white appear fine, but any color in between those extremes is just horizontal lines (my game itself looks a mess; all the logic works, you can hazily make out the gameplay and all audio cues and cutscenes but the color is destroyed and even the size of the window seems too small).

Please help!! I would love to provide code but it seems to be any program I run with JOGL - even a fresh one, following isntructions and all - that causes the issue.