
I have also started to look into the problems of rendering materials. I already know the problems which cause the problems labeled 1 to 3 in the image. The origin transform each of my objects has is not working correctly. In the image the front and back wall was the same object, so instancing has to be used in the raytracer and that applied the origin transformation twice. The origin transformation of that object turns the object 90° around the x-axis. So the grey stripe is actually the object, the darker area is the background color.
But the simple fix I just did doesn't work, due to a lot of common code it removed the origin transform for the objects which don't have to be instanced. I think I have a new candidate for my automatic tests. I will try to find out how to fix the problem.