• Glib : a 3D graphics axe library 5 1
Currently:  

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

0 Members and 1 Guest are viewing this topic.

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 #240 on: November 26, 2013, 03:31:20 pm »
Wow, that is pretty awesome for 6MHZ O.O

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

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #241 on: November 26, 2013, 03:43:48 pm »
Eyup.
/Big Macintosh mode

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: GLIB a graphics axe 3d librairy
« Reply #242 on: November 26, 2013, 03:44:31 pm »
Eiyo*

You are nonstop stunning me guys! It's for when the new demo?

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 #243 on: November 27, 2013, 10:44:38 am »
Eiyo*

You are nonstop stunning me guys! It's for when the new demo?

Well, I don't really know. I am actually working on polygon Library, maybe I will try to do a demo after  :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 TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #244 on: December 09, 2013, 06:39:22 am »
some test with the pxl and the geometry shader.
The first screen, I only pass one primitive (only one quad) as argument, the shader create a new piece of geometry from the one already there.


+-20fps

this is th pxl shader test, a full cube (6 quad) and in each line a pxl who get randomly off.



+-4 fps

all is at 6MHz
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 #245 on: December 09, 2013, 08:04:31 am »
that is awesome O.O

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

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: GLIB a graphics axe 3d librairy
« Reply #246 on: December 09, 2013, 11:24:12 am »
That is really cool, good work. +1
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

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 #247 on: December 09, 2013, 01:38:42 pm »
some test with the pxl and the geometry shader.
The first screen, I only pass one primitive (only one quad) as argument, the shader create a new piece of geometry from the one already there.


+-20fps
If you'd deform the reflection by a sine or such, you could make a water shader of this.
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 #248 on: December 10, 2013, 04:54:13 am »
If you'd deform the reflection by a sine or such, you could make a water shader of this.

Yes guess so. A shadow shader would not so hard to do too, though.
Anyway, I started play with the pixel shader in this area (distorsion), and here what I've got so far (yay pseudo vector slime !  :D )

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 #249 on: December 10, 2013, 06:22:09 am »
ok, that is looking awesome 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 #250 on: December 10, 2013, 02:25:39 pm »
Wow I love it! With a very large shape, does it slow things down a lot?

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 #251 on: December 11, 2013, 10:03:34 am »
there is very few speed loss, and even if the speed decrease more when a big shape is drawn, it's more because of the triangle routine than the pxlshader actually  :P
« Last Edit: December 11, 2013, 10:04:03 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 #252 on: December 13, 2013, 12:19:20 pm »
some progress in the lib  :D, however I can't upload anything due to how crappy the connexion is  <_<

anyway, I sightly modified the shader, made them more secure (this one is for you matref  :P ), and a bit more powerful.
what next :
-reimplement texture (16*16) and add some new function to handle them proprely + make them even more faster (by the way, I was wondering ben_g, do you think we can do only one division per triangle ? cause right now I do one division by scanline)
-an new lib, combaining some usefull shader.
-a proper  documentation

any suggestion ?
« Last Edit: December 13, 2013, 12:20:06 pm 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 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 #253 on: December 13, 2013, 12:29:10 pm »
(by the way, I was wondering ben_g, do you think we can do only one division per triangle ? cause right now I do one division by scanline)
I only did the divisions for the top 2 scanlines. The intervals that have to be added to the u and v coordinates are constant for every scanline (as long as you use affine texture mapping, instaed of persfective corrected texture mapping), so you can just re-use the results from them for every other scanline.
Oh, and the reason that I use the results from the 2nd scanline is that the first scanline is very short (often only 1 pixel), so the intervals calculated in it are often inaccurate.
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 #254 on: December 13, 2013, 12:30:59 pm »
well, I'll try implement this method  :P . The speed will be a lot better then.
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