crystalspace.canvas.opengl.extmgr: GL Extension 'GL_version_1_2' found and used. GL Extension 'GL_ARB_texture_cube_map' found and used. GL Extension 'GL_EXT_texture3D' found and used. GL Extension 'GL_ARB_vertex_buffer_object' found and used. GL Extension 'GL_SGIS_generate_mipmap' found and used. GL Extension 'GL_EXT_texture_filter_anisotropic' found and used. GL Extension 'GL_EXT_texture_lod_bias' found and used. GL Extension 'GL_ARB_point_parameters' found and used. GL Extension 'GL_ARB_point_sprite' found and used. GL Extension 'GL_EXT_framebuffer_object' found and used. GL Extension 'GL_ARB_texture_non_power_of_two' found and used. GL Extension 'GL_ARB_vertex_program' found and used. GL Extension 'GL_EXT_secondary_color' found and used. GL Extension 'GL_EXT_blend_func_separate' found and used.

crystalspace.system: Precaching all things...WARNING! Object 'Mesh.002' is not closed!WARNING! Object 'Cylinder.018' is not closed!WARNING! Object 'Cylinder.025' is not closed!WARNING! Object 'Mesh.001' is not closed!WARNING! Object 'Cube.582' is not closed!WARNING! Object 'Cube.577' is not closed!...

crystalspace.canvas.opengl.extmgr: GL Extension 'GL_EXT_separate_specular_color' found and used. GL Extension 'GL_ARB_texture_env_dot3' found and used.

crystalspace.graphics3d.shader.fixed: Multitexture units: whopping 8

crystalspace.canvas.opengl.extmgr: GL Extension 'GL_version_1_3' found and used. GL Extension 'GL_version_1_4' found and used.

./include/csplugincommon/opengl/glextmanager.h: In member function 'void csGLExtensionManager::InitGL_ARB_vertex_program()':./include/csplugincommon/opengl/glextmanager.h:19525: warning: suggest parentheses around assignment used as truth value

./include/csplugincommon/opengl/glextmanager.h: In member function 'void csGLExtensionManager::InitGL_ARB_texture_rg()':./include/csplugincommon/opengl/glextmanager.h:24927: warning: suggest parentheses around assignment used as truth value

In file included from ./include/csplugincommon/canvas/graph2d.h:41, from ./include/csplugincommon/opengl/glcommon2d.h:34, from /var/tmp/portage/dev-games/crystalspace-1.4.0-r1/work/crystalspace-src-1.4.0/libs/csplugincommon/opengl/glfontcache.cpp:35:./include/ivideo/graph2d.h:146: warning: 'iOffscreenCanvasCallback' is deprecated (declared at ./include/ivideo/graph2d.h:145)In file included from ./include/csplugincommon/opengl/glstates.h:35, from ./include/csplugincommon/opengl/glcommon2d.h:38, from /var/tmp/portage/dev-games/crystalspace-1.4.0-r1/work/crystalspace-src-1.4.0/libs/csplugincommon/opengl/glfontcache.cpp:35:

(... a lot of warnings like this:)

./include/csplugincommon/opengl/glextmanager.h: In member function 'void csGLExtensionManager::InitGL_version_1_2()':./include/csplugincommon/opengl/glextmanager.h:24927: warning: suggest parentheses around assignment used as truth value

about the graphic glitches, it may well be due to the generally poor quality ofIntel graphic cards or driver. I'd suggest you to show this post with picturesto people (especially res/res2k) in the #crystalspace IRC channel on chat.freenode.net server.Maybe that's fixeable, but that will require quite some follow-ups with people in the know(eg. debug shaders, using tools like buGLe, ...)

For the Java related errors, it may be due to your Swig versions being too recent.You could either try using Swig 1.3.33 or maybe 1.3.36, or disable it,so that the pre-generated files (present in CS source) are used.

Well, I surely suspected the intel drivers. But I made some tests, and everything else works fine. I tested GLFrontier, Briquolo (OpenGL), FreeOrion (Ogre3D) and all Irrlicht demos. (The latter look like this, this and this.)

*Sigh*

I guess it has something to do with CXXFLAGS. So I will rebuild CrystalSpace today without any additional flags, and see whether the issue goes away. If it does, I can add single flags until the distortions re-appear. If not, I'll go and look what the people on IRC say.

For the java issue, the lowest version of swig directly available on gentoo linux is 1.3.40. But it's not a problem, because CS compiles fine with "--enable-make-emulation".