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

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

0 Members and 1 Guest are viewing this topic.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #150 on: July 11, 2013, 09:40:37 am »
A litlle screenshot to show the backface culing thing. Note that a lot of lines can be remove, I currently work on this.  :P
Vertex isn't process if face is remove.

It's currently run at +-31 fps, but I hope gain more speed.



That looks fantastic! :) Very nice work there!

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 #151 on: July 12, 2013, 07:16:24 am »
MEGA UPDATE OF THE DEATH !!!!    :P

I splited the librairy in two part, mostly to decrease the total program weight
GCORE : the main lib, contains most of basic 3d function
GPOLY : the polygons handling lib

I simply rewamped all the librairy. Polygons gestion is now a LOT better, as well as 3d processing.

A lot of things is planed :
A GOBJCT lib, to have an object gestion
GPORTAL lib : portal rendering !
some new function in the GPOLY lib...

I you have any problem, just ask me.

In the zip, you can find:
prgmGCORE and prgmGPOLY, the lib
prgmGEXAMPLE : GPOLY lib example
prgmGCUBE : GCORE lib example

compile with  axe 1.2.1a !

Last thing to say : I have not fully tested all the commands, so there can still bugs.
MAKE SURE TO BACKUP ALL YOUR DATA BEFORE USING GLIB !
« Last Edit: July 12, 2013, 09:18:23 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 pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #152 on: July 12, 2013, 09:14:32 am »
Epic! You got my download!
I am Bach.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: GLIB a graphics axe 3d librairy
« Reply #153 on: July 13, 2013, 04:16:18 am »
Can you draw stretched sprites in 3d space that always face the player and optimize those routines so they aren't just transformed walls with textures on them? Might make the overall experience smoother.
If you like my work: why not 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 #154 on: July 14, 2013, 01:04:54 pm »
Yeah that could work. I don't know if this will be faster, though  :P . I think I will give it a try
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 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 #155 on: July 14, 2013, 06:20:09 pm »
Hopefully Keoni's suggestion could help. That's how sprites are in DOOM (and even some Nintendo 64 games, such as trees in Super Mario 64) and it doesn't remove much from the game experience, especially at lower resolutions where it isn't as noticeable.
« Last Edit: July 14, 2013, 06:20:36 pm by DJ Omnimaga »

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #156 on: July 14, 2013, 10:49:27 pm »
Well it should be pretty straight forward, just 1 point for a sprite and then the actual scaled sprite routine itself.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: GLIB a graphics axe 3d librairy
« Reply #157 on: July 15, 2013, 05:39:23 am »
Indeed. You save 3 vertices per sprite if you do it this way instead of using textures on a wall that's facing the player. It also saves you some calculations regarding the translation of the wall in order to appear orthogonal to the player's view direction.
If you like my work: why not 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 #158 on: July 24, 2013, 10:09:41 am »
Just a little post to tell you my progress.

I have currently a basic light engine which work fine (It a little slow, however ) , and I start the portal things  :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 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 #159 on: July 24, 2013, 08:55:08 pm »
Do you mean stuff like dynamic lightning depending of your viewing angle or walls being darker when opposed to the sun??

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #160 on: July 24, 2013, 10:14:46 pm »
A bi-product of backface culling code can be utilised for simple lighting effects, if thats what he is getting at?
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


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 #161 on: July 28, 2013, 08:47:58 am »
I dynamic light depending of the view point, and I reuse part of backface culling
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 nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #162 on: September 09, 2013, 02:45:26 pm »
the machine had make this with his librairy :
« Last Edit: September 09, 2013, 04:17:12 pm by nikitouzz »
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

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 #163 on: September 09, 2013, 03:02:20 pm »
It's not an axiom, it's an Axe library.

Apart from that, OMGWTFLOLBBQ O.O O.O O.O O.O O.O

Seeing the speed, I think this is 15 MHz ... Because a single textured face was around 6 FPS at 6 MHz.

Either way, I have to create a new word to describe the level of awesomeness of this.

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 #164 on: September 09, 2013, 03:33:26 pm »
wow, that is.....FREAKING AWESOME O.O :crazy:

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