Home | News | Downloads | Projects | Articles | Awards | Forums | Chat | Guestbook | About | Arcade
InvisionFree - Free Forum Hosting
Free Forums with no limits on posts or members.
Learn More · Register Now



Forum Topics Replies Last Post Info
Older topics
Here you can access all topics posted from May 12th 2005 to Apr 9th 2006 (In read only mode).
1126 15694 9 Apr, 2006, 11:06
In: Last Post[GAME]Learn how to count to...
By: DJ Omnimaga
 

  post

 Simple Polygon Rotator
bfr
Posted: 10 Jul, 2007, 17:24


Post whore


Group: Coders Of Tomorrow
Posts: 872
Member No.: 31
Joined: 12 Apr, 2006



I originally was going to make a program that could draw rotated 3-D prisms, but it turns out that somebody already made that, so because I didn't want to waste the code I already have, I turned it into something that can draw any polygon rotated at any angle. It's for the TI-89/Ti-92+/Voyage 200, and was written in C.

I didn't do much testing with it, but it should work. The only thing you have to worry about is you need to make sure you use it correctly, or else it can crash your calculator. Here is how to use it:

prism(row,column,angleInDegrees,mode,point1x,point1y,point2x,point2y,...)

It definitely should be fast enough. All of the parameters are integers. Here are the different mode settings:

0 - reverse
1 - normal
2 - xor
4 - replace
5 - or

To download this, see the attachment.

EDIT: I decided to do some additional testing and realized I made a dumb mistake. The latest attachment has this fixed.

This post has been edited by bfr on 10 Jul, 2007, 17:49

Attached File ( Number of downloads: 12 )
Attached File  PolyRotator.zip (5.28 kb)


--------------------
[URL=http://bfr.tifreakware.net]My Website[/URL] - [URL=http://bfr.18.forumer.com]My Forums[/URL] - [URL=http://bfr.tifreakware.net/badips.php]Submit IP Addresses of Spambots and Troublemakers[/URL]

2B || !2B
Top
Fallen Ghost
Posted: 10 Jul, 2007, 19:07


Ultimate Member


Group: Members
Posts: 143
Member No.: 308
Joined: 27 Jan, 2007



Hey, I could do that on my 83+ with my draw3d program on ticalc. And it even allowed surface shadings, lines, points, perspective/isometric, built-in editor, rotations/scale, and all that, with object that may be other than prisms.

But I admit it weighted 6k of RAM and didn't patterns like or/xor/and.

[Edit]My version for 83+


--------------------
My current project: -StarCalc Apps (Starcraft complete for TI-83+) (Status: hell, I hate restructuration)
Top
bfr
Posted: 10 Jul, 2007, 20:04


Post whore


Group: Coders Of Tomorrow
Posts: 872
Member No.: 31
Joined: 12 Apr, 2006



Yeah, I would have had a lot of stuff like that, but I found at that somebody already made it. I'd be interested in seeing your version for the TI-83+ though. smile.gif


--------------------
[URL=http://bfr.tifreakware.net]My Website[/URL] - [URL=http://bfr.18.forumer.com]My Forums[/URL] - [URL=http://bfr.tifreakware.net/badips.php]Submit IP Addresses of Spambots and Troublemakers[/URL]

2B || !2B
Top
DJ Omnimaga
Posted: 26 Jul, 2007, 7:14


Ragol666


Group: Founder
Posts: 11283
Member No.: 1
Joined: 9 Apr, 2006



i wonder if this could be used as a lib for other programmers?


--------------------
user posted image
Join us on IRC on #omnimaga at irc://unitedti.org!
user posted image
Top
Fallen Ghost
Posted: 26 Jul, 2007, 7:34


Ultimate Member


Group: Members
Posts: 143
Member No.: 308
Joined: 27 Jan, 2007



Double post ftw!

Well, I guess the 68k basic has a prgmXXX simile, so that should be possible, like bfr explained with it's special new function


--------------------
My current project: -StarCalc Apps (Starcraft complete for TI-83+) (Status: hell, I hate restructuration)
Top
tenniskid493
Posted: 26 Jul, 2007, 16:32


Future Ruler of the World


Group: Admins
Posts: 877
Member No.: 11
Joined: 10 Apr, 2006



I don't see a double post biggrin.gif Your welcome DJ_Omnimaga

Nice work bfr...now if only you put this effort towards your other projects tongue.gif (cough*OmnimagaTheRPG*cough)


--------------------

"So if you care to find me, look to the western sky. As someone told me lately,
everyone deserves a chance to fly. And if I'm flying solo, atleast I'm flying free. To
those who ground me, take a message back from me. Tell them how I have defied
gravity, im flying high, defying gravity, and no ones gonna bring me down!"
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
DealsFor.me - The best sales, coupons, and discounts for you

Topic Options post





TI-Freakware's TI Ring
TI-Freakware's TI Ring
[ Join Now | Ring Hub | Random | << Prev | Next >> ]

Hosted for free by InvisionFree* (Terms of Use: Updated 2/10/2010) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.1132 seconds | Archive

Skin by xlibman and Jc
All programs and games are property of their respective owners.