PDA

View Full Version : 3D Engine for Windows and Linux



Srki_82
28-09-2009, 07:54 PM
Hi,

for past 10 months my friend and I developed few games using Ogre, Irrlicht and XNA. They are all nice and useful but we can't use them in Delphi/FreePascal, so I was wondering, is there any 3D engine for Delphi/FreePascal beside GLScene that can be used on both Windows and Linux.
We already tried to make Asphyre run on Linux (we created our own window manager so Asphyre worked without VCL/LCL), but lack of documentation drove us away from that engine (usage of Asphyre isn't straightforward as Ogre, Irrlicht or XNA).
So, is there some other 3D engines for us? :)

pjpdev
28-09-2009, 09:49 PM
I found a Pascal wrapper for Irrlicht somewhere, but it only works with Windows >:(. You can have a look in the library, but most of the engines suffer from lack of documentation. Which forced me personally to take the route of SDL and OpenGL... IMO that would be your best bet. I sometimes get the urge to start development on my own engine, but hehe... my OpenGL still sucks ::)

Srki_82
28-09-2009, 10:42 PM
If we're going to use Irrlicht than we're going to use Irlicht with C++... but... I'm looking at Irrlicht code right now and it doesn't look so hard to port to Delphi/FreePascal. Maybe we'll give it a shot :)

Stoney
28-09-2009, 11:55 PM
There is a lack of multi-platform engines for (Free)Pascal. Well, you can use SDL/GLFW and OpenGL, which is a great choice in my opinion, but it's not a 3D engine.

I made a few experiments porting Irrlicht to FreePascal/Delphi about two weeks back, well, more precisely I used Frank Dodd's FreeBasic IrrlichtWrapper (http://www.freebasic.net/forum/viewtopic.php?t=3584) and translated it to Pascal. It's actually working pretty well, but there are a few issues:
- The wrapper supports only Irrlicht 1.4.2
- The particle system is not working, creates an AV
- Text output isn't working correctly on Linux
- Mac OS is not supported at the moment (for some unknown reason I cannot create a dynamic IrrlichtWrapper library on Mac OS X)

I only invested a few days in porting to Pascal, so there might be a lot of other bugs in there, but unfortately I haven't had time to develop it further.

If anyone is interested, I could upload the code to my webspace.

freedelphi
29-09-2009, 06:31 AM
There is a lack of multi-platform engines for (Free)Pascal. Well, you can use SDL/GLFW and OpenGL, which is a great choice in my opinion, but it's not a 3D engine.

I made a few experiments porting Irrlicht to FreePascal/Delphi about two weeks back, well, more precisely I used Frank Dodd's FreeBasic IrrlichtWrapper (http://www.freebasic.net/forum/viewtopic.php?t=3584) and translated it to Pascal. It's actually working pretty well, but there are a few issues:
- The wrapper supports only Irrlicht 1.4.2
- The particle system is not working, creates an AV
- Text output isn't working correctly on Linux
- Mac OS is not supported at the moment (for some unknown reason I cannot create a dynamic IrrlichtWrapper library on Mac OS X)

I only invested a few days in porting to Pascal, so there might be a lot of other bugs in there, but unfortately I haven't had time to develop it further.

If anyone is interested, I could upload the code to my webspace.

Great Work!Please upload your code。

Stoney
29-09-2009, 08:38 AM
Here you go: Download IrrlichtWrapperPas (http://www.freeze-dev.de/files/IrrlichtWrapperPas.zip) (8 MB)

You need the Microsoft Visual Studio C++ Redist package, or you can use alternatively the mingw DLLs, but the MingW DLLs don't have DirectX support. I translated six of the original 78 examples.

And here is a port of Frank Dodd's IrrKlangWrapper for Pascal: Download here (http://www.freeze-dev.de/files/IrrKlangWrapperPas.zip) (2 MB)
It just features a few functions at the moment, but works on Windows, Linux and Mac OS X.