Author Topic: Glib : a 3D graphics axe library  (Read 93407 times)

0 Members and 1 Guest are viewing this topic.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: GLIB a graphics axe 3d librairy
« Reply #330 on: February 24, 2014, 01:21:04 pm »
SLOOOOOOOOOOOOOOOOOOOOOOOOOOOOW *death metal*

So many checks. Also, if you modified GCore again I'm going to kill you.
« Last Edit: February 24, 2014, 01:21:56 pm by Matrefeytontias »

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #331 on: February 25, 2014, 05:36:00 am »
you know what ? GCORE won't be modified. I am talking about GPOLY lib and GCORE's function allows me to have such pipeline.

Also why are you telling it is slow ? There aren't many check. Even if I put in place a z-buffer, it will be only a 1536 bytes buffer, requiers only one check per 8 pixel (artifact may show up, but it mainly works great).  Stencil buffer is simply implemnted using a 8 bit and per 8 pxl.
Fragment shader could also implement this by there one.
This pipeline is not slowest than the previous I use - exept for the triangle routine. I've made test : it is slighty slower than "normal" (balck/white) filling - but faster then texturing and allow generating fragments.
Ok, one thing is kindy bothering me : slice shifting (like in pseudo slime I've made) will be much more difficult. But I can add an other special shader for it.
« Last Edit: February 25, 2014, 05:36:30 am by TheMachine02 »
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #332 on: March 02, 2014, 02:44:43 pm »
Sooooo... here my last result, and I am pretty proud of it. This a standard cube runing at almost 37fps  :crazy:

The max is 38.28 fps at some particular position  :P



More is coming soon ....
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: GLIB a graphics axe 3d librairy
« Reply #333 on: March 02, 2014, 02:51:36 pm »
Nice :thumbsup: having seen the source, I wonder where you find stuffs to optimize.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: GLIB a graphics axe 3d librairy
« Reply #334 on: March 02, 2014, 06:59:44 pm »
Ok, this is crazily fast O.O

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: GLIB a graphics axe 3d librairy
« Reply #335 on: March 07, 2014, 02:24:08 am »
Good job! :D

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #336 on: March 13, 2014, 05:09:16 am »
I have improved the vertex shader thing, so now it's allowing making a particule system only based on shader.
And a little screen  :D   (very simple : read random, particule system)
 
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: GLIB a graphics axe 3d librairy
« Reply #337 on: March 13, 2014, 09:40:33 am »
Wait, 3D flames? O.O

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #338 on: March 13, 2014, 02:17:01 pm »
that wasn't the main goal, but life timer and random mouvements have made it yeah  :P
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #339 on: March 13, 2014, 07:07:05 pm »
Both of the recent screenies have looked quite impressive. Great job! ;D

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #340 on: March 16, 2014, 08:07:25 am »
No eyes candies for the moment, but I've just run speed test.
 
Clock Speed : 6 MHz
VBO : No VBO active
 VERTICES     MAX      AVERAGE
1024 vertices   1.2 fps      1 fps
512 vertices     2.5 fps      2 fps
256 vertices     4.5 fps      4 fps
128 vertices     9 fps         8 fps
64 vertices       17 fps       15 fps
32 vertices       27 fps       25.5 fps
16 vertices       45.4 fps    41 fps
8 vertices         64 fps       60 fps
 
64 vertices are perfectly possible for real time  :P
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: GLIB a graphics axe 3d librairy
« Reply #341 on: March 16, 2014, 09:25:35 am »
It sounds good, but what is this test really based on? Is it only transforming vertices from world space to screen space or is it drawing stuff too?
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #342 on: March 16, 2014, 09:27:17 am »
Transforming the vertices and drawing 2*2 black square at the screen position.
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #343 on: March 16, 2014, 09:51:32 am »
What if you display 8 spinning cubes (filled)?

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #344 on: March 16, 2014, 10:15:04 am »
Filling still doesn't work great with my current update. I have to fix it  :P , and it always have been slooow.
However, if I display 8 standard cubes (wired), the speed is 7.4 fps (96 lines, 64 vertices)
 
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html