really? You have the glWrapperlibraryTronDoc wrote:I get that error too on 5.pb line 84:and I do have the wrapper installed...gluPespective__(...) is not a function, an array or a linked list.
the other examples seem to work
...thanks for the description lines!
Joe
PureBasic + OpenGL Tutorialpage
-
DarkDragon
- Addict

- Posts: 2347
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
-
DarkDragon
- Addict

- Posts: 2347
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
-
DarkDragon
- Addict

- Posts: 2347
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
-
DarkDragon
- Addict

- Posts: 2347
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
-
DarkDragon
- Addict

- Posts: 2347
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
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)
-
coderchris
- New User

- Posts: 5
- Joined: Sun May 23, 2004 11:06 pm
-
DarkDragon
- Addict

- Posts: 2347
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
-
DarkDragon
- Addict

- Posts: 2347
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
You don't have the gl wrapper of traumatic installedTronDoc wrote:I get that error too on 5.pb line 84:and I do have the wrapper installed...gluPespective__(...) is not a function, an array or a linked list.
the other examples seem to work
...thanks for the description lines!
Joe
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)
EndProcedureWhat 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.DO you follow your tutorial ?
bye,
Daniel
Daniel

