Jump to content



Photo
- - - - -

Casio SDK Sprite Generator


  • Please log in to reply
12 replies to this topic

#1 SebHoll

SebHoll

    Newbie

  • Members
  • Pip
  • 19 posts
  • Gender:Male

  • Calculators:
    FX-9860G

Posted 17 September 2007 - 07:17 PM

As promised, here is v1.5 of Casio SDK Sprite Generator/Casio C Image Generator (or any other name I have called it by at one point or another) :D .

[attachment=0:c13b6]Casio Image Generator.zip[/attachment]
For those who don't know already, it allows you to convert image files into byte code which you can then use to draw sprites in your add-ins. Please note that at the moment, Casio SDK Sprite Generator will only generate black and white sprites and any colour images will be converted to monochrome before being processed.

Disclaimer: Although this program has been scanned for viruses before being uploaded, you download and run at your own risk. I am not responsible for any data loss or any other problem caused by the direct or indirect use of this program.

Features
  • Currently supports the following file types: BMPs, PNGs, JPGs
  • Automatic cropping of images larger than 128x64 (the resolution of the calculator's LCD panel)
  • Preview window, so that you can see what the sprite will look when drawn by the calculator.
  • Most importantly perhaps, it's freeware! Use it for whatever purpose you want.

Supported Code Templates
  • C Function Code - This produces a self contained C function that you can call to easily draw your image in your add-in. You need to pass the x,y locations of where you want the image, but also a flag specifying where the sprite will be drawn to (i.e. straight to the calculator's screen, just into Video RAM, or both).
  • Array Only Mode - For more experienced programmers, this just generates the array that hold's your sprites bitmap data.

If anyone finds a bug or has any feature requests, please let me know. I will try to improve this program if, and when, I get time,

Post here if you use it in any projects so that I know it was worth making, 8-)


SebHoll
  • natinusala likes this

#2 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 17 September 2007 - 11:53 PM

[*]Currently supports the following file types: BMPs, PNGs, JPGs

That's awesome. :D

This utility is extremely useful. Now I don't have to use TI-PaintPlus anymore when converting monochrome images. I don't see any problems with it yet.

#3 SebHoll

SebHoll

    Newbie

  • Members
  • Pip
  • 19 posts
  • Gender:Male

  • Calculators:
    FX-9860G

Posted 18 September 2007 - 07:42 PM

There are various different things I'd like to implement in the future including the ability to generate greyscale pictures for use with kucalc's Revolution-FX library, but I need to work out how to do them myself first... :| Perhaps, when I get more time...

kucalc: You may want to make this thread "sticky" in this Design/Artwork/Sprites topic so that it's easily accessible to all. Just a thought...

#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 September 2007 - 11:31 PM

There are various different things I'd like to implement in the future including the ability to generate greyscale pictures for use with kucalc's Revolution-FX library, but I need to work out how to do them myself first... :| Perhaps, when I get more time...


That would be cool. ;) I believe there are some grayscale examples out there.

kucalc: You may want to make this thread "sticky" in this Design/Artwork/Sprites topic so that it's easily accessible to all. Just a thought...


Good suggestion. :D

#5 Fez

Fez

    Casio Freak

  • Members
  • PipPipPipPip
  • 162 posts
  • Gender:Male
  • Location:Australia

  • Calculators:
    Casio fx-9860G AU

Posted 23 September 2007 - 02:39 AM

i love this. I dont know how to make sprites. all that 0x whateva can get to a guys head XD.
There is just one problem i have found.(Guess the quote XD) I made a rock paper scissors game that uses kucalcs rev fx to link, and i drew the pics in paint, then converted with this. I had to make sure that there was a blank line around the edge of a sprite otherwise when it was shown in game, it would show as a muddled bunch of pixles in the dimensions of the sprite.
But other than that this is perfect. I love the new design of the window, the new font is just kool XD.

#6 SebHoll

SebHoll

    Newbie

  • Members
  • Pip
  • 19 posts
  • Gender:Male

  • Calculators:
    FX-9860G

Posted 23 September 2007 - 09:04 AM

There is just one problem i have found.(Guess the quote XD) I made a rock paper scissors game that uses kucalcs rev fx to link, and i drew the pics in paint, then converted with this. I had to make sure that there was a blank line around the edge of a sprite otherwise when it was shown in game, it would show as a muddled bunch of pixles in the dimensions of the sprite.
But other than that this is perfect. I love the new design of the window, the new font is just kool XD.

Glad you are using it! There was a few problems with dimensions in the earlier releases, but this was fixed from about v1.2. If there was something I missed, could you post the pictures you were having difficulties with and I'll try to isolate the problem and upload a fix. Btw, is the problem still there with v1.5?

#7 Fez

Fez

    Casio Freak

  • Members
  • PipPipPipPip
  • 162 posts
  • Gender:Male
  • Location:Australia

  • Calculators:
    Casio fx-9860G AU

Posted 23 September 2007 - 10:46 AM

Yes i re downloaded this version and it is the same. I will do it again to show you.
I tried to do it again but it exported a different array to what it was the other time. Thsi time it's doing it right. XD
Next time it does this i will show you. sorry i worked this time :lol:

#8 SebHoll

SebHoll

    Newbie

  • Members
  • Pip
  • 19 posts
  • Gender:Male

  • Calculators:
    FX-9860G

Posted 12 November 2007 - 11:11 PM

Hi,

I thought I'd upload my BETA version of my Casio Image Generator program which should in theory support greyscales when used with kucalc's Revolution-FX library. Although the new engine seems to handle all the images I can throw at it well, I'd prefer it if it was tested by you lot before I bring it out of BETA. And if anyone can test the greyscale functionality, that would be great!

[attachment=0:2arpvezf]v2 BETA Screenshot.png[/attachment]

There are a few things to note with v2:

  • You can now select what array you want to export the image as (e.g. Byte, Integer, or Long). The advantage is that for large images, the code generated is more compact, but for small images, choosing a larger variable type will result in a small amount of un-necessary memory being allocated.


#9 Fez

Fez

    Casio Freak

  • Members
  • PipPipPipPip
  • 162 posts
  • Gender:Male
  • Location:Australia

  • Calculators:
    Casio fx-9860G AU

Posted 13 November 2007 - 04:33 AM

this is the best. How do you do it XD

#10 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 14 November 2007 - 04:49 AM

Wow, that's really awesome. Glad to see you back SebHoll. :D

#11 k3v

k3v

    Casio Fan

  • Members
  • PipPip
  • 40 posts
  • Gender:Male
  • Location:Australia

  • Calculators:
    Casio Classpad 300 Plus \
    2 x Casio Fx-9860AU \
    Casio CFX-9850GB Plus \

Posted 26 November 2007 - 11:34 AM

Hey, this latest version with greyscale support is awesome! Great work! :D

#12 SebHoll

SebHoll

    Newbie

  • Members
  • Pip
  • 19 posts
  • Gender:Male

  • Calculators:
    FX-9860G

Posted 26 November 2007 - 06:56 PM

Hey, this latest version with greyscale support is awesome! Great work! :D

Glad you like it! 8-) Make sure you let me know if you find any problems with the greyscale output, as it has had limited testing and I'd like to update the original post with the new v2.0 release, if it is stable.

#13 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 13 December 2007 - 06:19 PM

This version looks stable enough for me. By the way, it'd be nice if you could adjust some stuff of the image before conversion like stretching, mirroring, rotating, lightness, etc.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users