PDA

View Full Version : Openb3d for Freepascal



Cybermonkey
04-06-2013, 08:51 AM
Hi, I just ported the wrapper from FreeBASIC to Freepascal. You can download it here: http://openb3d.retrogamecoding.org/openb3dpas.zip
What's Openb3d? It is a library that allows easy access to 3d features of OpenGL, and quick game development and can be found on sf.net: http://sourceforge.net/projects/minib3d/ (here you can download the Windows DLL or the source to compile on Linux).
The interesting part is that the library is (almost) API compatible to Blitz3D.
Unfortunately Freepascal has no "native" graphical system like Freebasic, so you'll need to use SDL or GLUT or anything else which can open a OpenGL window (maybe TOpenGLControl works, too). I just tested SDL and (Free)GLUT so far.

1163

laggyluk
04-06-2013, 09:27 AM
nice, I'm looking for some library for handling 3d files. can it load models?

Cybermonkey
04-06-2013, 01:02 PM
Yes, so far as I know models in .3ds, .x and .b3d format. You can have a look at the tutorial here: http://jnoodle.com/Blitz3D/ (except 2d drawing and sound)

Darkhog
04-06-2013, 01:51 PM
Unfortunately Freepascal has now "native" graphical system like Freebasic, so you'll need to use SDL or GLUT or anything else which can open a OpenGL window (maybe TOpenGLControl works, too). I just tested SDL and (Free)GLUT so far.

I didn't know they removed Graph unit...

Cybermonkey
04-06-2013, 02:15 PM
Of course one needs an OpenGL context which the unit Graph can't deliever ...

panoramic
04-06-2013, 07:52 PM
Is it possible to port it to Delphi ?

Cybermonkey
04-06-2013, 08:19 PM
Is it possible to port it to Delphi ?
That might be possible but since I've got no Delphi installation someone else might want to do that.