CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: tr1p1ea on May 03, 2016, 03:08:20 AM

Title: solidFRAME - a 3D engine for the z80/ez80 calcs [ti-83+][ti-84+ce]
Post by: tr1p1ea on May 03, 2016, 03:08:20 AM
Over the past few years I have been developing a 3D engine for the z80 line of calcs with the aim of creating a Star Wars inspired space sim. Although that never happened I did release a 3D model viewer which can be found here: http://www.ticalc.org/archives/files/fileinfo/450/45097.html

Some test screenshots:
(http://tr1p1ea.net/files/downloads/screenshots/sframe/polytest11.gif)
(http://tr1p1ea.net/files/downloads/screenshots/sframe/polytest34.gif)
(http://tr1p1ea.net/files/downloads/screenshots/sframe/polytest46.gif)
(http://tr1p1ea.net/files/downloads/screenshots/sframe/polytest50.gif)

I haven't touched it in a while and although I did port it to the CSE as a VERY quick test (https://www.youtube.com/watch?v=S1APe0-eGb8) it never went anywhere so I thought that I would bring it to the CE given the increase in power that the platform has. At this point in time there are only a couple of test screenshots:

(http://tr1p1ea.net/files/downloads/screenshots/sframe/polytestce0.gif)
(http://tr1p1ea.net/files/downloads/screenshots/sframe/polytestce2.gif)

With the Star Wars craze still going I was thinking about picking up where I left off regarding the space sim, though anything of that calibre would be a while off.
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs
Post by: Dream of Omnimaga on May 03, 2016, 03:32:33 AM
I remember that monochrome X-Wing demo. It was very cool. Also those speeds are impressive on the CE :O, especially with how good Link looks like. I really wish this could become a game one day. :)
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs
Post by: Lionel Debroux on May 03, 2016, 05:31:20 AM
Yeah, it looked nice for the monochrome TI-Z80, and it looks pretty nice for the TI-eZ80 series :)
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs [ti-83+][ti-84+ce]
Post by: tr1p1ea on May 05, 2016, 01:33:37 PM
Ok can't believe I havent tried this sooner!

Very crappy walrii model that I made in 30mins! But still, it's a start :).

(http://tr1p1ea.net/files/downloads/screenshots/sframe/walriice0.gif)
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs [ti-83+][ti-84+ce]
Post by: Snektron on May 05, 2016, 01:46:20 PM
Very cool :o. Does that walrii have an "official" model format or is it something you made up?
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs [ti-83+][ti-84+ce]
Post by: tr1p1ea on May 05, 2016, 01:58:14 PM
Yeah its just a wavefront obj file created in blender, people please feel free to create an alternative (i neglected to save this one) ... cause it could use some improvements! (Just a test).

The restriction is that it cant have more than 256 faces or verts.
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs
Post by: Dream of Omnimaga on May 05, 2016, 03:45:00 PM
Woah that is cool tr1p1ea O.O . You should redo it and post the model data so it can be re-used and maybe enhanced for certain platforms. :)
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs
Post by: alexgt on May 05, 2016, 04:49:24 PM
Wow nice, that looks really nice! I how do you make it with so few verts?
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs [ti-83+][ti-84+ce]
Post by: tr1p1ea on May 05, 2016, 10:15:54 PM
I'll have to spend some time creating an actual proper 3D walrii model, this was just a quick test before I went to be ... plus I haven't actually used blender in a long time! I'll def post the model if I get around to creating a new one.

Sometimes I make things in higher detail and use the decimate modifier to get things down to acceptable limits.

This model has 134 faces and 81 verts I think. It could be made with significantly less imo.
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs
Post by: Dream of Omnimaga on May 05, 2016, 11:18:55 PM
When ready could you post the blenderdata? I wonder if I
Could convert it to HP PPL format...
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs [ti-83+][ti-84+ce]
Post by: tr1p1ea on May 06, 2016, 12:06:25 AM
I neglected to keep the actual model shown, but it only took me 30 or so mins. Ill make another over the weekend that hopefully is a bit better.
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs [ti-83+][ti-84+ce]
Post by: catastropher on May 06, 2016, 01:07:19 AM
Awesome job! Can you send the walrii model my way when you're done? I'd love to import it into my 3D engine! :D
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs
Post by: Dream of Omnimaga on May 06, 2016, 02:37:59 AM
Oh I would like to see a :walrii: in X3D for sure. :D With shading or different colors for some sides it would definitively be even better
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs [ti-83+][ti-84+ce]
Post by: c4ooo on May 06, 2016, 02:40:19 AM
Quote from: tr1p1ea on May 05, 2016, 01:33:37 PM
(http://tr1p1ea.net/files/downloads/screenshots/sframe/walriice0.gif)
Accept your walrii over lords!
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs
Post by: Max Leiter on May 06, 2016, 02:58:47 AM
Any plans to opensource the engine? Looks great :)
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs [ti-83+][ti-84+ce]
Post by: tr1p1ea on May 06, 2016, 11:47:11 AM
It will depend on how well I can get it to work on the calc (since it runs in z80 mode primarily) as there is still much to do. I do hope on releasing the source one day if it's good enough.

I also started a new walrii model with the render in blender and on calc:

(http://tr1p1ea.net/files/downloads/screenshots/sframe/walrii3dmodel0.png)
(http://tr1p1ea.net/files/downloads/screenshots/sframe/walriice1.gif)

This one has around half the triangles of the old one, but still needs some work.

The model is here if anyone wants to mess around. Note that I think there is some funny business going on with it, I accidentally ran a mirror modifier and am not sure if I managed to remove all of the duplication: http://tr1p1ea.net/files/downloads/screenshots/sframe/walrii.obj
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs
Post by: alexgt on May 06, 2016, 11:48:27 AM
Quote from: tr1p1ea on May 06, 2016, 11:47:11 AM
I also started a new walrii model with the render in blender and on calc
Wait you can make obj files on calc *.*
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs [ti-83+][ti-84+ce]
Post by: Snektron on May 06, 2016, 01:20:56 PM
Looks good :). Do you have a link to the mtl file too?
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs
Post by: Dream of Omnimaga on May 06, 2016, 03:46:47 PM
Darn, that looks cool. Would making the body rounder slow rendering down too much?
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs
Post by: alexgt on May 06, 2016, 05:23:45 PM
Quote from: DJ Omnimaga on May 06, 2016, 03:46:47 PM
Darn, that looks cool. Would making the body rounder slow rendering down too much?
Probably since it would have more vertices so it would have more to draw
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs [ti-83+][ti-84+ce]
Post by: TheMachine02 on June 20, 2016, 07:32:13 PM
I saw your last screenshot on http://tr1p1ea.net/files/downloads/screenshots/sframe/ and I defintily liked them ! Does more progress have been made ?
I was also wondering at which speed the chocobo model is running. By how many degree the model rotate each frame ?
Title: Re: solidFRAME - a 3D engine for the z80/ez80 calcs
Post by: Dream of Omnimaga on June 21, 2016, 05:03:55 AM
Yeah I am curious as well. That engine was pretty cool :D. Now imagine if tr1p1ea made a 3D Zelda clone O.O