Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: _player1537 on May 05, 2010, 08:11:23 pm

Title: SIr's 3d program
Post by: _player1537 on May 05, 2010, 08:11:23 pm
Ok, well SirCmpwn has been having some troubles with his parents being jerks and taking away all of his free life.  But he is still making calc programs and getting the stuff he needs.  His parents blocked omni, cemetech, and IRC from his computer.  But he is getting a friend to make him a custom liveboot cd with xchat, wine, and ubuntu on it, so he might be able to get on soon.  But he told me to tell you "that i may be offline for a very long time, with the exception of a couple quick visits every now and again".

Anyways, onto his program.  He made a 3d program that uses the same method as most computers use for 3d stuff.  it uses a direction vector as L4, L1,2,3 hold the x,y,z positions respectivly.  I'm going to upload a screenshot in a second (w00t wabbit works in ubuntu's wine).  So I'll get that to you soon.  Also I can ask SIr any questions you have about it.  it takes about 5-7 seconds per frame, and he will port it to axe soon, but is having some trouble with it.
Title: Re: SIr's 3d program
Post by: Eeems on May 05, 2010, 08:14:18 pm
that sucks...have they blocked unitedti.org?

can't wait to see that screenshot, and to see the axe version :P
Title: Re: SIr's 3d program
Post by: _player1537 on May 05, 2010, 08:17:37 pm
ok, here's the screen shot, and the program.  It uses the arrow keys and '(' ')' to move the object around.  Run program run3dtst to start.  Press Clear to quit.
Title: Re: SIr's 3d program
Post by: meishe91 on May 05, 2010, 09:20:24 pm
That looks pretty cool. Tell SirCmpwn good work for me, please :)
Title: Re: SIr's 3d program
Post by: tr1p1ea on May 05, 2010, 11:25:56 pm
Ive been waiting for this screenie! W00t 3D is awesome :).

Tell him good work :).
Title: Re: SIr's 3d program
Post by: mapar007 on May 06, 2010, 12:17:27 am
Good work!

@_player: wasn't it a bit dangerous to post that? His parents can still read the forums.
Title: Re: SIr's 3d program
Post by: Builderboy on May 06, 2010, 01:04:18 am
Nice work!  It does take a bit long to render though o.O seems there could be some optimisation there.  I'll take a look at the code...
Title: Re: SIr's 3d program
Post by: _player1537 on May 06, 2010, 07:04:12 am
Good work!

@_player: wasn't it a bit dangerous to post that? His parents can still read the forums.
IDK I sent it to SIr and he said it was fine.  Do his parents really read the forums?
Title: Re: SIr's 3d program
Post by: mapar007 on May 06, 2010, 11:23:33 am
Idk, but they are theoretically capable and his parents 'read' the IRC logs according to him.
Title: Re: SIr's 3d program
Post by: Silver Shadow on May 06, 2010, 01:10:31 pm
Damn. Why the heck are they doing that? Did they explain?
Title: Re: SIr's 3d program
Post by: DJ Omnimaga on May 06, 2010, 06:22:07 pm
I hope he can at least continue doing calc stuff from school and hopefully PC programming and that he can get on Omni from friend house or using some tools (that he keeps out of reach from his parents). I think his situation is really unfair and there's abuse from the parents part. I got my calc taken away a few times before cuz I didn't do chores and the like and my mom hated electronic with a passion, but at least I still was allowed to use it and has some freedom.

That said the program looks awesome. Hopefully someone can relay us updates for him in the future and he can return here permanently eventually. I would like to see this ported to Axe eventually, if it's possible at all, because by the BASIC speed, it looks like in Axe it could get a pretty great framerate for 3D
Title: Re: SIr's 3d program
Post by: ztrumpet on May 06, 2010, 08:12:23 pm
That looks great!  Hopefully he can come back soon.  :)
Title: Re: SIr's 3d program
Post by: SirCmpwn on May 13, 2010, 03:33:46 pm
Hi
Converting to Axe is hell.  It may never happen.  I'm trying, but it is super hard.
Title: Re: SIr's 3d program
Post by: DJ Omnimaga on May 13, 2010, 04:41:15 pm
Aw sorry to hear. Is it due to the lack of floating point support?
Title: Re: SIr's 3d program
Post by: SirCmpwn on May 16, 2010, 05:01:35 pm
That's exactly why
Title: Re: SIr's 3d program
Post by: Builderboy on May 16, 2010, 05:03:42 pm
Did you take a look at Quigibo's 3D program he uploaded with one of the updates a while back?  That might be helpfull
Title: Re: SIr's 3d program
Post by: DJ Omnimaga on May 16, 2010, 05:51:57 pm
Yeah that one might be helpful. After all, in z80 assembly, I believe for 3D tr1p1ea did not use floating points.
Title: Re: SIr's 3d program
Post by: SirCmpwn on March 02, 2011, 11:25:34 pm
*bump*
This was just really cool, and I linked to it on Cemetech, which reminded me of it.  New users might want to check it out :)
Title: Re: SIr's 3d program
Post by: DJ Omnimaga on March 03, 2011, 12:04:35 am
Yeah I remember that. It was kinda nice, although I wish it was finished. I wonder if an Axe version would be possible?
Title: Re: SIr's 3d program
Post by: SirCmpwn on March 03, 2011, 12:05:20 am
Probably, but when I tried to make an Axe version, I failed horribly.  There's some math that's just too complex.  I would *not* want to do perspective projection using only integers.
Title: Re: SIr's 3d program
Post by: DJ Omnimaga on March 03, 2011, 12:06:00 am
Yeah. I wonder if fixed points would be effective?
Title: Re: SIr's 3d program
Post by: SirCmpwn on March 03, 2011, 12:06:57 am
If someone writes a method to get the sin/cos of an angle in fixed point form...maybe.
Does fixed point division work in Axe?
Also, fixing the resolution could cause problems.
Title: Re: SIr's 3d program
Post by: DJ Omnimaga on March 03, 2011, 12:08:16 am
Not sure really, it has beena long while since I last looked at Axe. You would have to ask in the Axe sub-forum.
Title: Re: SIr's 3d program
Post by: Binder News on March 03, 2011, 12:26:37 am
Isn't there a float{ command to allow the use of floating-point-numbers?
Title: Re: SIr's 3d program
Post by: SirCmpwn on March 03, 2011, 12:28:02 am
Only for storage within TIOS.
Title: Re: SIr's 3d program
Post by: PeonHero on March 03, 2011, 01:04:46 am
That's a nice program. I don't understand how his parents blocked his internet access however. Can't he use proxies to bypass this?
Title: Re: SIr's 3d program
Post by: Builderboy on March 03, 2011, 01:06:21 am
I know that quigibo made a 3D rotating cube a long time ago in Axe for a demo, so I know its definitely possible :)  Maybe I'll take a stab at it, as I messed around with 3D many times in my java excursions
Title: Re: SIr's 3d program
Post by: DJ Omnimaga on March 03, 2011, 01:07:39 am
That's a nice program. I don't understand how his parents blocked his internet access however. Can't he use proxies to bypass this?
He was ungrounded after this was posted, but then he got grounded again and again. He can somehow manage to sneak in anyway, now, though.
Title: Re: SIr's 3d program
Post by: SirCmpwn on March 03, 2011, 01:09:45 am
Ah, but the 3D cube isn't perspective projection.
Title: Re: SIr's 3d program
Post by: z80man on March 03, 2011, 01:12:11 am
So it must be an orthographic perspective. What formula are you using btw because those matrices slow you down unless there is hardware support for them like directx.
Title: Re: SIr's 3d program
Post by: SirCmpwn on March 03, 2011, 01:14:13 am
Not using matricies, using straight up lists.  The equations are here (http://en.wikipedia.org/wiki/Perspective_projection#Perspective_projection), I use the non-matrix forms.
Title: Re: SIr's 3d program
Post by: Builderboy on March 03, 2011, 01:16:41 am
How is it not projection?  It rotates and everything :D
Title: Re: SIr's 3d program
Post by: SirCmpwn on March 03, 2011, 01:20:26 am
Perspective projection is different.  Notice how in the screenies in this thread, the back of the box is visually smaller than the front?
Title: Re: SIr's 3d program
Post by: Builderboy on March 03, 2011, 01:28:40 am
So you're telling me this isn't perspective projection?

(http://www.ticalc.org/archives/files/ss/804/80440.gif)
Title: Re: SIr's 3d program
Post by: SirCmpwn on March 03, 2011, 01:29:27 am
Wow, that looks right!  Did he use some clever hacks?  Because that stuff is CPU intensive.
Title: Re: SIr's 3d program
Post by: Builderboy on March 03, 2011, 01:37:20 am
No idea, but it should be in the demo programs so you should check it out! :D
Title: Re: SIr's 3d program
Post by: SirCmpwn on March 03, 2011, 01:38:49 am
Will do :)
Title: Re: SIr's 3d program
Post by: Quigibo on March 03, 2011, 03:26:52 am
Actually, if I remember correctly, the engine already works the way you want it to (other than clipping).  It just reads a list of lines in the form of [x1y1z1x2y2z2]... and then draws them all each render.  So just by editing this, you could get any shape.

Also, perspective 3d is not much more cpu intensive than ortho, it only requires one extra division per z-coordinate.
Title: Re: SIr's 3d program
Post by: LincolnB on October 31, 2011, 10:23:25 am
Hey, kind of a necropost, but I was thinking, with Jacobly's new Floating Point math axiom, this might be able to convert to Axe.
Title: Re: SIr's 3d program
Post by: aeTIos on October 31, 2011, 10:26:23 am
But same speed.
Title: Re: SIr's 3d program
Post by: DJ Omnimaga on October 31, 2011, 04:33:24 pm
It could definitively be a good project, although since floating points are slow, I wonder if the speed increase from BASIC to Axe will be signifiant at all, if there's even a speed increase althogether?
Title: Re: SIr's 3d program
Post by: ben_g on October 31, 2011, 05:18:14 pm
with 8.8 fixed-point, it's possible to do perspective projection is possible, and doesn't axe supports that?
Fixed-point should be a lot faster than floating point, and might make it fast enough for use in games.
Title: Re: SIr's 3d program
Post by: LincolnB on October 31, 2011, 07:19:51 pm
Right, you could use fixed point as well...