grafx2 is back to life!

category: gfx [glöplog]
I deluxe paint you can set up a range of colors and the speed the colors in the range will cycle in and you can turn cycling on and off with a hotkey (tab if i don't remember it wrong).
As yrizoud said, color cycling can be pretty useful. Not only for games but for many kinds of animations and cheap demo effects. :)
added on the 2009-04-26 20:04:55 by Frost Frost
Ok I see. This can be done easily but will need to add things to the palette screen... which is already pretty overloaded with stuff. I would put it with the others "animation feature", so it'll have to wait for the 2.1 series :)
Put it in the gradient menu instead, There's where they put it in DPaint. :)
added on the 2009-04-26 22:17:19 by Frost Frost
Well, that would not be very logical because we would be cycling the palette entries, not the on-screen data. So basically you define various RGB values for a single color, and the program cycles through them.
I see two problems :
-No way to sync to the VBL like on amiga, so you'll have to keep the speed low to avoid tearing
-We can't display all the colors you chosen for a palette entry at once. So the screen allowing you to select them will be a little messy :)
But some advantages :
-It's fast to do (both in CPU and programmer time)
-You get as many colors as you want in each cycle
Well, the logic in putting the cycle menu with the gradient editor is that you should be abel to set up gradients for the colors that you want to cycle.
added on the 2009-04-27 00:52:43 by Frost Frost
It can be considered a FX, so it can have its own on/off icon in FX screen, and a dedicated setting screen when you right-click it.
Cycling involves no extra RGB settings, the palette entries are shifted from one color to the next, the last one loops back to the first.
The necessary data is
- an ordered sequence of palette indices, with no duplicates.
- an order (forward or backward),
- a speed setting.

Technically the change in palette will require a full SDL_Update of the screen (performance), and the need to do something at fixed frequency (breaking our input polling loop, saving less cpu).
added on the 2009-04-27 02:07:57 by yrizoud yrizoud
You don't need an SDL_Update if you change the SDL_PHYSPAL on a device handling true 256 color mode. So it really depends on the platform. I think the gp2x will handle that perfectly fine for example, and windows in fulscreen mode should go well too. Not sure about the others...
First I'm sorry if this is covered in a FAQ or earlier message.

I'd like to request a couple of features in the palette editor:

1. Sort palette only by intensity instead of colour-type-intensity, this is useful for "alpha"-overlay palettes
2. Only sort the part of the palette that is marked, right now it always sort the entire palette

I think Grafx2 is really good and thanks for the hard work, extra thanks for doing it open source so it can be used on Macintosh as well.
added on the 2009-04-29 18:18:24 by evil evil
The OSX version isn't working for you ?
added on the 2009-04-29 19:04:29 by hitchhikr hitchhikr
hitchhhikr: yes it works a treat
added on the 2009-04-29 20:27:23 by evil evil
evil: http://code.google.com/p/grafx2/issues/detail?id=121 is for number 2
About number 1, the sorting code is really a big mess and i will probably clean it up. Doing that kind of simple sort should not be a problem. I'll think about it :)
It would be reached by right clicking the sort button.
Pulko: Cool, I'm looking forward to the improved sorting :-)
added on the 2009-04-30 08:58:20 by evil evil
this is great! i loved Grafx2 back then.
added on the 2009-04-30 10:15:23 by rudi rudi
I love it now :D
added on the 2009-04-30 13:53:32 by Frost Frost
I will love it in the future.
added on the 2009-04-30 14:22:50 by raina raina
Mac OS X version updated with a couple of bug fixes (for some reasons the commit doesn't appear in the web's updates list view, though).
added on the 2009-04-30 15:36:35 by hitchhikr hitchhikr
Now it does.
added on the 2009-04-30 15:42:59 by hitchhikr hitchhikr
It is now possible to sort only a range in the palette. Now you have to ask Yves for a windows build, or compile it yourself ;)
Amiga 68k version updated ! We are still waiting for MorphOS, Amigaos4 and AROS :(
Pulko: Excellent news, thanks :) Waiting for the sort by intensity then :)

Oh by the way, a couple of more suggestions..

- Perhaps look what is making the app use 50% cpu under OS X, even when it's just idle, a tad annoying when the laptop fans start going

- Either use the native file selector or add bookmarks to the current one. For smaller edits it takes longer time to find the file than to do the actual edit :)

- Some fast-selects for RGB levels (right click on palette) such as 256, 64 (Falcon, PC VGA), 32 (Hicolor), 16 (STe, Amiga), 8 (ST).. yeah well you get the idea. The slider is good for odd levels, but is a bit clumpsy when you want the "usual" modes.

Please take this is as suggestions, not complaits. I love the app!
added on the 2009-05-04 20:14:36 by evil evil
Isn't there already bookmarks in the file requester?
added on the 2009-05-04 20:28:09 by Frost Frost
Yes, bookmarks are already there. Just go to the dir you want, click one of the stars at the top of the window and select "Set" in the drop box. If you don't find them, you're not running beta99 :)

Sorting selected colors under windows: http://code.google.com/p/grafx2/downloads/detail?name=grafx2-svn770-win32.zip
for OsX, ask Hitchhikr :)

About RGB levels, I agree this slider is really painful, i'll see if I can do something. Note you can use right-click on the arrows to scroll faster inside it, however.
Everything fixed :
-Use right click on sort button to sort only by lightness
-Made RGB Scale slider bigger and added x2 and /2 button to get to usual values faster.
good work!
added on the 2009-05-05 02:56:44 by Frost Frost
Pulko: Wow that was quick, unlimited thanks :-)
added on the 2009-05-05 10:20:41 by evil evil