Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Matrefeytontias on August 24, 2013, 08:13:55 am

Title: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Matrefeytontias on August 24, 2013, 08:13:55 am
Hey guys,

I've been working on another axiom for 3D, this time to work with 3D vectors (I planned more things) !

Just check the attached photos of a 32-sided solid sphere (no animated gif because no PC) knowing that I only draw lines (no filled triangles), and that it runs at approximately 6 FPS at 6 MHz on a TI-83+ non-SE :)

For now, all 3D rotation/projection is done in Axe, and the backface culling is done with the 3 current functions of the axiom, MakeVec(pt1,pt2,output), DotProd(vec1,vec2) and CrossProd(vec1,vec2,output). Source and binaries will come when I'll have a PC <_<

WARNING ! HUGE AND BADLY TAKEN PHOTOS FROM A PHONE ! That's all I have atm.

EDIT(shmibs): scaled down
Title: Re: [Axe+axiom] 32-sided solid sphere-like on a Ti-83+ non-SE !
Post by: aeTIos on August 24, 2013, 08:37:06 am
huuuuuge photos O.o
Impressive job!
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Eiyeron on August 24, 2013, 11:13:46 am
Which axiom will be better?
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Matrefeytontias on August 24, 2013, 11:20:46 am
I'm not sure I understand what you mean ... ???

Also, thanks Shmibs for the scaling
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Eiyeron on August 24, 2013, 01:12:35 pm
You alreafy have a 3D axiom. Which of both axiom will be better than the other one?
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Matrefeytontias on August 24, 2013, 01:47:31 pm
The thing is, I wanted to continue to improve AxeJh3D, but as I said I don't have any computer where I am, so I had to create another with Mimas. My plan is to add vector support to AxeJh3D, which is exactly what the axiom used in the program of the photos. When I'll get home, I'll merge both axioms to add vector-related functions to AxeJh3D.
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Eiyeron on August 24, 2013, 01:48:22 pm
Will it improve the general speed of the calculations?

EDIT : 666TH POST!
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Matrefeytontias on August 24, 2013, 02:39:08 pm
No, but it'll add new features to the axiom. One usage of the vectors-related functions is the backface culling, which is a technique to dynamically remove backfacing 3D polygons. For example, in a convex polyhedra, at most 50% of the faces are visible from any viewing angle ; backface culling will then discard at least 50% of the faces, removing at least 50% of the calculations.
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: TIfanx1999 on August 24, 2013, 09:03:04 pm
Looks nice! Can't wait to see it in action. :D
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Sorunome on August 25, 2013, 06:50:26 pm
Great job matref! (as always :P)
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: tr1p1ea on August 25, 2013, 07:01:37 pm
When you say '3D vectors' im just wondering in what context you are talking? Do you mean as far as tracking object positions+magnitude etc?
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: DJ Omnimaga on August 25, 2013, 07:09:07 pm
That looks impressive. I can't wait to see how this looks like with some models like Mario :)

Also you should fix your signature when you get back on a real computer, since the signature rules now limits sigs to 200 pixels height and disallows spoiler tags. :P
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Matrefeytontias on August 26, 2013, 04:44:50 am
Sorunome : thanks :)

Tr1p1ea : ow ow no :P by 3D vectors I mean vectors with 3 coordinates that's all :P I explained in the first post the three functions I have so far.

DJ_O : oh okay I'll take care of that :)
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Matrefeytontias on September 02, 2013, 06:33:20 am
Bump,

Here you go, animated screenshot (7 FPS) !
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Sorunome on September 02, 2013, 06:34:20 am
wow....that is just amazing!
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: TIfanx1999 on September 02, 2013, 09:50:19 am
Looks great! :D
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: DJ Omnimaga on September 02, 2013, 08:20:57 pm
Very cool indeed :)
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: tr1p1ea on September 02, 2013, 09:26:32 pm
Cool, did you convert the model yourself? Is it possible to draw something more complex?
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Matrefeytontias on September 03, 2013, 01:04:23 am
I generated the vertices with a For loop and a bunch of cos/sin. As-is, it's not possible to draw anything else than convex polyhedras, but I'm working on it.
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: tr1p1ea on September 03, 2013, 01:21:29 am
I think that for a calc, convex polygons are good enough :).
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Matrefeytontias on September 03, 2013, 02:04:42 am
Polyhedras, not polygons :P and yeah, I guess that's enough but I see a way to do more, so why not trying :)
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: DJ Omnimaga on September 05, 2013, 11:04:03 pm
Illusiat 3D? :trollface:
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Matrefeytontias on September 06, 2013, 12:51:28 am
Ask TheMachine02 for that ;D
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: TheMachine02 on September 06, 2013, 12:31:56 pm
Yay a 3d RPG  :D   
I can only tell you one thing for the moment - there is a work ... in progress :P

Oh and this is just awesome work matref
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Matrefeytontias on September 06, 2013, 12:35:09 pm
Thanks :)
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Matrefeytontias on October 08, 2013, 01:33:02 pm
Necro bump,

I just realized I forgot to release the axiom ;D so here it is. The axiom is AXVECTOR.8xv, and the source is in vectors.asm.

Let's document functions, shall I ?

All functions are found in the TYPE menu [2nd], [f(x)]/[Y=], [→].

FunctionEffect
MakeVec(pt1, pt2, outputVec)Build a 6-bytes 3D vector out of two 6-bytes 3D points and stores the result in the 6 bytes starting at outputVec. All parameters must be pointers on 6-bytes areas.
DotProd(vec1, vec2)Performs the dot product of two 6-bytes 3D vectors and returns the result as a 16-bits signed number.
CrossProd(vec1, vec2, outputVec)Performs the cross product of two 6-bytes 3D vectors and stores the resulting vector in the 6 bytes starting at outputVec, scaled down by 128 to prevent overflow. All parameters must be pointers on 6-bytes areas.
MultVec(vector, scalar, outputVec)Multiplies a vector by a scalar and outputs the resulting vector in the 6 bytes starting at outputVec. vector and outputVec must be pointers on 6-bytes areas and scalar must be a signed 16-bits number.

That's all folks, have fun with the axiom ;D (hint : it's used in the thing in my avatar :o )
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: DJ Omnimaga on October 08, 2013, 02:18:47 pm
Wow I had almost forgotten about this. GLad to see it released :D
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Sorunome on October 08, 2013, 02:45:11 pm
ha, lol, better late than never! :D
Title: Re: [Axe+axiom] 32-sided solid sphere-ish thingy on a Ti-83+ non-SE !
Post by: Matrefeytontias on October 08, 2013, 03:01:33 pm
Yeah you said it :P