Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Converting GFX question
2023-03-09 08:56
CreaMD

Registered: Dec 2001
Posts: 3034
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.
2023-03-09 09:58
Mr. SID

Registered: Jan 2003
Posts: 421
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.
2023-03-09 11:31
Oswald

Registered: Apr 2002
Posts: 5017
change palette of src picture to the same the converter expects.
2023-03-09 12:42
Youth

Registered: Aug 2003
Posts: 40
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.
2023-03-09 13:13
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. :)
2023-03-09 14:12
Youth

Registered: Aug 2003
Posts: 40
@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.
2023-03-09 14:53
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. :)
2023-03-09 18:47
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? :)
2023-03-09 20:35
Youth

Registered: Aug 2003
Posts: 40
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.

;)
2023-03-09 21:08
Burglar

Registered: Dec 2004
Posts: 1031
is it too late to plug png2prg 1.2?
it has auto palette detection :)

jeugd 1 - burg 0 ;)
2023-03-09 21:08
chatGPZ

Registered: Dec 2001
Posts: 11114
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
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Higgie/Kraze/Onslaught
Exploding Fi../Techn..
Mason/Unicess
Guests online: 145
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.46 sec.