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 3 Guests are viewing this topic.

Snektron

  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Sorry to see you won't be around for the Summer, but if you can manage to see this before leaving, that last screenshot looks amazing. :D That slow frame rate means you need to remove some polygons or effects, though :P
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

TheMachine02

I leave tommorrow actually (yeah, I won one days with internet  :P )

I've fixed the color :



And yeah, this is definitly the max the engine can support. Anyway, this model is about 55K (1841 vertices / 3485 polygons) , so it is pretty much amazing the amount of works the ez80 can do before surrending :p According to my timers, this thing run at about ~3-4 fps. But blame z-sorting, this is what crash performance <_<

EDIT : I just though of a way to make sorting way faster. Maybe this will works or not, dunno, I will try (but you won't  most likely see the results before my return :p)

Dream of Omnimaga

That looks better, although there's a white spot on her. :P By 55K do you mean it's 55 KB large?

Hopefully you can get some public wi-fi access during your absence :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

TheMachine02

Yeah, it is 55Kb large  :P. In an appv hopefully, but still. The white spot is actually is the model and is correct, altough I agree, it look a bit strange. And yeah, will see if I will have wifi  <_<

Dream of Omnimaga

Lol, that's like 30% of the RAM O.O.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Ti64CLi++

Good.  ;)
It is possible to create an glib, but with an ide on-calc like mimas for ti 84+?
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire, TI-Nspire CAS TouchPad, TI-Nspire CAS, TI-Nspire, TI-Voyage 200, TI-92 Plus, TI-89 Titanium, TI-89, TI-83 Premium CE, TI-84 Plus CE, TI-82 Advanced, TI-84 Pocket.fr, TI-84 Plus Silver Edition, TI-84 Plus, TI-83 Plus Silver Edition, TI-83 Plus.fr USB, TI-83 Plus.fr, TI-83 Plus, TI-83 Plus, TI-83, TI-82 Stats.fr, TI-76.fr, TI-36X Pro, TI-Collège Plus Solaire, TI-Collège Plus, TI-30X Pro MultiView, TI-30XS MultiView, TI-30XB MultiView, TI-30 XB MultiView
Administrateur de Tout 82
Sur TI Planet depuis Août 2014, rédacteur depuis Août 2015Donnez moi un Internet : c'est gratuit et ne prends pas beaucoup de tempsAdministrateur de Life Game World

Dream of Omnimaga

There is no on-calc ASM editor for the TI-84 Plus CE sadly. Or do you mean like a new language with both gLib and an on-calc editor built-in?

Also welcome to CodeWalrus @neuronix :3=
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Ti64CLi++

@DJ Omnimaga thank you.
Is it possible to change my nickname to Ti64CLi++?
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire, TI-Nspire CAS TouchPad, TI-Nspire CAS, TI-Nspire, TI-Voyage 200, TI-92 Plus, TI-89 Titanium, TI-89, TI-83 Premium CE, TI-84 Plus CE, TI-82 Advanced, TI-84 Pocket.fr, TI-84 Plus Silver Edition, TI-84 Plus, TI-83 Plus Silver Edition, TI-83 Plus.fr USB, TI-83 Plus.fr, TI-83 Plus, TI-83 Plus, TI-83, TI-82 Stats.fr, TI-76.fr, TI-36X Pro, TI-Collège Plus Solaire, TI-Collège Plus, TI-30X Pro MultiView, TI-30XS MultiView, TI-30XB MultiView, TI-30 XB MultiView
Administrateur de Tout 82
Sur TI Planet depuis Août 2014, rédacteur depuis Août 2015Donnez moi un Internet : c'est gratuit et ne prends pas beaucoup de tempsAdministrateur de Life Game World

Dream of Omnimaga

I didn't know you were Ti64CLi++ until now. I thought you were two different person on TI-Planet. O.O

But I guess it would be a good move to avoid confusion on Planète-Casio, because Planète-Casio founder had the exact same nickname as you in 2005. :P But for a nick change you need to poke @Streetwalrus @aeTIos or @Juju
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

TheMachine02

-Activity report-10/07

First thing I've implemented is proper sorting (with the almost definitive algorithm), with a constant speed. That is, no more penality due to spacial locality if the list isn't almost sorted. It is slower than insertion sort for a static frame, but who want static things anyway ?
Performance wise, it is quite good. Less than 4,000,000 TStates for almost 3500 triangles. With a constant speed, it is even better than z-buffer :P It consume quite some memory, but I can use the framebuffer since the sorting occurs before the drawing and the clear.

Comparaison for lara model (3490 triangles,2566 vertices) (and yeah, it is an updated model) :

Insertion :                            New way :


Next stuff, I've updated a bit my model converter. New screeny :
-Dragon model:

-Low poly chocobo:

-New lara model:

I've also toyed a bit with FSAA (ie, full screen anti aliasing), using an internal render resolution of 320x240 downscaled to 160x120. Meh, 320x240 look better :P (Anyway, primary goal of this routine was to test my color blending routine, so it is good. And it allow great looking 160x120 screen)



Fullscreen:


Continuing with the antialiasing, I am currently seing if I can't implement it at low cost. It really look too good:



And some new renders :




And when I tell you FSAA give great 160x120 screen (for forum pic for example)


Screeny update the model by 30° rotation each frame.

Some bugs have been corrected, as always.

What is being currently implemented :
-cliping. I hate this, but I guess you knew it already :P
-some cool stuff, like quaternion slerp, more helper functions
-some high level routine for model handling
-some secret things obviously :walrii:

Seeing performance result, I wonder what will be possible with this library. Much more than with z80 obviously and colors help a lot too. About the compiled size, I am reaching 5K, but there is lot of useless code and cleaning will be necessary I guess. (Blame the sorting code, it is 453 bytes)

Also, it doesn't exist mimas compatible code of gLib, however, the axiom version 4.0.0 could be used as a base for an asm lib on mimas. There would be quite a lot of writing though, and you'll need to know basis of 3D to get something working. Can be done though, the source is on github is you want to see it. (don't take the 3.0.0 version, it is totally deprecated :P)

Anyway, I have failed one of my exams, so it is kinda paused for the moment

-EOF-

Dream of Omnimaga

Sorry to hear about the failed exams D:. Nice to see progress, though. Those nee screenshots look amazing! :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

ben_g

Quote from: TheMachine02 on July 12, 2016, 02:47:09 PM

You managed to render a lit 3500 triangle model at that speed? This lib is getting really amazing.

Dream of Omnimaga

Yeah, I can definitively see this used in a game with less details.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U


Powered by EzPortal