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

kotu

Quote from: TheMachine02 on November 19, 2016, 10:25:01 AM
Quote from: p2 on November 18, 2016, 10:47:19 PM
can you give us a demo for an oversimplyfied model? like a low-poly fox with only 16x16 tiles or something like that? :) Just so we get an idea of the speed :)

Of course  :) Have a demo with 3 ennemies of starfox64, the timer is time in ms per frame.



looks amazing but that timer doesn't look like it's being updated 20 times per second :p

did you cheat? lol
like it

*edit*
im being forced to admit it probably is 20 fps
  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

TheMachine02

Yeah, in fact it alternate between 20 & 15 fps due to vertical synchronisation. The timer doesn't change when the frame change though, and that is quite logical  :P (I get the precise TStates count with general purpose timer)

TheMachine02

Finally a more real life screenshot !



I must say that for an unoptimized state, it run quite well  :P There is also bug in the clipping & texture (due to atlasing), but that should be easy to fix.

p2

omg omg omg O.O
that sooo much makes me want to create indoor-games like horror mazes and c like that :love:
the speed s pretty impressive.
How far does the actual size affect the framerate? Given there's always the same amount or polygons visible but you're in a labyrinth 10 times the size, how big do you think would the slowdown be? :)
edit: have you tried overlapping the polygons just a liiiiittle bit to prevent the white lines? ;)
  • 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 12, 2016, 08:29:26 PM
How far does the actual size affect the framerate? Given there's always the same amount or polygons visible but you're in a labyrinth 10 times the size, how big do you think would the slowdown be? :)

Mmmmhhh not sure what you meant there, but the more thing you render (even tiny tiny tiny triangle) the more the engine start to choke  :P I think that a room based render could work quite flawlessly.

Quote from: p2 on December 12, 2016, 08:29:26 PM
edit: have you tried overlapping the polygons just a liiiiittle bit to prevent the white lines? ;)

Yes, but the issue is that it is quite painful to do by hand  <_<

Dream of Omnimaga

Wow, you really got rooms to work?? O.O I think this (with different textures) would be enough for an Illusiat 3D port.  Anyway this looks amazing and the speed is impressive considering the platforms limitation. As for the white artifacts, is it possible to choose their colors so that they can be the same as most textures?
  • 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

p2

what I ment was the following:
Imagine a HUUGE underground facility: 100 rooms and stuff, but all super simple like just 4 walls and 1 table.
at any moment there would be only very little visible (1 room) but there would be lots of map data in background.
How much would be the slowdown from that additional (cirrently not visible) map data? (all the stuff that's hidden behind the walls) :)
  • 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

It depends from how the game engine run, and game engine isn't handled by gLib  :P You could just throw everything to render but I am pretty sure it wouldn't be pretty. You could however does a simple room system with : render current room, render adjacent room, and then it would just run super well  :P

As for white artefact, it is hard to supress them & nah I can't change their color. Texture setup need an upgrade  :)

p4nix

Quote from: p2 on December 13, 2016, 08:35:40 AM
what I ment was the following:
Imagine a HUUGE underground facility: 100 rooms and stuff, but all super simple like just 4 walls and 1 table.
at any moment there would be only very little visible (1 room) but there would be lots of map data in background.
How much would be the slowdown from that additional (cirrently not visible) map data? (all the stuff that's hidden behind the walls) :)
That concept would, as @TheMachine02 said, only require you to have one room at any time loaded. Imagine it just like Minecraft, where the world is split into chunks - you can't have the whole world in RAM, but the part of the world you want to show.
  • Calculators owned: fx9860GII (SH4)

Dream of Omnimaga

For collision detection, can't you just make sure that the floor is always flat and do collision like if you did it in 2D, even if that requires using a separate tilemap data ? It wouldn't be ideal but maybe that might be fast enough
  • 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

#415
Yeah, it can work indeed. At least if everything is aligned, but that's no fun  :P

EDIT : btw I saw you didn't had all the last screen.








p2

that landscape in different color settings looks awesome O.O
also I really REALLY love the others O.O
but still, someone stole half of your door :trollface:
  • 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)

Dream of Omnimaga

Wow, that landscape changing colors and the subway looks great. :D
  • 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


p2

I really like it how the missing shadows plus high color contrasts give it its own atmophere ^.^
also is that dark blue thing supposed to be a tube or a hallway or something like that...?

maybe you could add a light texture to the lamps? :)
  • 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)

Powered by EzPortal