Camera Models
Pinhole lens
The pinhole camera (also called the camera obscura) is an imaging device that only lets a single ray of light through. It is usually a box with a small hole in the centre that allows light through that hole. The image that is shown inside the box is upside down.
With thin lens, the rays can be split into more than one ray.
What is Depth of Field????
It is the amount of distance between a focused object relative to the background objects behind it. In other words, any object that is not the focus of the camera gets blurred. In this way you can place more attention to the focused object or person in an image. Photographers in general use this technique in order to point out what exactly they want their viewers to pay attention to. As you can see in the picture below, at first glance you will only look a the focused coloured pencil. At least, I did the first time. Everything else in the picture is blurred. The person who took this picture probably wanted viewers to identify the blue coloured pencil.
Three factors relate to depth of field:
Three factors relate to depth of field:
- diaphragm opening of lens (aperture)
- focal of length
- image size
When implementing depth of field the per-pixel depth and blur information is stored in the alpha channel.You will also need pixel shaders to perform down-sampling on the image, use filter kernel to approximate circle of confusion, and for blending.
In the post-processing shader, the camera distance of three planes are passed.
In the post-processing shader, the camera distance of three planes are passed.
- Focal plane
- Near plane
- Far plane
Alpha Blending
This is creating a new colour by blending a translucent foreground colour with a background colour. It is used to display a transparent sort of pixelated image. It can also be used for a 3D atmospheric effect. As you can see in the picture below, there are three images with the last one being the alpha blended one because you can see both the first and second image blended together.
When performing depth of field in your 3D scene, you need to store your per-pixel depth and blurriness information into the alpha channel.
Circle of Confusion
Circle of Confusion or Disk of Confusion refers to the area of the depth of field that is not blurred. It represents the most focused part of the image. It is also shown in the shape of cones which represents the light rays that pass through the lens.










