Free GL Engine

Advanced game related topics
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Free GL Engine

Post by Num3 »

Surfing on another programming language site i've found this nifty GL engine...

Seem's pretty cool, examples are all in b-li-tz basic.

Check it out:

http://www.ag-tools.com/

I've already exported all 915! functions with a beta tool i'm working on called DLL Exporter.

Here's a small preview of the output file:

Code: Select all

; DLL Exporter 1.0
; /-/-/-/-/-/-/-/-/-/-/-/-/

; DLL Name Functions : BasicGL.dll
; Number of Exported Functions : 915

#BasicGL_EXP = 0


Procedure Init_BasicGL()
  If OpenLibrary(#BasicGL_EXP,"BasicGL.dll")
    ProcedureReturn #True
  Else
    ProcedureReturn #False
  EndIf
EndProcedure

Procedure Stop_BasicGL()
  If CloseLibrary(#BasicGL_EXP)
    ProcedureReturn #True
  Else
    ProcedureReturn #False
  EndIf
EndProcedure

; /-/-/-/-/-/-/ Procedures /-/-/-/-/-/-/
Procedure g3DTextAllowedDeviation(//EDIT//)
  ProcedureReturn CallFunction(#BasicGL_EXP,"g3DTextAllowedDeviation", //EDIT//)
EndProcedure

Procedure g3DTextAspectRatio(//EDIT//)
  ProcedureReturn CallFunction(#BasicGL_EXP,"g3DTextAspectRatio", //EDIT//)
EndProcedure

Procedure g3DTextExtrusion(//EDIT//)
  ProcedureReturn CallFunction(#BasicGL_EXP,"g3DTextExtrusion", //EDIT//)
EndProcedure

Procedure g3DTextFont(//EDIT//)
  ProcedureReturn CallFunction(#BasicGL_EXP,"g3DTextFont", //EDIT//)
EndProcedure

Procedure g3DTextGetHeight(//EDIT//)
  ProcedureReturn CallFunction(#BasicGL_EXP,"g3DTextGetHeight", //EDIT//)
EndProcedure

Procedure g3DTextGetWidth(//EDIT//)
  ProcedureReturn CallFunction(#BasicGL_EXP,"g3DTextGetWidth", //EDIT//)
EndProcedure

Procedure g3DTextHeight(//EDIT//)
  ProcedureReturn CallFunction(#BasicGL_EXP,"g3DTextHeight", //EDIT//)
EndProcedure

Procedure g3DTextOblique(//EDIT//)
  ProcedureReturn CallFunction(#BasicGL_EXP,"g3DTextOblique", //EDIT//)
EndProcedure

Procedure g3DTextRange(//EDIT//)
  ProcedureReturn CallFunction(#BasicGL_EXP,"g3DTextRange", //EDIT//)
EndProcedure

Procedure gActivateBass(//EDIT//)
  ProcedureReturn CallFunction(#BasicGL_EXP,"gActivateBass", //EDIT//)
EndProcedure

Procedure gActivateFMod(//EDIT//)
His anyone up to convert this baby to PureBasic !?
I can supply the pre-converted file ;)
olejr
Enthusiast
Enthusiast
Posts: 152
Joined: Sun Jul 11, 2004 7:48 pm
Location: Lillehammer, No(r)way
Contact:

Post by olejr »

So far it's free, yes..
I took a look at their forum, and from v0.4 it's going to cost...

But you can take a look/download the original source!
It's based on GLScene.. http://glscene.sourceforge.net/index.php
And that one is free.. And Delphi.. :?
BasicGuy
User
User
Posts: 70
Joined: Sat Apr 26, 2003 4:37 am
Location: US

Post by BasicGuy »

I've been playing with the 0.34 version under B3D and it's extremely fast, and very well thought out. The docs are sketchy but the BasicGL guys are catching them up quickly.

Here's a thread:
http://69.57.156.30/~agtools/forum/viewtopic.php?t=3
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

I am just curious ... are there any executables to show some
effects and demonstration of the engine.

I had a look in the demo section of the official homepage - but there is only
one example called "island" which I cannot download.
regards,
benny!
-
pe0ple ar3 str4nge!!!
Axeman
User
User
Posts: 99
Joined: Mon Nov 03, 2003 5:34 am

Post by Axeman »

There are some good samples in the download.
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1286
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: Free GL Engine

Post by Paul »

His anyone up to convert this baby to PureBasic !?
I can supply the pre-converted file ;)
Sure... download here, I made a quick app to convert the decls file myself:
http://www.pureproject.net/files/BasicGL_PB.zip

Since BB code is so similar to PB, the sample file is almost line for line.
The "Sample Render.pb" is a convertion of the "Primatives.bb" file out of the "Primatives" folder.


ps. You forgot to mention that the DLL puts a watermark in the bottom right corner :(
Last edited by Paul on Wed Dec 22, 2004 6:18 pm, edited 1 time in total.
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1286
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

Tweeked the include file a bit and converted a few more of the example files.
Update available at link above :)
BasicGuy
User
User
Posts: 70
Joined: Sat Apr 26, 2003 4:37 am
Location: US

Post by BasicGuy »

You forgot to mention that the DLL puts a watermark in the bottom right corner
Well, it's going to retail in the future so I guess they wanted some control...
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

Nice work, Paul - Thanks :!:
regards,
benny!
-
pe0ple ar3 str4nge!!!
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1286
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

I converted a bunch more of the sample files. One thing I noticed is that the text commands seems to render only numbers and symbols. Any alpha characters are ignored. Very strange.

Download BasicGL Samples (click here)
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

This engine will be the next hit! remember what im saying :)
OGRE down!!!
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

Can you provide us with the bb to pb convertor? doing all this by hand is extremly nasty! :x
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

damn... converted the bump example (included the media also) and the refresh of the light is ugly, I tryed to programm that part again but its still not smooth.. in bb its extremely smooth.
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1286
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

I talked to the makers of this engine and they said a new version was coming that fixes a number of issues that I have encountered while using with PureBasic.

Time will tell ;)
Image Image
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

I know them.. anyway next version wont be free for what I know.
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
Post Reply