How do you make an xray material (or similar)
There are several ways to approach this, the most flexible is likely compositing and renderlayers. However, it is possible to do this from within cycles:



If the incoming ray has bounced more than once and it is coming from a transmissive object (such as glass), it will be translucent. Otherwise it will be diffuse.