PureBasic + OpenGL Tutorialpage

For everything that's not in any way related to PureBasic. General chat etc...
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

TronDoc wrote:I get that error too on 5.pb line 84:
gluPespective__(...) is not a function, an array or a linked list.
and I do have the wrapper installed...
the other examples seem to work
...thanks for the description lines!
Joe
really? You have the glWrapperlibrary
TronDoc
Enthusiast
Enthusiast
Posts: 310
Joined: Wed Apr 30, 2003 3:50 am
Location: 3DoorsDown

Post by TronDoc »

DarkDragon wrote:really? You have the glWrapperlibrary
really!
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Hmm ... Your website do not work at all. I says "Can't found the server"
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Uhm, coma has the same problem. And I have a white page, when I go to the resourcesite or to the pureprojectpage. :?:
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Really strange.. Could you put your website on another web server ? Well if it is not too much :)
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

it works, thanks !
BTW, your tuts are great !
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Yeah, a new Tutorial: "How can I load an object from an *.asc file"
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

What can I say ?
Continue ! Your code is great !
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Now there is the 9th tutorial: Particle effects. Download the glwrapper-library(PureArea) and my new PBOGL library(http://mitglied.lycos.de/dani008/downloads/pbogl.zip)
User Mike
User
User
Posts: 68
Joined: Mon Jan 26, 2004 7:06 pm

Post by User Mike »

Excellent Dragon.

Please keep these tutorial coming. You have no idea how much they help me. For the only things I know about OpenGL are what you've taught me.
(Yes, I'm being serious)

Keep up the excellent work.

:)
-Pure Basic User and loving it!-
coderchris
New User
New User
Posts: 5
Joined: Sun May 23, 2004 11:06 pm

Post by coderchris »

Wow, these are very good. Would you consider making a reflection tutorial? :D
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Uhm I didn't made anything with reflection in OpenGL. :oops:

But here is the next Tutorial: 10. NURBS-Terrain
bye,
Daniel
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

DO you follow your tutorial ?
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

TronDoc wrote:I get that error too on 5.pb line 84:
gluPespective__(...) is not a function, an array or a linked list.
and I do have the wrapper installed...
the other examples seem to work
...thanks for the description lines!
Joe
You don't have the gl wrapper of traumatic installed ;)
But you can use this:

Code: Select all

Procedure glFrustum(Left.f, Right.f, Bottom.f, Top.f, Near.f, Far.f)
  Dim Frustum_Matrix.f(3, 3)
  Frustum_Matrix(0, 0) = (2.0 * Near)/(Right-Left)
  Frustum_Matrix(1, 1) = (2.0 * Near)/(Top-Bottom)
  Frustum_Matrix(2, 0) = (Right+Left)/(Right-Left)
  Frustum_Matrix(2, 1) = (Top+Bottom)/(Top-Bottom)
  Frustum_Matrix(2, 2) = -1.0 * ((Far+Near)/(Far-Near))
  Frustum_Matrix(3, 2) = -1.0 * ((2.0*Far*Near)/(Far-Near))
  Frustum_Matrix(2, 3) = -1.0
  glMultMatrixf_(@Frustum_Matrix(0, 0))
EndProcedure

Procedure gluPerspective(Fov.f, Ratio.f, Near.f, Far.f)
  L_Dummy.f
  Fov = (Fov/180)*3.14159
  DefType.f Left, Right, Top, Bottom
  L_Dummy = Tan(Fov*0.5)
  L_Dummy * Near
  Top = L_Dummy
  Bottom = -L_Dummy
  Left = Bottom * Ratio
  Right = Top * Ratio
  glFrustum(Left, Right, Bottom, Top, Near, Far)
EndProcedure
DO you follow your tutorial ?
What do you mean? I don't work on it anymore, but nicolaus does maybe. I am working on my other project, but those tutorials are a bit buggy and just help to get into opengl.
bye,
Daniel
Post Reply