Ridley5 opened this issue on Jul 26, 2010 · 1724 posts
adp001 posted Wed, 25 August 2010 at 10:12 AM
Quote - I want to add support for a pull-down menu to choose a realistic camera profile.
The lux documentation says:
Quote - LuxRender contains camera data for a small number of cameras; these can be chosen as a preset. It is also possible to supply your own camera model if you happen to have this information available as a .dat file.
Where are these? I don't see any in the LuxRender application folder.
Did they mean LuxBlend, not LuxRender?
Name the camera "realistic camera". Here are the specs:
As its name indicates, the realistic camera is the camera type that most closely matches a real photographic camera. The difference between this camera and the ordinary perspective camera is that the realistic camera calculates the way light is distorted by the lens, whereas the perspective camera uses a much simplified camera model that resembles a pinhole camera. Hence, the realistic camera is capable of showing lens characteristics like barrel distortion and vignetting. LuxRender contains camera data for a small number of cameras; these can be chosen as a preset. It is also possible to supply your own camera model if you happen to have this information available as a .dat file.
The lens data file of a realistic camera corresponds to a camera with a certain focal length. However, the program can generate a similar lens with a different focal length (and thus field of view) by scaling the lens data.
This value indicates the size of the diagonal of the camera film in millimeters.
This value indicates the distance between the film and the backmost lens element. Changing this to a different value than the default for the lens will result in an image that is out of focus.
The depth of field can be influenced by setting the aperture of the camera. The values correspond to the ones found on a real photographic camera; lower values result in a shallower depth of field.
The realistic camera can use one of the four preset cameras, or it can use a user provided .dat file. Such a file needs to be in the file format as indicated in the paper by Kolb, Mitchell, and Hanrahan.
#### focus distance / shutter / clipping
These settings work the same way as the perspective camera settings.