In short, 3D effects of image(by ray tracing) is achieved by back-track the trajectory of rays from view point of viewer to each pixel in the image. Objects are modeled by their parameters. For example, a sphere should have a center point and radius. When reflectance and shading are taken into consideration, images with high degrees of realistic are created.
The right image shows you the effect of transparency.
You may want to see the images in its full size:
Click here to see left picture in full
size.
Click here to see right picture in full
size.