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

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

0 Members and 1 Guest are viewing this topic.

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #30 on: January 22, 2013, 04:19:31 pm »
Gave it a test and it runs really nice so far!
"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 #31 on: January 24, 2013, 03:23:14 am »
thank you a lot !

by searching on net some algorithms to create illusion of sorted polygons, I found the usually z-buffer but it's seems that there is a lot better algorithms for speed : s-buffer (and it look like it's work with line of polygones, exactly the way I render them)
the problem is that I don't really understand how it's work (maybe my english level is too slow  ;D)

Yet, I think I found a good tuto :http://www.gamedev.net/page/resources/_/technical/graphics-programming-and-theory/s-buffer-faq-r668

so if anyone can help me ?
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 #32 on: January 24, 2013, 10:06:19 am »
Hey, what version of AXE do you use to compile this? I'm using 1.2.1a, and I'm getting black screens at different locations.
I am Bach.

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #33 on: January 24, 2013, 10:33:36 am »
Pretty impressive work so far TheMachine :D Looking forward to some more implementations of other textures and clipping

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #34 on: January 24, 2013, 03:20:14 pm »
Im not sure the calc has enough memory to constitute a z-buffer or s-buffer. The way i usually do it is to sort each polygon by average z-value if that helps.
"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 #35 on: January 25, 2013, 12:10:28 pm »
Hey, what version of AXE do you use to compile this? I'm using 1.2.1a, and I'm getting black screens at different locations.

it's axe 1.2.1a. That strange you have black screen (can I see a screenshot please ?)
(errr.... don't forget that the plolygones are render with black shapes...)

Im not sure the calc has enough memory to constitute a z-buffer or s-buffer. The way i usually do it is to sort each polygon by average z-value if that helps.
The big problems of this methode I haven't succed to create a fast sort routine ; and because I just can't sort it by the way I render things.
That's why I was looking for something else.
(and as I have understand of s-buffer, it's not taken so memory (but maybe I'm wrong))
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 #36 on: January 25, 2013, 02:32:40 pm »
This Happens when I turn right (just one triangle supposed to be on the screen):

A black bar appears randomly!
« Last Edit: January 25, 2013, 02:33:16 pm by pimathbrainiac »
I am Bach.

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #37 on: January 25, 2013, 05:32:11 pm »
That's all good, its just because he hasn't finished the clipping on the triangle routine yet.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


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 #38 on: January 25, 2013, 05:38:12 pm »
It happens when there is a quadrilateral, too
I am Bach.

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 #39 on: January 25, 2013, 06:22:54 pm »
Yeah, it seems to be a clipping issue as it only happens if you go off the screen.

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 #40 on: January 26, 2013, 12:20:26 pm »
yes ; it's just a clipping issue due to axe numbers.
I will try to fix this soon  ;D

A litlle update :
GREYSCALES and faces definitions (you can choose the color of the face !)

3 levels greyscales and I reduce the size from nearly 4000 bytes to 3000  :thumbsup:
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 #41 on: January 26, 2013, 01:46:52 pm »
yes ; it's just a clipping issue due to axe numbers.
I will try to fix this soon  ;D

A litlle update :
GREYSCALES and faces definitions (you can choose the color of the face !)

3 levels greyscales and I reduce the size from nearly 4000 bytes to 3000  :thumbsup:

Looking at the screenie, I see that the grayscale is a bit different when changed

I suggest using Pt-Change()r
I am Bach.

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: GLIB a graphics axe 3d librairy
« Reply #42 on: January 28, 2013, 05:09:21 pm »
Looking cool!
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


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 #43 on: January 28, 2013, 05:24:06 pm »
Wat, that is to awesome :P
Now make it work better also when moving >.<
JK, it's awesome :P

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 #44 on: February 23, 2013, 02:34:09 am »
Quote

You even have translucent walls?? O.O
« Last Edit: February 23, 2013, 02:34:23 am by DJ_O »