Alternatively, join us on Discord.
You can help CodeWalrus stay online by donating here.

[gLib][3d][z80][ez80] gLib a fast 3D asm/axiom library

Started by TheMachine02, January 19, 2015, 05:10:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TheMachine02

April 17, 2017, 04:46:38 PM #465 Last Edit: April 17, 2017, 04:51:06 PM by TheMachine02
Well I don't have a 80 tris model in my hand right now and I have a old and buggy (and pretty much unoptimized) glib version on this computer; but :



212 tris, 155 verts. I would expect a minimum 30% speed boost against the current code I have.

EDIT : take a look at this screen, though :



Nearly 1400 tris, 1000 verts. And it run at about 280ms/frame. Given that rendering time scale quite well number of tris and vertex, I *think* 80 poly model should run under 40ms.

tr1p1ea

Amazingly impressive, the speed is awesome!

What would you say is your favourite speed optimisation so far?

c4ooo


TheMachine02

I think the code I am most proud of is the vertex shader which is quite efficient and especially the perspective divide,  who doesnt even use a true division. It is about 2500 cycles max per vertex.

DJ Omnimaga

Quote from: TheMachine02 on April 17, 2017, 04:46:38 PM
Well I don't have a 80 tris model in my hand right now and I have a old and buggy (and pretty much unoptimized) glib version on this computer; but :



212 tris, 155 verts. I would expect a minimum 30% speed boost against the current code I have.

EDIT : take a look at this screen, though :



Nearly 1400 tris, 1000 verts. And it run at about 280ms/frame. Given that rendering time scale quite well number of tris and vertex, I *think* 80 poly model should run under 40ms.
That is awesome. With reduced poly count, we could definitively have a full game running at acceptable FPS. 8 FPS for a 3D calc game would definitively be good.
  • Calculators owned: TI-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite

TheMachine02

It should indeed. Well as long as framerate is somewhere between 6 to 10 fps it feel responsive enough. Still more polygons would be welcome  :P
* TheMachine02 returns optimizing

TheMachine02

Implemented per vertex lightning, so I have an almost rock solid vertex shader now  :P I also have a key transparency for texture set.




DJ Omnimaga

This is just getting better and better O.O
  • Calculators owned: TI-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite

p2

were the second model's wings ment to be hidden when shown  from behind...?  ;)

looks great as always, nice job!  :thumbsup:
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

TheMachine02

Wings is just an effect of backface culling. So yeah not a bug just model issue.

tr1p1ea


Lionel Debroux

It had been a while since I read this topic. That's fantastic work, as usual :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TIEmu and TILP.
Co-admin of TI-Planet.

TheMachine02

It isn't dead !


(London, the whole level 4 of tomb raider. ~3500 triangles and 2000 vertices)

Don't look at the lightning, it is broken  :P

Seriously optimizing is taking most of my time now, and it is ... like .. you know hard  :P

tr1p1ea


DJ Omnimaga

Looks good ^^

I wonder how would a small portion of Mario 64's castle (the first room) render and look like? :p
  • Calculators owned: TI-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite

Powered by EzPortal