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

Dream of Omnimaga

How is the speed when no texture is being used other than solid colors?
  • 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

Well flat filling is much faster than texture like about x5. For very huge triangle there isnt many possibilities. I am limited by ldir throughput at 7ts per pixel. Hopefully there shouldnt be such big tri in typical scene.

tr1p1ea

Well just thinking about when objects are close to the camera is all.

p2

maybe the following will work (but might slow it down):
the edge of the camera angel (on the edge of what will be visible on the screen) add extra plains and calculate their collision lines with any object that's claser than XXXm to the "camera". Then only display the smaller field defined by those colission edges.
Buuut I guess you thoght about this months ago and thought it was a cty way to do stuff....
so just ignore it probably ^^
also can't wait to see a demo of one-colore models at full speed ;D
  • 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)

tr1p1ea

near plane clipping/culling is certainly an option, I guess it depends on the type of game/program is all.

TheMachine02

Yeah, clipping is already half supported in the engine. Sure it could work, but I guess programms will need to be tweaked on per-game base. Anyway, there is also a way to do 5TStates/pxl but amout of work in the outer inner loop would almost supress all the benefit. So 7TStates/pixel that is all  :P

Dream of Omnimaga

I really hope to see a mini game demo someday :)
  • 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

#397
Progress !





So yeah, clipping half-work now ! And ok, it is slow, but I am not finished yet  :P

EDIT : texture convert now support dithering & color boosting !


p2

that's amazing :D
How did you do the landscape? is it an sphere-like 3d-model itself? O.O
  • 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


p2

seriously: c that blue alien woman, she doesn't smile anyways. Just create a beautiful landscape and let the camera fly over it O.O
It looks amazing!! That would be more thn enough of a graphics demo ^.^

That warer... is the picture already a gradient? or is it real rendered with light and stuff?
  • 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

Quote from: p2 on December 07, 2016, 10:34:17 AM
It looks amazing!! That would be more thn enough of a graphics demo ^.^
That warer... is the picture already a gradient? or is it real rendered with light and stuff?

Thanks, and yeah, I planned a demo  :P
Anyway, no, there isn't any real time light here. It would be in really pasta fps if it was  :P It is only the texture which give this effect.

Dream of Omnimaga

That is just beautiful O.O. I wonder how fast it runs if you reduce the quality, such as the vertical and horizontal resolution of the background? And what if it's turned into a 2D scrolling bitmap?


I just tried the demo and noticed it comes with many files. Is there a list of controls available somewhere?
  • 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

Having a lower resolution on the background won't make things faster. However, turning it to a 2D bitmap would be a massive boost - but break thing when you look up or down. The method here is the conservative method - you can do what you want, it'll always look good.
All the file there is with the demo are all the texture file - I guess I could pack them, but well this is a demo, so I didn't do it  :P

Controls are just right and left key to rotate the model cause I never bothered to implement more  :P

Snektron

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


Powered by EzPortal