Search found 11 matches

by Domarius
Fri Jul 20, 2018 9:47 pm
Forum: Support and Development
Topic: Indexed 16 colour palette simulation?
Replies: 24
Views: 22425

Re: Indexed 16 colour palette simulation?

I'll try to alter the idea to keep 99% of colours unchanged. The palettes sets should be present at the same spritesheet. Yeah he did an awesome job. It's customised to my specific requirement of having a fixed palette. I understand that other people will want greater flexibility with the palette b...
by Domarius
Mon Jul 16, 2018 8:52 am
Forum: Support and Development
Topic: Indexed 16 colour palette simulation?
Replies: 24
Views: 22425

Re: Indexed 16 colour palette simulation?

Hey pgimeno! Late to the party but probably missing the point. I think you might be. The point of this was not to change the colour of squares per se, but change colours of bitmaps at the pixel level, on the fly. If you download my example earlier in the thread, you'll see what I mean. It has to wo...
by Domarius
Wed Jul 11, 2018 10:03 am
Forum: Support and Development
Topic: Indexed 16 colour palette simulation?
Replies: 24
Views: 22425

Re: Indexed 16 colour palette simulation?

By using 16 intensities, you could just make the images in greyscale, which would probably be the simplest, and the translation to colour index is more intuitive and easier to work with in a drawing program (assuming there's no gamma or colour management interfering). Ahh, you have opened my eyes! ...
by Domarius
Wed Jul 11, 2018 2:26 am
Forum: Support and Development
Topic: Indexed 16 colour palette simulation?
Replies: 24
Views: 22425

Re: Indexed 16 colour palette simulation?

i could do palette animations fast, i could just save the frames in advance... however it depends what you need of course Yes absolutely! I totally understand. I recommend against this approach. Long ago, I was told that shaders don't like conditional jumps (which if's and for's compile to). Heheh,...
by Domarius
Sun Jul 08, 2018 10:42 am
Forum: Support and Development
Topic: Indexed 16 colour palette simulation?
Replies: 24
Views: 22425

Re: Indexed 16 colour palette simulation?

We have color swaps in our game, and I think that's pretty much the same idea. We use shaders for that. Our color swap definitions are here: https://github.com/thomasgoldstein/zabuyaki/blob/master/src/def/misc/shaders.lua Dude, I have to thank you. I got what I wanted in the end, with this video tu...
by Domarius
Sat Jul 07, 2018 11:55 am
Forum: Support and Development
Topic: Indexed 16 colour palette simulation?
Replies: 24
Views: 22425

Re: Indexed 16 colour palette simulation?

Stifu wrote: Thu Jul 05, 2018 9:52 am Why not? If it's fast enough...
True, I shouldn't say "couldn't", I would have to test on the target hardware :)

Though of course it's not nearly as efficient as true palette swapping :D
by Domarius
Thu Jul 05, 2018 9:27 am
Forum: Support and Development
Topic: Indexed 16 colour palette simulation?
Replies: 24
Views: 22425

Re: Indexed 16 colour palette simulation?

i'd be tempted not to use shaders for that but to edit the pixels of the images when i load, something i plan to do... my two cents i recon i imagine why you'd rather use shaders though, best wishes with your code Definitely open to other approaches. Not that I've tried the shaders yet but it looks...
by Domarius
Tue Jul 03, 2018 2:01 am
Forum: Support and Development
Topic: Indexed 16 colour palette simulation?
Replies: 24
Views: 22425

Re: Indexed 16 colour palette simulation?

Compile it from sources. Configure with --disable-shared --enable-static to generate a static executable so the LÖVE library is integrated into it and you don't have problems with library paths (but don't distribute that version without reading the LGPL 2.1 carefully first). I have all versions of ...
by Domarius
Mon Jul 02, 2018 5:53 am
Forum: Support and Development
Topic: Indexed 16 colour palette simulation?
Replies: 24
Views: 22425

Re: Indexed 16 colour palette simulation?

Hey, I've seen your Zabuyaki blog in my searches! Yes swapping colours is essentially what's happening. If I can do that I can probably come up with a way to simulate a global palette. Hmm... I don't suppose you know how to run an older version of Love2D on Linux? When I try to run your game I get a...
by Domarius
Sun Jul 01, 2018 11:20 am
Forum: Support and Development
Topic: Indexed 16 colour palette simulation?
Replies: 24
Views: 22425

Indexed 16 colour palette simulation?

I would like to replicate Pico 8's 16 colour limitation, to the point where I could edit a colour index and have that affect something on screen, to create palette cycling effects. I don't mind how this limitation is applied - it could affect the whole screen, it could affect individual images, or i...