Support Forum G3D Web Page |
Public Member Functions | |
DepthOfFieldSettings () | |
DepthOfFieldSettings (const Any &) | |
float | circleOfConfusionRadiusPixels (const float z, const float edgeToEdgeFieldOfView, const float screenPixelSize) const |
More... | |
bool | diskFramebuffer () const |
bool | enabled () const |
void | extendGBufferSpecification (GBuffer::Specification &spec) const |
Ensures the GBuffer specification has all the fields needed to render this effect More... | |
float | farBlurRadiusFraction () const |
float | farBlurryPlaneZ () const |
float | farSharpPlaneZ () const |
float | focusPlaneZ () const |
float | lensRadius () const |
DepthOfFieldModel | model () const |
DepthOfFieldModel::Value | modelValue () const |
float | nearBlurRadiusFraction () const |
float | nearBlurryPlaneZ () const |
float | nearSharpPlaneZ () const |
int | reducedResolutionFactor () const |
void | setDiskFramebuffer (bool b) |
void | setEnabled (bool e) |
void | setFarBlurRadiusFraction (float r) |
Maximum defocus blur in the near field under the ARTIST depth of field model, as a fraction of the screen size along the axis indicated by the field of view. More... | |
void | setFarBlurryPlaneZ (float z) |
void | setFarSharpPlaneZ (float z) |
void | setFocusPlaneZ (float z) |
Plane that is in focus under a lens camera (PHYSICAL depth of field model). More... | |
void | setLensRadius (float r) |
Radius of the lens in meters under the PHYSICAL depth of field model. More... | |
void | setModel (DepthOfFieldModel m) |
void | setModel (DepthOfFieldModel::Value m) |
void | setNearBlurRadiusFraction (float r) |
Maximum defocus blur in the near field under the ARTIST depth of field model, as a fraction of the screen size along the axis indicated by the field of view. More... | |
void | setNearBlurryPlaneZ (float z) |
Set the plane at which the maximum blur radius is reached in the near field under the ARTIST depth of field model. More... | |
void | setNearSharpPlaneZ (float z) |
void | setReducedResolutionFactor (int f) |
Divide the image size by this in both directions to speed processing for large blurs at the cost of some flickering and boxy artifacts for small blurs. More... | |
Any | toAny () const |
G3D::DepthOfFieldSettings::DepthOfFieldSettings | ( | ) |
G3D::DepthOfFieldSettings::DepthOfFieldSettings | ( | const Any & | ) |
float G3D::DepthOfFieldSettings::circleOfConfusionRadiusPixels | ( | const float | z, |
const float | edgeToEdgeFieldOfView, | ||
const float | screenPixelSize | ||
) | const |
z | In camera space; should be NEGATIVE |
edgeToEdgeFieldOfView | Angular field of view along the X or Y axis, corresponding to the screenPixelSize axis |
screenPixelSize | Width or height of the screen, in pixels (choose one based on the field of view direction) |
If negative, then z is closer to the camera than the focus depth. If positive, then z is farther.
|
inline |
|
inline |
void G3D::DepthOfFieldSettings::extendGBufferSpecification | ( | GBuffer::Specification & | spec | ) | const |
Ensures the GBuffer specification has all the fields needed to render this effect
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by G3D::GApp::Settings::VR::VR().
|
inline |
Maximum defocus blur in the near field under the ARTIST depth of field model, as a fraction of the screen size along the axis indicated by the field of view.
|
inline |
|
inline |
|
inline |
Plane that is in focus under a lens camera (PHYSICAL depth of field model).
This is a negative number unless you intend to focus behind the camera.
|
inline |
Radius of the lens in meters under the PHYSICAL depth of field model.
|
inline |
|
inline |
|
inline |
Maximum defocus blur in the near field under the ARTIST depth of field model, as a fraction of the screen size along the axis indicated by the field of view.
|
inline |
Set the plane at which the maximum blur radius is reached in the near field under the ARTIST depth of field model.
Adjusts the other plane depths to maintain a legal model.
|
inline |
|
inline |
Divide the image size by this in both directions to speed processing for large blurs at the cost of some flickering and boxy artifacts for small blurs.
1,2,3,4 are common values
Any G3D::DepthOfFieldSettings::toAny | ( | ) | const |