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 Pixeling > Seeking help on converting
2020-03-10 18:28
Stoker
Account closed

Registered: Jul 2019
Posts: 5
Seeking help on converting

I have created mono pixel work on photoshop that I want to load as PRG file. The data will be used for sprites that only require a 16 pixel height.
If I use Spritead or CharPad the graphics get chopped up and require more work in program to sort order of pixels out.
Is there a way / program that can just convert Bitmap into simple data?
(hope I've explained this well enough)
Thanks in advance
2020-03-11 02:29
ws

Registered: Apr 2012
Posts: 225
Not 100% sure what you are trying to achieve, but in case you're working with Windows, CBMprgStudio can import bitmaps to sprites http://ajordison.co.uk/download.html
2020-03-11 07:21
The Phantom

Registered: Jan 2004
Posts: 360
I've converted a lot of my paper artwork to bitmaps using project one, but not sure if it supports sprites. I say that because, well, if a program does what I need it to do, I typically don't update it. Chances are, I'm still using the first version (and I still use Vice 2.4 ((yeah, yeah..))

Another program, called Pixcen, might do what you need, but again, I'm unsure.
2020-03-11 08:58
Flotsam

Registered: Jan 2004
Posts: 80
I don't understand what the problem is exactly, but I use this to convert bitmaps to sprites: http://blog.retroleum.co.uk/utils/c64-sprite-converter/

If you end up trying, just remember that you need to save the bitmaps in size that is a multiple of 24 and 21 pixels. Also, needs to be an 8-bit bitmap (Photoshop => Image => Mode => Indexed color => 256)
2020-03-11 10:30
Stoker
Account closed

Registered: Jul 2019
Posts: 5
Thank you for your replies, I think I have confused the issue by saying what I'm doing with the data when in program...

Basically I need to convert an image, byte for byte as it appears into a format that can be save as a c64 PRG file

I can't use any sprite or char software as they rearrange data (charpad will cut it into 8x8 jigsaw pieces, and spritepad will add extra byte after 63 to make the 64pixel format)

I've tried Pixcen, but can't seem to save in recognisable formt for c64

Thanks again in advance for trying to work out this unusual request
2020-03-11 12:09
Isildur

Registered: Sep 2006
Posts: 274
SpritePad is perfect for this easy task.
Correctly cropped bitmap is the key.
Make sure your bitmap size is multiplication of 24x21.
Set background to black and pixels to white and import .bmp spritesheet to SpritePad. That's all.

Edit: bitmap must be 1 color only, so if it's not then use "Threshold" adjustment layer in Photoshop to make it 1 color.
2020-03-11 12:24
Stoker
Account closed

Registered: Jul 2019
Posts: 5
Thank you Isildur, but what spritepad does, I'm trying to avoid.
Spritepad wants to take data and make sprites out of it, so after every 63rd byte an extra is added to make the sprites fit nice and orderly into 64 byte blocks.

What I'm after is a byte for byte copy of what I have, converted into a file that I can add to my DIR as a PRG file

The code in my game will pick parts of that data to paste into 24x21 sprite size, but each part is only 16 pixels tall, so I have opportunity to compact code. If saved through spritepad i have that extra 64th byte dotted around at random places (as far as 24x16 sections are concerned)

It's a tricky one I know, and thanks for everyone trying to find a solution
2020-03-11 14:32
cadaver

Registered: Feb 2002
Posts: 1153
I recommend grabbing your language and image loading libraries of choice and writing a custom utility. In a complex project it won't be the last one. Plus if you make it a commandline utility with no user interaction needed, it's easy to make a part of your automated build (makefiles or such)
2020-03-11 14:49
MagerValp

Registered: Dec 2001
Posts: 1055
So basically what you're asking for is a 1 bpp uncompressed linear raw format converter, like what you'd use for Amiga graphics.

But I'd convert it to sprites with gaps and all and just let the cruncher deal with it. The custom code you'll write to unpack the sprites will probably be larger than what the cruncher spends on 16 byte padding.
2020-03-11 15:24
TheRyk

Registered: Mar 2009
Posts: 2047
Quote:

I've tried Pixcen, but can't seem to save in recognisable formt for c64

With PixCen you can export in .kla and various other C64 graphics formats, if all you need is a an executable .prg displaying your stuff on a C64, that's a different story and hasn't got to do with conversion a lot.
2020-03-11 15:33
Frost

Registered: Jun 2009
Posts: 7
As far as i know, you can save as an executable .prg with PixCen. I've made executables of both multicolor and hires pictures for compos with it.
 
... 4 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - 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
Andy/AEG
Jammer
St0rmfr0nt/Quantum
Sentinel/Excess/TREX
apprentix
Guests online: 180
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 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.9)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (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 Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.8)
4 Acidchild  (9.7)
5 Starlight  (9.6)

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