Giter Club home page Giter Club logo

bmp2cgb's Introduction

Notice

Starting October 12th, 2023 GitHub is enforcing mandatory two-factor authentication on my account.
I'm not going to comply and move all my activity to GitLab instead.
Any future updates / releases will be available at: https://gitlab.com/gitendo/bmp2cgb
Thanks and see you there!


bmp2cgb v1.21 standard dependencies status

Complete solution for converting graphics and real time palette adjustments for Game Boy Color. Heavily inspired by original utility created by Ars of Fatality in 1999. It's tiny, fast, command line driven and doesn't require any dependencies, so you can compile it without any problems on Windows or *nix systems.

Options :

-c    disable character optimization
-x    disable horizontal flip optimization
-y    disable vertical flip optimization
-z    disable horizontal & vertical flip optimization
-o    disable palette optimization

-e#   expand map width to 32 blocks using character (0-255)
-m#   map padding - starting character (1-511)
-p#   palette padding - starting slot (1-7)
-r    rebase character map to $8800-$97FF ($8000-$8FFF is default)

-d    extended debug information without data output
-s#   sprites output (transparent color RGB hex value ie. 4682b4)
-t    RGBTuner ROM image output

You can read the manual if you need more detailed explanation or don't know how to use it.

Limitations :

Currently only BITMAPINFOHEADER is supported. This one is most common and widely used so it shouldn't really matter. However if you end up with Unsupported bitmap type, BITMAPINFOHEADER not found! you might want to check settings of your graphics software ie. for Gimp you need to enable Do not write color space information in Compatibility Options while exporting image to BMP.

Recent changes :

  • fixed bug related to trimmed palettes in 4bpp/8bpp bitmaps

To do :

  • add support for BITMAPV4HEADER and BITMAPV5HEADER
  • get rid of all level 2 warnings

Bugs :

Hopefully none. Let me know if you find any.

bmp2cgb's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bmp2cgb's Issues

simple gbc rom as output

Is it possible to add an option for gbc rom as output similar to RGBTuner but without the GUI or add a button combination to RGBTuner to hide the GUI?

BMP signature missing?

I've compiled the software on Linux and prepared an image I wanted to try displaying on my Gameboy Color. I scaled and cropped it to 160x144 and saved it as a 32 bit bitmap, but bmp2cgb keeps spitting out the following.

Error: BMP signature missing!

I tried looking through the code even though I'm not exactly a programmer, and I figured that the Microsoft Bitmap exported from GIMP is invalid somehow. I tried doing several things such as dithering it beforehand and saving it as a 256 color bitmap, and even resaving it in MS Paint on a virtual machine with Windows on it, but it keeps spitting out the same message.

Is there maybe something missing in the manual file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.