GLES: Palette emulation does not work

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: GLES: Palette emulation does not work

Re: GLES: Palette emulation does not work

by mjr4077au » Sat Dec 11, 2021 4:15 pm

Tested from my end this morning and everything looks great! Thanks a bunch for fixing that all, will help make a great 1.3.1 release along with a few other minor fixes :)

Re: GLES: Palette emulation does not work

by emile_b » Sat Dec 11, 2021 8:45 am

Rachael wrote:Looks to be merged so I am going ahead to mark this topic appropriately.
Thanks Rachael. Hopefully finally sorted out now.

Re: GLES: Palette emulation does not work

by Rachael » Sat Dec 11, 2021 7:48 am

Looks to be merged so I am going ahead to mark this topic appropriately.

Re: GLES: Palette emulation does not work

by emile_b » Sat Dec 11, 2021 6:05 am

Thanks for testing all, opened a new pull request.
https://github.com/coelckers/Raze/pull/596

Re: GLES: Palette emulation does not work

by Nash » Fri Dec 10, 2021 5:08 pm

Yup, all is working and looks good now in OpenGLS on my RTX 2080. :D

Re: GLES: Palette emulation does not work

by emile_b » Fri Dec 10, 2021 12:34 pm

This might be fixed here now:
https://github.com/emileb/Raze/tree/pallet_fix_new

Windows binary:
https://drive.google.com/file/d/1ZbzLai ... sp=sharing

Interpolation should be fixed now also. Would be interesting to see if you still have that palette issue in SW above.

Seems to works on my Radeon RX Vega.

Re: GLES: Palette emulation does not work

by emile_b » Sat Dec 04, 2021 6:06 am

Nash wrote:Doesn't crash anymore, so that's good. :)

Tested with Duke, Blood and Shadow Warrior.


Besides that, the "palette emulation interpolation" feature doesn't work, therefore the color banding is visible (on all the 3 games I tested).

Though to be completely honest, I don't think it's a high priority and plus, if someone's machine is so weak that they need to use GLES2, I think some compromises are necessary. :)

Thanks for the test Nash, good to see the crash is fixed. Ah yes I forgot to say the interpolation is not working good spot :)

Yep seems there is an issue with some palette indexes, it has to use the old texture2D method to get the pixel data and I think my maths is slightly off so it's selecting neighbouring pixels or something.

Agreed probably best to just leave it disabled for on GLES for now, I'll look again later.

Re: GLES: Palette emulation does not work

by Nash » Fri Dec 03, 2021 6:08 pm

Doesn't crash anymore, so that's good. :)

Tested with Duke, Blood and Shadow Warrior.

On SW, it kinda looks weird:



Besides that, the "palette emulation interpolation" feature doesn't work, therefore the color banding is visible (on all the 3 games I tested).

Though to be completely honest, I don't think it's a high priority and plus, if someone's machine is so weak that they need to use GLES2, I think some compromises are necessary. :)

Re: GLES: Palette emulation does not work

by emile_b » Fri Dec 03, 2021 12:15 pm

I have made the palette shader GLES2 compatible now so there are a load of changes, hopefully this has also fixed it for PC..

https://github.com/emileb/Raze/commits/pallet_fix_new

Binary:
https://drive.google.com/file/d/1wojfl0 ... sp=sharing

There is actually a bug in it which seems to make some blue pixels too bright on some decals. But would be interesting to see if it does not lock up at least.

Cheers

Re: GLES: Palette emulation does not work

by emile_b » Wed Dec 01, 2021 3:40 am

Thanks guys, I'll do a build with the original Raze pallet shader and upload the pk3

Re: GLES: Palette emulation does not work

by Nash » Tue Nov 30, 2021 8:03 pm

Softlocks for me too, using Emile's compiled EXE from the Google Drive link. It softlocks when I tried loading up the first map in Duke3D with PE enabled in OpenGLES.

Re: GLES: Palette emulation does not work

by mjr4077au » Tue Nov 30, 2021 7:38 pm

Your build 100% softlocks on me, just like my own builds out of MSVC. I'm running a GTX 970 if that helps you any.

Re: GLES: Palette emulation does not work

by emile_b » Tue Nov 30, 2021 12:52 pm

Its probably some change I did the in the shader which works on my GPU and not yours. I'll try and remove anything slightly strange in it.

Re: GLES: Palette emulation does not work

by emile_b » Tue Nov 30, 2021 12:48 pm

Thanks for that, still works for me with that .ini.

This is a copy of the build I am using:
https://drive.google.com/file/d/1B4-KFU ... sp=sharing

It would be interesting to see if this behaves any differently (I understand if you don't want to run it however)

Re: GLES: Palette emulation does not work

by mjr4077au » Tue Nov 30, 2021 3:16 am

Shouldn't be anything detrimental in here, but admittedly I did not try a clean config either.
raze-mjr40.ini
(33.39 KiB) Downloaded 42 times

Top