Pages: 1
Author Topic: Issues with colours displaying incorrectly.  (36,159 Views)
Offline (Unknown gender) Sslaxx

Member
Joined: Nov 2013
Posts: 72
View profile
Posted on: February 26, 2014, 04:12:37 PM
Vis: https://dl.dropboxusercontent.com/u/67740160/BlueButItShouldBeRed.jpg

As the filename says - what should be red is in blue. And yes, other projects display this issue (for example, Catch the Clown).

Using Linux, latest LGM and ENIGMA as according to the repos, OpenGL 3.
Offline (Unknown gender) Darkstar2

Member
Joined: Jan 2014
Posts: 1,238
View profile
Reply #1 Posted on: February 26, 2014, 05:43:12 PM
If not mistaken there was some modification lately that requires you to use the latest enigma.jar
You have to download it there:
http://enigma-dev.org/docs/Wiki/Install:Extra_Packages

You will find the latest jars there to download and
save to the respective folders:
lateralgm.jar goes in .\enigma-dev
and
enigma.jar goes in .\enigma-dev\plugins

Perhaps this has to do with:
http://enigma-dev.org/tracker/index.php?id=661


Quote from: Sslaxx on February 26, 2014, 04:12:37 PM
Vis: https://dl.dropboxusercontent.com/u/67740160/BlueButItShouldBeRed.jpg

As the filename says - what should be red is in blue. And yes, other projects display this issue (for example, Catch the Clown).

Using Linux, latest LGM and ENIGMA as according to the repos, OpenGL 3.
Offline (Unknown gender) Sslaxx

Member
Joined: Nov 2013
Posts: 72
View profile
Reply #2 Posted on: February 26, 2014, 05:57:32 PM
Well, yeah. As I said, I am. And it's still doing it.

I also note a lot of discussion on the issue happened on https://github.com/enigma-dev/enigma-dev/commit/bba866d44943321326f400eeaf517881d7f7977b as well.
Offline (Unknown gender) Darkstar2

Member
Joined: Jan 2014
Posts: 1,238
View profile
Reply #3 Posted on: February 26, 2014, 06:12:05 PM
Oh ok, interesting read towards the end there.

Seems when something gets fixed it breaks something else, I guess, that's life for you  :D you will have to wait for this issue to get addressed I guess, hopefully soon.... but good news is here, unlike yoyo, they get things fixed rather quickly.  With Yoyo, when they fuck up something, they "deprecate it"  ;D

Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #4 Posted on: February 26, 2014, 07:08:10 PM
Sslaxx, the reason is because our plugin was originally populating sprites and backgrounds with RGBA, I have switched the latest plugin to BGRA, and since you don't have the ENIGMA changes to match it, that is why you have the messed up colors, but my pull request has not been merged yet. You need the following changes.

https://github.com/enigma-dev/enigma-dev/pull/661
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #5 Posted on: February 26, 2014, 08:50:43 PM
Yeah, sorry. I just tested and merged the pull request. It's just that now I try to at least compile a few examples before merging, because we had some painful incidents in the past.
Offline (Unknown gender) Sslaxx

Member
Joined: Nov 2013
Posts: 72
View profile
Reply #6 Posted on: February 26, 2014, 08:58:46 PM
Testing is a good idea.

And all seems to be working as expected now.
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #7 Posted on: February 26, 2014, 09:04:27 PM
Following pull request fixes PNG saving, though very inefficiently by duplicating the array data like Josh was bitching at me for. Only way to do it with lodepng though. This commit makes the PNG saving better than it was before by also recropping the image to its actual size.
https://github.com/enigma-dev/enigma-dev/pull/662
Pages: 1