Hi,
I'm having some trouble with lighting and shadows in relation to cube scene nodes. What I have set up is a test scene consisting entirely of cube scene nodes, and a single light circling above.

Screenshot of lighting problem (shadows disabled). Each cube scene node is getting shaded individually, instead of the light shading the scene as a whole.
https://www.youtube.com/watch?v=mShkG9zUryw
Video of shadow problem (lighting disabled). A video was necessary to demonstrate the problem with the shadows, as in addition to the fact that they look totally wrong, they also disappear entirely when looked at from certain angles.
It is my guess that both problems are caused by the fact that the scene's architecture is made up of many cube scene nodes instead of one big mesh. I have tried to use LonesomeDucky's Mesh Combiner (http://irrlicht.sourceforge.net/forum/v ... =6&t=39598) to combine all the cubes into a single mesh, but with no success. The same problems are present. I am certain I am using the Mesh Combiner correctly, so the problem is not there.
I would like to avoid having to model whole scenes in Blender (unsure if that would actually fix my problems), as I'm aiming for making a small game whose level architecture is similar to Wolfenstein 3d (levels made entirely of equally shaped cubes), only with a 3rd dimension. I have already coded a system that renders and handles collision detection for such levels in Irrlicht from simple info in .txt files.
So, I'd appreciate it if someone could point me in the right direction to a solution that can coexist with what I've got so far. If necessary I will post my source code.
Thanks in advance,
L. Aleksic