I just tried Irrlicht for a project we are developing at the company I work in. We need a cross-platform 3D engine, and Irrlicht seems to fit the job pretty well. The only problem is that we need to compile our application on MacOS X as well, so I set out to get Irrlight compiled with Xcode.
Thanks to the several hints on the forum (in particular thanks to this post), getting 1.3 to compile and work has been actually quite easy. Although, I encountered the issue mentioned by syndicatedragon in this thread, namely some missing textures in Quake3Map under certain angulations, and the white characters in Collision (see screenshots in the mentioned thread, the situation is exactly the same).
Hence, I tried to get the latest SVN version and to compile it. Here is a list of the fixes I had to make:
- Remove all the missing (red) files from the project.
- Add all of the missing files (the not-greyed out ones when you do Files -> Add existing) to the project.
- Comment out, through the use of #if 0... #endif, as described here, part of the pnggccrd.c file (which has to be added to the project, by the way).
- Add #define GL_EXT_texture_env_combine 1 at the very beginning of COpenGLDriver.cpp, before any #include's. This is probably a workaround and should be placed somewhere else. Anyway this was my first time hacking OpenGL stuff, so I just solved it this way.
- Change in include/ICursorControl.h:
virtual bool isVisible() const = 0;
to
virtual bool isVisible() = 0;
Again, this should probably be solved somewhere else, but I had no idea where. - Change in include/IrrlichtDevice.h:
virtual bool isWindowActive() const = 0;
to
virtual bool isWindowActive() = 0; - Finally, to get the Demo to compile, I had to remove #define USE_IRRKLANG. This isn't necessary if you only want to build the lib, anyway I think this should be disabled by default, as not all Irrlicht users also use Irrklang. Please note that the Demo will not work anyway, and it will crash with a "Bus error".
- Also note that the examples will not work launched from Finder, but need to be launched from a terminal from the bin/MacOSX directory.
Thanks for the work you all have put into Irrlicht so far .