Author Topic: Drawing Pictures for Axe  (Read 19338 times)

0 Members and 2 Guests are viewing this topic.

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Drawing Pictures for Axe
« on: July 13, 2011, 11:24:11 am »
Can anyone Help me?
I try to draw pictures in this funny code [0011001ABC1054332324...] But don't know how.
I always changed something in the code, and wondered about the chacture. but I have no idea how to draw correctly in this code.
For example, how to draw this x-Wing?
(I mean in a 12x8-picture, or something like this.
Spoiler For image:
*insert supercool signature*

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Drawing Pictures for Axe
« Reply #1 on: July 13, 2011, 11:48:20 am »
Easy to explain, hard to do ;D
The funny code is hexadecimal, and supports only black and white; 0 and 1.
First, put your image in binary. Every pixel is changed into a number (1 if black, 0 if white).
Then, translate Binary to Hexadecimal. When you have finished reading it, re-read the first sentence.

If you only make a 8x8 sprite, it is easier to use AxePaint.
« Last Edit: July 13, 2011, 11:49:07 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: Drawing Pictures for Axe
« Reply #2 on: July 13, 2011, 11:58:17 am »
Then, translate Binary to Hexadecimal.
HOW?????????
*insert supercool signature*

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Drawing Pictures for Axe
« Reply #3 on: July 13, 2011, 12:20:08 pm »
Well, with your numbers, make a multiple of eight lenght by adding zeros (I'm French, so even me doesn't understand what I just said). I mean, If you have 111, do 00000111. If you have 1010010001, do 0000001010010001.
Then, change every pack of four by its hexadecimal equivalent. 0001 becomes 1; 0010 becomes 2; 1000 becomes 8, 1010 becomes A, etc. So 0110010010001101 becomes 648D

EDIT: ???I never used the word "bit" or "byte" in my post :o
And the X-Wing would be too large for the TI I think
« Last Edit: July 13, 2011, 12:26:46 pm by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Drawing Pictures for Axe
« Reply #4 on: July 13, 2011, 12:22:58 pm »
Hopefully I'm not repeating a lot.
So, first pad the sprite to a width that's a multiple of 8 if necessary.
Then convert the picture to binary; black is 1, white is 0.
Then, as Hayleia said, you need to put that in hexadecimal, four bits at a time.
If you want a chart, here it is. I do hope you figure out why it's like this, though :)
BinaryHexadecimal
00000
00011
00102
00113
01004
01015
01106
01117
10008
10019
1010A
1011B
1100C
1101D
1110E
1111F
(Maybe I should have done that table horizontally...)
« Last Edit: July 13, 2011, 12:34:15 pm by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: Drawing Pictures for Axe
« Reply #5 on: July 13, 2011, 12:28:53 pm »
cool, thanx!!!
*insert supercool signature*

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Drawing Pictures for Axe
« Reply #6 on: July 13, 2011, 12:30:31 pm »
Hopefully I'm not repeating a lot.
So, first pad the sprite to a width that's a multiple of 8 if necessary.
Then convert to picture to binary; black is 1, white is 0.
Then, as Hayleia said, you need to put that in hexadecimal, four bits at a time.
If you want a chart, here it is. I do hope you figure out why it's like this, though :)
Binary Hexadecimal
   ...
(Maybe I should have done that table horizontally...)
Maybe you repeated what I said, but at least, I understand what you said, while I'm not sure that what I wrote makes any sense.
« Last Edit: July 13, 2011, 12:31:21 pm by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Broseph Radson

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 295
  • Rating: +20/-1
  • Its 0x1A4 somewhere
    • View Profile
Re: Drawing Pictures for Axe
« Reply #7 on: July 14, 2011, 01:29:48 pm »
I actually made an image version of this here
Hopefully I'm not repeating a lot.
So, first pad the sprite to a width that's a multiple of 8 if necessary.
Then convert the picture to binary; black is 1, white is 0.
Then, as Hayleia said, you need to put that in hexadecimal, four bits at a time.
If you want a chart, here it is. I do hope you figure out why it's like this, though :)
BinaryHexadecimal
00000
00011
00102
00113
01004
01015
01106
01117
10008
10019
1010A
1011B
1100C
1101D
1110E
1111F
(Maybe I should have done that table horizontally...)

I actually made an image version of this here
« Last Edit: July 14, 2011, 01:30:20 pm by Broseph Radson »

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Drawing Pictures for Axe
« Reply #8 on: July 14, 2011, 01:46:32 pm »
That works too. :) You forgot 0, though :P
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Drawing Pictures for Axe
« Reply #9 on: July 29, 2011, 12:27:00 pm »
Is there a "Image to Hex Converter" somewhere (for the TI-83+ family) ? To put an image in hex in an appvar for example (I'm talking about 96x64 images) (because I want to avoid the [Pic0]→GDB1 thing and make [thecode]→GDB1).
« Last Edit: July 30, 2011, 03:05:58 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Drawing Pictures for Axe
« Reply #10 on: July 30, 2011, 06:49:46 am »
Is there a "Image to Hex Converter" somewhere (for the TI-83+ family) ? To put an image in hex in an appvar for example (I'm talking about 96x64 images) (because I want to avoid the [Pic0]→GDB1 thing and make [thecode]→GDB1).
SourceCoder can convert image files (such as bmp) to hex.

http://www.cemetech.net/projects/basicelite/sourcecoder2.php

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Drawing Pictures for Axe
« Reply #11 on: July 30, 2011, 07:06:31 am »
I tried it, it doesn't seem to work :( it gives me only FFs.
I think I'll make it with [Pic0].
Thanks anyway.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Wellen

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +7/-2
    • View Profile
Re: Drawing Pictures for Axe
« Reply #12 on: August 08, 2011, 05:14:18 am »
Is there a "Image to Hex Converter" somewhere (for the TI-83+ family) ? To put an image in hex in an appvar for example (I'm talking about 96x64 images) (because I want to avoid the [Pic0]→GDB1 thing and make [thecode]→GDB1).

Right here ;)

You're lucky, I just found it yesterday  :D
-/...././/--./.-/--/.
I'm french, so please feel free to correct my bad english, it'd help me a lot ;)
Spoiler For Feat. Loulou54:
Spoiler For Projects:
Spoiler For Axe:
Ti-Lock : Lock your calc before turning it off               [XXXXXXXX--] 80%
Spoiler For Ti-Basic:
Spoiler For Soko-Ti, a sokoban game in Ti-Basic:

Spoiler For Memory:

Downloads here.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Drawing Pictures for Axe
« Reply #13 on: August 08, 2011, 05:52:03 am »
Thank you for the help, but there is a problem with this one: it creates an hex code for any image so it first edits the image so it can fit in the calculator, but even if the image was perfect, it edits it, so there are some precisions of the image that are killed.
In another topic, Welcome to the forum, you should go here and introduce yourself
« Last Edit: August 08, 2011, 05:52:22 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: Drawing Pictures for Axe
« Reply #14 on: August 10, 2011, 02:12:47 pm »
What's about such a tool in German?
*insert supercool signature*