Home | Forums | What's new | Resources | |
Exporting Sprites -> *.c |
slinga - Oct 29, 2005 |
mrkotfw | Oct 29, 2005 | |||||||
read the vdp2 documentation. it depend on the bpp and a few other things. i'd do something like:
Code:
here is what i used to create 4bpp sprites:
Code:
|
slinga | Oct 30, 2005 | |||
Can I see your entire file for the 4bpp? Are you simply reading an entire 4bpp bmp file into buf? |
RockinB | Oct 31, 2005 | |||||||
The format for sprites/textures used when exporting with 3DEditor is 15 bit RGB. From SL_DEF.H:
Code:
BGCON can be used for exporting sprites as .C, too. Use DOSBox to emulate. Some Saturn GFX conversion utilities come with source code, like SSCONV.
|
mrkotfw | Nov 2, 2005 | |||
yes, i'm copying everything into the "buf" variable. the height and width variables is pretty self explanatory. by the way Rockin'-B, why would you convert a 4-bit image to a 15-bit sprite? makes no sense what so ever. that's a complete waste of resources if you ask me. |
RockinB | Nov 2, 2005 | ||||
Initially, Slinga was not talking about 4-bit images. |
slinga | Nov 2, 2005 | |||
I'm just looking for the easiest way to convert sprites for use on the Saturn. I enjoy coding, I hate working with sprites. I'll try both methods above, don't seem too bad. |
mrkotfw | Nov 4, 2005 | ||||
you're right. but regardless of what slinga said, that is still a waste! |