Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: TI-Over9000 on March 02, 2012, 12:57:45 pm

Title: My first axe picture
Post by: TI-Over9000 on March 02, 2012, 12:57:45 pm
This is my first axe program.  I have taken demos and examples that I have seen here and have taken them together to create an animated picture. 

This program requires Axe to be complied

I have changed it from being a bunch of random lines into something that looks a lot better so you can get an idea of what it can be used for.
Title: Re: My first axe picture
Post by: Builderboy on March 02, 2012, 01:06:50 pm
Oooooh awesome!  The simplicity of the results is overshadowed by the fact that you are actually rotating the entire screen!  You should definitely post some more advanced screenshots and a more detailed description of how you accomplished this, I think there would be many people who would be interested!

Also welcome to the forums!  Feel free to introduce yourself (http://www.omnimaga.org/index.php?board=10.0)
Title: Re: My first axe picture
Post by: TI-Over9000 on March 02, 2012, 01:20:43 pm
Thanks BuilderBoy :]

What I did is, instead of rotating the whole screen each frame, I instead saved the location of the pixles inside a list.  Then what I did is, I rotated the coordinates of each point throughout the list.  I used what I have learned in geometry class to help me program.  I enjoyed being able to apply what I have learned in class.
Title: Re: My first axe picture
Post by: saintrunner on March 02, 2012, 03:19:37 pm
Haven't checked it out yet, but it sounds cool :) also I suggest posting the already compiled version which doesn't require axe also, so those with out axe and enjoy! Also....
Welcome to Omni!!
Title: Re: My first axe picture
Post by: TI-Over9000 on March 04, 2012, 09:43:02 pm
How would I go about doing that?
Title: Re: My first axe picture
Post by: chattahippie on March 04, 2012, 09:44:49 pm
How would I go about doing that?

If you use Ti-Connect, when you compile the Axe program into an Assembly program (with the Axe app), the Asm program can be found under Protected Programs in the device explorer
Title: Re: My first axe picture
Post by: Deep Toaster on March 04, 2012, 10:18:02 pm
Welcome and nice job on your first Axe program :) Here's a screenshot of it for you.
Title: Re: My first axe picture
Post by: boot2490 on March 04, 2012, 10:29:20 pm
Wow! That is exactly what I have been trying to figure out how to do for my mode seven engine demo (which you can check out my clicking on the link in my signature) for the past day or so.. and you didn't even get any help! Much better than my first contribution..
Title: Re: My first axe picture
Post by: TI-Over9000 on March 05, 2012, 01:07:08 pm
Here is the compiled version, thanks for telling me how to do it. 
Title: Re: My first axe picture
Post by: aeTIos on March 05, 2012, 01:09:12 pm
Omg, are you actually rotating lines or pixels? (if pixels, mind posting your routine??)
Title: Re: My first axe picture
Post by: TI-Over9000 on March 05, 2012, 01:18:12 pm
I save all the pixels in a list.
then i display them with a rotated offset i think.  I think it is what you are looking for.
You can look at the source in the 1st post.  you should be able to tell what is what in it.
Title: Re: My first axe picture
Post by: aeTIos on March 05, 2012, 01:20:40 pm
All pixels in a list? O.o
Not by hand i hope?
er by the way. Why is your total post rating +2 instead of +3? did you get downrated swhere?
Title: Re: My first axe picture
Post by: Nick on March 05, 2012, 03:23:18 pm
it's nice, and very nice as a first contribution..
it runs very smooth, but won't it be slow to use with more pixels? as list manipulations are good, but when they get too long, it might get slower...

I enjoyed being able to apply what I have learned in class.

that's certainly true (for everyon i think), it makes you feel like, wouhouw, i learned something useful xp
Title: Re: My first axe picture
Post by: LincolnB on March 05, 2012, 03:59:05 pm
OK, first of all wow, this is awesome. I like it so much I made a little game using the same engine! http://ourl.ca/15430.new#new
Title: Re: My first axe picture
Post by: Builderboy on March 05, 2012, 04:25:10 pm
Indeed more pixels slow it down a bit more.  As soon as I figured out what it did, I tried setting it up to rotate whatever happened to be on the graph screen, and I tried to rotate the xLib logo, but there wasn't enough space in the list, so it didn't rotate all of it D:
Title: Re: My first axe picture
Post by: Nick on March 05, 2012, 04:27:25 pm
Indeed more pixels slow it down a bit more.  As soon as I figured out what it did, I tried setting it up to rotate whatever happened to be on the graph screen, and I tried to rotate the xLib logo, but there wasn't enough space in the lib, so it didn't rotate all of it D:

but can it rotate a full drawn graph screen (without being dependant on the lib) ?because when it uses axe, it does not need those libs, does it?
Title: Re: My first axe picture
Post by: TI-Over9000 on March 05, 2012, 11:03:02 pm
thanks for the feedback everyone.  I didn't know it would have been this usefull to some of you.
Title: Re: My first axe picture
Post by: Builderboy on March 05, 2012, 11:29:35 pm
but can it rotate a full drawn graph screen (without being dependant on the lib) ?because when it uses axe, it does not need those libs, does it?
Arg I meant to say space in the *list*.  The lib had nothing to do with it, I just used the logo because it was something that would be fun to test rotation with :P
Title: Re: My first axe picture
Post by: Happybobjr on March 06, 2012, 06:43:19 am
Can't you make your own custom buffer in Ram now with the current version of axe?
I looked at it any it is less than 1K bytes, so it definitely has room for that slight modification.
Title: Re: My first axe picture
Post by: TI-Over9000 on March 06, 2012, 01:00:47 pm
yep happybob you are right.
You dont have to be limited to the 700 bytes in L1.
Title: Re: My first axe picture
Post by: Nick on March 06, 2012, 01:03:02 pm
euh, if i were you, i wouldn't set that swastika as your avatar, it might get interpreted wrong by some people...
Title: Re: My first axe picture
Post by: parserp on March 06, 2012, 02:11:34 pm
TI-over9000, could you consider changing your avatar? It is very offensive to some people.Thanks.
Title: Re: My first axe picture
Post by: LincolnB on March 06, 2012, 05:53:04 pm
I can't see his avatar, but then again a LOT of image upload sites are blocked on my computer.
Title: Re: My first axe picture
Post by: Happybobjr on March 06, 2012, 06:46:34 pm
I can't see his avatar, but then again a LOT of image upload sites are blocked on my computer.
I think he removed it.
Title: Re: My first axe picture
Post by: DJ Omnimaga on March 06, 2012, 06:56:58 pm
Actually the swastika by itself was not meant for use for what it got used for, but sadly it did so this explains why some people might interpret it wrongly (even if you would draw it backwards). Also awesome program you got there. If it wasn't for speed and size issues, it could potentially be used in some games or title animations, such as allowing barrel rolls in a shoot-em-up.
Title: Re: My first axe picture
Post by: TI-Over9000 on March 06, 2012, 11:04:07 pm
I'm sorry about my avatar, it wasn't meant to be offenesive in any way.  I just wanted to have a screen shot of the program I made.
Title: Re: My first axe picture
Post by: hellninjas on March 06, 2012, 11:07:08 pm
This is pretty nice... +1!/me studies to learn!
Title: Re: My first axe picture
Post by: Hayleia on March 07, 2012, 12:48:28 am
I'm sorry about my avatar, it wasn't meant to be offenesive in any way.  I just wanted to have a screen shot of the program I made.
Yes, you can. Just avoid the swastika ;)
You can rotate a smiley instead, for example.

Also, isn't it the wrong section for the topic, since it is a program ?
Title: Re: My first axe picture
Post by: DJ Omnimaga on March 07, 2012, 01:09:38 am
What is the sprite format by the way? Is i the same as regular sprites and can they be made with a satandard sprite editor?
Title: Re: My first axe picture
Post by: Builderboy on March 07, 2012, 01:25:33 am
Dj it basically takes whatever is currently on the graph screen and rotates it, so there really is no sprite format per-say
Title: Re: My first axe picture
Post by: DJ Omnimaga on March 07, 2012, 01:32:29 am
Oh I see. That is great actually though, I wonder if it preserves the sides. I should give it a try...

EDIT Builder it doesn't. It just spins the swastika and erases the rest of the graph screen ???
Title: Re: My first axe picture
Post by: Builderboy on March 07, 2012, 01:40:08 am
His code is slightly modified such that it clears the graph screen and then draws the swastika, but that is independent of the rotation code itself.  If you removed the part of the code that cleared the screen and drew the symbol, it would rotate whatever is on the screen when you run the program. 
Title: Re: My first axe picture
Post by: DJ Omnimaga on March 07, 2012, 01:42:27 am
Oh ok thanks for the info. I was actually running the compiled version.
Title: Re: My first axe picture
Post by: Builderboy on March 07, 2012, 01:43:10 am
Ah gotcha.  Yeah his routine does rotate what is on the graph screen, it's just that he also controls what's on the graph screen :P
Title: Re: My first axe picture
Post by: DJ Omnimaga on March 07, 2012, 01:54:56 am
Btw TI-Over9000 your source code is broken: On compile it says ERR:Too Many Ends, so I had to remove two. But now it freezes when ran...

Quote from: BASIC Code
:.PEACE
:ClrDraw
:ref(16,32,32,1
:ref(16,48,16,1
:ref(32,16,16,1
:ref(32,16,1,32
:ref(16,16,1,16
:ref(48,32,1,16
:If pxl-Test(A,B
:A→{L+L1}
:B→{L+L1+1}
:L+2→L
:End
:End
:End
:
:L-2→R
:
:While 1
:ReturnIf getKey(15)
:cos(O++)→C
:sin(O)→E
:
:For(L,0,R
:
:Pxl-On(({L+L1}-32→G*C)-({L+L1+1}-32→M*E)//128+48,(M*C)+(G*E)//128+32)
:L++
:End
:
:DispGraphClrDraw
:End
Generated by SourceCoder (http://sc.cemetech.net), © 2005-2012 Cemetech (http://www.cemetech.net)
Title: Re: My first axe picture
Post by: Happybobjr on March 07, 2012, 06:51:51 am
You are missing what scans the picture it looks like.
Try adding something like...
For(A,0,95)
For(B,0,63)
Title: Re: My first axe picture
Post by: DJ Omnimaga on March 07, 2012, 10:59:24 pm
Do you mean at the beginning?
Title: Re: My first axe picture
Post by: Happybobjr on March 08, 2012, 06:53:19 am
Right after cleardraw.
That is how it looks like it should be to me.



I should probably fix my calc soon :/ :P
Title: Re: My first axe picture
Post by: TI-Over9000 on March 09, 2012, 12:02:42 pm
Yes that is right, I found something really wierd but also really cool

try modifying the source like this then running it!
Pxl-On(({L+L1}-32→G*C)+({L+L1+1}-32→M*E)//128+48,(M*C)+(G*E)//128+32)
Title: Re: My first axe picture
Post by: DJ Omnimaga on March 26, 2012, 10:21:52 pm
The program still crashes by the way, even after the edits suggested above ??? (Basically it freezes on launch)

EDIT: Nvm, but now I removed the svastika and first clrdraw, and it still displays part of it. I can't for example display the graph screen and rotate it. ???

EDIT Actually nvm, I need to copy L6 to L1 I think X.x

EDIT Nope. The code is definitively broken and only works with specific drawings... eg replacing the svastika with text freezes the calc...
Title: Re: My first axe picture
Post by: Eiyeron on March 27, 2012, 04:26:44 pm
Actually the swastika by itself was not meant for use for what it got used for, but sadly it did so this explains why some people might interpret it wrongly (even if you would draw it backwards). Also awesome program you got there. If it wasn't for speed and size issues, it could potentially be used in some games or title animations, such as allowing barrel rolls in a shoot-em-up.

In an ancient civilisation, that would means" the sacred symbol of auspiciousness" (thanks to WIki), but In China, it mean "eternity and Buddhism"...

EDIT: 337 posts... One thousand to go! ♪