| |
CreaMD
Registered: Dec 2001 Posts: 3075 |
Converting GFX question
Asking for friend. Quote follows:
---
Morning! Does anyone of you please know a Window C64 converter that would not do any processing and just save data in C64 format?
What's my problem: I prepared a 4-color (so that I can convert to multicolor sprites) picture in Gimp and then ran it through a converter, which decided to just add a 5th color. 🤦♂️
---
Thank you for quick help everybody. |
|
| |
Mr. SID
Registered: Jan 2003 Posts: 425 |
Typical answer:
Is the friend a coder? Then tell him to write a 10-line python script to convert the image to sprite data.
If he's just an artist, then he should let the coder that makes the game/demo write a script/tool. |
| |
Oswald
Registered: Apr 2002 Posts: 5118 |
change palette of src picture to the same the converter expects. |
| |
Youth
Registered: Aug 2003 Posts: 43 |
I made a command line converter with this usecase in mind:
https://github.com/micheldebree/retropixels/blob/master/cli/REA..
Quote:
Pixel perfect input
If you want to convert pixels one-on-one (for sheets of sprites for example), make sure to:
use the --palette option and make sure the input colors map correctly on the palette
use --scale none
use --ditherMode none
This should apply to other converters aswell. So like Oswald said, make sure the palette maps correctly and also make sure there is as little other processing going on (scaling, dithering etc.) as possible. |
| |
Wotnau
Registered: Jan 2002 Posts: 7 |
Hi, that friend is me. To give you some context:
Use case: What I did was prepare a pic in Gimp, 320x200 in 4-color palette, all "pixels" 2 "dots" wide, perfectly ready for one-to-one conversion to 4-color multicolor. Then I sent it through a converter that decided to add a 5th color, probably for a better taste or something. I don't care if the converter gets the colors wrong (e.g. turning a light grey into yellow), but all pixels of color X on the PC must be turned into pixels of color Y on the C=64.
User: I'm fluent in C=64 speak, a C=64 assembly coder, hopeless at graphics. I have no knowledge whatsoever of PC programming, am a Windows user that needs a GUI. Last time I used command line input was probably with ARJ in the '90s (and most times I got it wrong). Whenever I read stuff like, "Everyone can easily compile their own core", I'm lost.
It seemed to me that the tool Youth had described fit my case. I saw the documentation, I can appreciate how detailed it is, and I still have no idea how to use it.
I'm just convinced that there must be a simple converter that, if it sees that the pixel widths are alright and there are no color clashes, will turn a 320x200 4-color picture into a 320x200 4-color C=64 picture without imposing its own intelligence on me or the source data. :) |
| |
Youth
Registered: Aug 2003 Posts: 43 |
@Wotnau There is a GUI version here: https://www.micheldebree.nl/retropixels
Set it to crop the picture, which should disable scaling and set dithering to zero. See how that works out. |
| |
Wotnau
Registered: Jan 2002 Posts: 7 |
@Youth Thanks a lot for the tip. Gonna try it in the evening when I'm back home, but I'm hopeful. :) |
| |
Wotnau
Registered: Jan 2002 Posts: 7 |
@Youth: It works like a charm, doing exactly what I need. I'm very much obliged to you! How exactly do you want to be special-thanked in our demo? :) |
| |
Youth
Registered: Aug 2003 Posts: 43 |
Great! Do whatever you like. Something along the lines of me being the most awesome dude in the world, and me proving that it is indeed possible to be smart, kind, talented and incredibly sexy at the same time, will be fine.
;) |
| |
Burglar
Registered: Dec 2004 Posts: 1129 |
is it too late to plug png2prg 1.2?
it has auto palette detection :)
jeugd 1 - burg 0 ;) |
| |
chatGPZ
Registered: Dec 2001 Posts: 11499 |
I am confused as to why noone mentioned Gimp cbmplugs 1.2.2 - install that in gimp, and save directly as koala |
... 31 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 | 3 | 4 | 5 - Next |