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.

TheMachine02

#30
It is indeed better, but the gGenVtxArray(0) will create a blank line... wich is bad  :P

EDIT:Not so bad in fact, due to the presence of a store right after it.... dunno.

Snektron

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


TheMachine02

#32
I may also use gGenVAO() and gVAOAttrib(), wich is close to what the function do in fact. Arr is a bad idea due to a line created with "->A"

EDIT : finally using gGenVAO and gVertexAttrib seems fine, I'll stick with these for the moment.

CKH4

Is the tutorial going to be updated? And is the development version of axe 1.2.2?
  • Calculators owned: TI-83+, TI-84+


Dream of Omnimaga

I like the command name ideas personally :) (the last one, that is)

Also I'm glad this project is still alive. :)
  • 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

This project is always alive  :P
Anyway, I started to do a big update, with lot of change.... that's mainly why I didn't really update tuto. I find current pipeline ins't really well adapted for game rendering/low memory and that there is too much bottlenecks....
Problem is that there will be commands changes  :-\

Snektron

Better finish the update before updating the tut though
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

I agree. Hopefully you also won't run into too many issues during the update. >.<

How much RAM does the engine use for a small map?
  • 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

You have no idea on how this update is difficult XD

gLib will use approximatly 2500 bytes of RAM, and it is a fixed size, plus 256 bytes per added vertex attrib.
One good thing is I can render 1024 vertex or more with only this size of RAM (Previous VBO would have needed 16384 bytes...) , if code is well organized (different vertex array array are rendered sequentially, wich is pretty much good for portal rendering or such).
The only minus is that a standard cube will still need these 2500 bytes ... wich can be a bit too much, but I doubt the use of gLib will stick to a cube anyway  ;D

Dream of Omnimaga

Ahh not bad then. I thought it used like 20 KB of RAM or something, if not more. If only TI had gotten their act up together earlier. The TI-83PCE and 84+CE both have 150 KB of RAM. A 83+ or 84+ with this much RAM would have been epic. And I see. I guess it's fine if the size is fixed, because after all, most people who make games will probably tell users in the readme that they need at least a certain amount of free RAM.
  • 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

Duke "Tape" Eiyeron

It's a very good thing you get around size problems, we could end with a decent looking project on calcs! :D
  • Calculators owned: A lot.

Snektron

Im actually interesting in how far this project resembles OpenGL. I mean, is it easier to learn this if you know some
of the OpenGLES2 pipeline?
Also i think you can violate $4000 - $7FFF (the app space) so thats another 16k ram free
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


TheMachine02

Knowing openGL definitly helps in understanding the lib. Some element are openGL based, other not, but at least it has some standard 3d rendering stuff. Also one nice thing with the update is that gLib will be also an asm lib in same time being a axiom  :P One file to rules them all
* TheMachine02 runs

Snektron

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


Dream of Omnimaga

By being an ASM lib, does it mean it will also be useable by hybrid BASIC programmers?
  • 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