In my Ogre 3d scene I have an empty box, and within that there are three small cubes. The camera is also within the box, facing the three small cubes. The user can move and rotate the camera with the mouse.
There is only one (spot) light source, attached to the same node and facing the same direction as the camera. The idea is that the light should always spot the same direction as the camera, like a flash light (with a narrow light cone).
The problem now is that the light emitted by the spot light used in this scene is not reflected by the sides of the empty box correctly. When I face the camera perpendicular to a side of the box, then no light is reflected at all. Only when I move/rotate the camera so that it spots the box "walls" from a specific angle some light is reflected. The problem only occurs with the box sides, the small cubes within the box are reflecting the light correctly.
In this first screenshot you can see what happens when I look to the edge/corner of the box. You can see a wooden texture on the box sides, and those three cubes in the box. The blue-ish box in the middle is exactly on the border of the light cone, so that only the left side is within the cone and reflecting the light.
That seems like the correct behaviour. Now when I move the camera so that I looks exactly top-down to the same cube within the box, then only that cube is reflecting the light, but not the side of the box. It then looks like as the empty box would not be there at all, as you can see on the second screenshot. (Note also a second small cube on the top of the screenshot, which is again exactly on the border of the light cone.)
I am pretty sure the texture/material is not the problem. Because when I use the same blue-ish material for the box sides as I use for the small cube, then the cube is still correctly reflecting the light, whereas the box side is again not reflecting the light at all.
Any ideas what I am doing wrong here?
I am completely out of ideas here :(