I want to make object transparent, but the object itself should not be visible through itself. It's in an animation that rotates it, but at a certain angle I can see parts of the object through other parts of the object, which I don't want. So object should be transparent for everything in the scene, but this object. Below I pointed with red arrows those "whiter" pieces that are semitransparent white over semitransparent white which I don't want to get:
Currently it have 3 materials on it (front, back and sides) and transparency + backface culling is done like this:
For rendering I'm using Cycles engine and Blender 2.73.1. Is there anything I could do to make that happen? I think it got something to do with geometry settings but I have no idea what to set and how.