Page 1 of 1

Free GL Engine

Posted: Tue Dec 14, 2004 8:23 pm
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 ;)

Posted: Tue Dec 14, 2004 8:42 pm
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.. :?

Posted: Fri Dec 17, 2004 10:11 pm
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

Posted: Fri Dec 17, 2004 11:30 pm
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.

Posted: Tue Dec 21, 2004 5:41 am
by Axeman
There are some good samples in the download.

Re: Free GL Engine

Posted: Tue Dec 21, 2004 7:50 pm
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 :(

Posted: Tue Dec 21, 2004 11:53 pm
by Paul
Tweeked the include file a bit and converted a few more of the example files.
Update available at link above :)

Posted: Wed Dec 22, 2004 5:32 am
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...

Posted: Wed Dec 22, 2004 10:30 am
by benny
Nice work, Paul - Thanks :!:

Posted: Wed Dec 22, 2004 6:17 pm
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)

Posted: Thu Dec 30, 2004 11:29 am
by dagcrack
This engine will be the next hit! remember what im saying :)
OGRE down!!!

Posted: Thu Dec 30, 2004 12:22 pm
by dagcrack
Can you provide us with the bb to pb convertor? doing all this by hand is extremly nasty! :x

Posted: Thu Dec 30, 2004 12:33 pm
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.

Posted: Thu Dec 30, 2004 3:55 pm
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 ;)

Posted: Thu Dec 30, 2004 7:52 pm
by dagcrack
I know them.. anyway next version wont be free for what I know.