Jump to content



Photo
- - - - -

The Ucasio Bmper


  • Please log in to reply
7 replies to this topic

#1 E_net4

E_net4

    Casio Freak

  • Members
  • PipPipPipPip
  • 189 posts
  • Gender:Male
  • Location:Output("Error: Coord type not specified");
  • Interests:Programming 'n' stuff...

  • Calculators:
    CASIO fx 9860G SD

Posted 17 June 2009 - 10:27 AM

Before you get too eager, I must say this is not done yet. The C code and header files that make this possible are not done, nor with any features.
So, I've been developing a new image format that can be read by the fx-9860G, using any Add-in that makes use of it.
Allow me to insert:

THE THEORY OF CASIO BIT MAP (.cbm)
----------------------------------
This file type will be used for a Casio Bitmap viewer or any other Add-in that supports it. These files include the following parts:

-Configuration:
A small part containing the resolution and other variables of the bitmap.
Here is the syntax:
<variable letter><value>.
Variables consist of a single letter, which are non-case sensitive.
All letters from A to Z can be used as variables. Values are all integers.
While most variables are useless, the following letters represent important variables:
W - image width
H - image height
Also note that each assignment ends with a period.
Examle:
W128.H64.A42.
-Data:
It's mainly a stream of binary representing the bitmap(which is currently black and white).
The digits are converted into separate decimal bytes, which are then written on the file using binary access.
The bitmap must start with @
These procedures are done backwards in your calculator.
Each bit corresponds to black if 1 and white if 0. They are filled from
the top left to the bottom right, line by line.
Extra bits that don't fit the screen are simply ignored.
This means that you can add more text after the end of the data. Just make sure
they won't show up on the picture first.
Example of a blank image file:

W128.H64.@
:greengrin:


tl;dr: .cbm files store integer values into lettter variables and bytes of the bitmap itself.

The PC viewer, editor and converter is in Alpha state, which means you can use it, but it doesn't include all the features.
Link here: http://www.esnips.co...he-uCasio-BMPer
Pic here: Posted Image

As I said before, I still have to get the CasioC stuff done. Meanwhile, enjoy using the PC software. And I might upload everything to the website, of course.

#2 Distortion

Distortion

    Newbie

  • Members
  • Pip
  • 23 posts

  • Calculators:
    fx-9860G

Posted 17 June 2009 - 02:03 PM

Pretty cool, although I have seen Add-ins that can just read .bmp files. So can you explain what the advantage of this is?

#3 E_net4

E_net4

    Casio Freak

  • Members
  • PipPipPipPip
  • 189 posts
  • Gender:Male
  • Location:Output(&quot;Error: Coord type not specified&quot;);
  • Interests:Programming 'n' stuff...

  • Calculators:
    CASIO fx 9860G SD

Posted 17 June 2009 - 02:09 PM

Pretty cool, although I have seen Add-ins that can just read .bmp files. So can you explain what the advantage of this is?

This file format is more adequate for being read by Casio calculators, plus it can hold variables that can be used by that software, like sprite/creature/character attributes (health, speed, etc.).
In addition, I haven't seen any add-in that reads .bmp files so far. Even if they exist, one can not be sure if it approaches the resolution and colour depth of the calculator.

#4 kucalc

kucalc

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1422 posts
  • Gender:Male
  • Location:USA
  • Interests:Programming: C/C++, Fortran, LISP, COBOL 85 Standard, PHP, x86 and SH3 Assembly

    Computer graphics

  • Calculators:
    fx-9860G / fx-7400G Plus / Algebra FX 2.0+ / fx-9770G / CFX-9850G / CFX-9850GB+ / TI-89 / TI-nSpire

Posted 18 June 2009 - 01:57 AM

This seems cool. :) From what I understand this is not just some ordinary image format, it contains metadata which can used by some app.

#5 alias4399

alias4399

    Casio Freak

  • Members
  • PipPipPipPip
  • 180 posts
  • Location:Impossible to say.. Its not like this is a constant!

  • Calculators:
    CFX 9850GB Plus
    FX 9860G

Posted 18 June 2009 - 04:07 AM

Wow.. this is amazing. Please keep the community posted, E_net4 ;) I wanna see this when its done

#6 Distortion

Distortion

    Newbie

  • Members
  • Pip
  • 23 posts

  • Calculators:
    fx-9860G

Posted 18 June 2009 - 11:36 AM

This file format is more adequate for being read by Casio calculators, plus it can hold variables that can be used by that software, like sprite/creature/character attributes (health, speed, etc.).


Okay, that is nice. I've never heard of an image file that also hold more information. It is more of a sprite file or something.
So would this mean that you can make an rpg with custom characters? You can edit the sprite + variables on your computer and put it back on your calc. Or is the file contained in the Add-in?

I haven't seen any add-in that reads .bmp files so far. Even if they exist, one can not be sure if it approaches the resolution and colour depth of the calculator.


I have an add-in that can recall monochrome .bmp files. As far as I know it does what it has to do.
I don't know what you mean with the colour depth and resolution part... (I'm sorry, I'm not native English)

#7 E_net4

E_net4

    Casio Freak

  • Members
  • PipPipPipPip
  • 189 posts
  • Gender:Male
  • Location:Output(&quot;Error: Coord type not specified&quot;);
  • Interests:Programming 'n' stuff...

  • Calculators:
    CASIO fx 9860G SD

Posted 18 June 2009 - 12:56 PM

Okay, that is nice. I've never heard of an image file that also hold more information. It is more of a sprite file or something.
So would this mean that you can make an rpg with custom characters? You can edit the sprite + variables on your computer and put it back on your calc. Or is the file contained in the Add-in?

The trick for doing those kind of things are to store integers into variables described in a .cbm file. The W and H variable, in fact, are used for width and height of the bitmap.

I have an add-in that can recall monochrome .bmp files. As far as I know it does what it has to do.
I don't know what you mean with the colour depth and resolution part... (I'm sorry, I'm not native English)

Colour depth and resolution are the attributes of a bitmap. They're the number of bits that are used in each pixel and the total number of pixels in width and height, respectively. My point is that this won't be just an image viewer. It will allow other people to use the library for their own add-ins.

#8 E_net4

E_net4

    Casio Freak

  • Members
  • PipPipPipPip
  • 189 posts
  • Gender:Male
  • Location:Output(&quot;Error: Coord type not specified&quot;);
  • Interests:Programming 'n' stuff...

  • Calculators:
    CASIO fx 9860G SD

Posted 24 June 2009 - 12:27 PM

Here is the current status: I started coding the Addin. It should be about 8% done. Not only it should feature loading the files, but also drawing them to the VRAM.
I am also working on the PC editor, so as to allow more than 1024 bitmap bytes, differently sized pictures, zooming in and out, file compression, letting you declare other variables from the editor itself, and perhaps other stuff. The zoom works OK, but I need to fix the image scrolling first.
Well, go ahead and post suggestions and questions. I will reply to them ASAP.

Edited by E_net4, 24 June 2009 - 12:30 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users