The shoutbox is currently out of service. Join us on Discord instead.

[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.

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
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 s*** 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? ;)
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  <_<

DJ 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?

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) :)
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.

DJ 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

TheMachine02

December 19, 2016, 05:40:22 pm #415 Last Edit: December 19, 2016, 05:42:51 pm by TheMachine02
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:
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)

DJ Omnimaga

Wow, that landscape changing colors and the subway looks great. :D


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? :)
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