* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: gLib a fast 3D asm/axiom library  (Read 32582 times)

0 Members and 1 Guest are viewing this topic.

Offline kotu

  • Walrus Dehumidifier
  • Super User
  • Join Date: Aug 2016
  • Location: Bristol, UK
  • Posts: 763
  • Post Rating Ratio: +5/-5
    • dj_kotu
    • @UCAy2ZF4hbc08iStnTn6jgxQ
    • rowanmedhurst
    • @djkotu
    • View Profile
    • futurerave.uk
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #405 on: December 11, 2016, 08:38:49 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

mexicans, yeah?

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 313
  • Post Rating Ratio: +13/-0
    • View Profile
Re: gLib a fast 3D asm/axiom library
« Reply #406 on: December 11, 2016, 08:53:30 pm »
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)

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 313
  • Post Rating Ratio: +13/-0
    • View Profile
Re: gLib a fast 3D asm/axiom library
« Reply #407 on: December 12, 2016, 08:11:25 pm »
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.

Offline p2

  • CodeWalrus Staff
  • Super User
  • Moderator
  • CodeWalrus Supporter
  • *
  • Join Date: Aug 2016
  • Location: Germany
  • Posts: 1870
  • Post Rating Ratio: +7/-0
  • *Wubba lubba dub dub*
    • KaliPhobos
    • View Profile
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #408 on: December 12, 2016, 08:29:26 pm »
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? ;)
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, 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)

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 313
  • Post Rating Ratio: +13/-0
    • View Profile
Re: gLib a fast 3D asm/axiom library
« Reply #409 on: December 12, 2016, 11:09:12 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.

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  <_<

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17434
  • Post Rating Ratio: +83/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #410 on: December 13, 2016, 03:28:41 am »
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-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX, HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline p2

  • CodeWalrus Staff
  • Super User
  • Moderator
  • CodeWalrus Supporter
  • *
  • Join Date: Aug 2016
  • Location: Germany
  • Posts: 1870
  • Post Rating Ratio: +7/-0
  • *Wubba lubba dub dub*
    • KaliPhobos
    • View Profile
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #411 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) :)
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, 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)

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 313
  • Post Rating Ratio: +13/-0
    • View Profile
Re: gLib a fast 3D asm/axiom library
« Reply #412 on: December 13, 2016, 02:32:03 pm »
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  :)

Offline p4nix

  • Full User
  • Join Date: Jun 2015
  • Location: Germany
  • Posts: 401
  • Post Rating Ratio: +6/-1
  • Don't catch the ball.
    • p4nix
    • View Profile
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #413 on: December 13, 2016, 03:35:30 pm »
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)

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17434
  • Post Rating Ratio: +83/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #414 on: December 19, 2016, 05:30:57 pm »
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-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX, HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 313
  • Post Rating Ratio: +13/-0
    • View Profile
Re: gLib a fast 3D asm/axiom library
« Reply #415 on: December 19, 2016, 05:40:22 pm »
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.







« Last Edit: December 19, 2016, 05:42:51 pm by TheMachine02 »

Offline p2

  • CodeWalrus Staff
  • Super User
  • Moderator
  • CodeWalrus Supporter
  • *
  • Join Date: Aug 2016
  • Location: Germany
  • Posts: 1870
  • Post Rating Ratio: +7/-0
  • *Wubba lubba dub dub*
    • KaliPhobos
    • View Profile
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #416 on: December 19, 2016, 07:31:31 pm »
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 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)

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17434
  • Post Rating Ratio: +83/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #417 on: December 20, 2016, 04:10:40 am »
Wow, that landscape changing colors and the subway looks great. :D
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX, HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 313
  • Post Rating Ratio: +13/-0
    • View Profile
Re: gLib a fast 3D asm/axiom library
« Reply #418 on: December 20, 2016, 02:02:46 pm »
Thanks guy  :D


Offline p2

  • CodeWalrus Staff
  • Super User
  • Moderator
  • CodeWalrus Supporter
  • *
  • Join Date: Aug 2016
  • Location: Germany
  • Posts: 1870
  • Post Rating Ratio: +7/-0
  • *Wubba lubba dub dub*
    • KaliPhobos
    • View Profile
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #419 on: December 20, 2016, 02:14:50 pm »
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 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)

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games