Signed Distance Fields 1.0
Photobox_args Struct Reference

Parameters of the GPU path tracer, see compute_photobox() and SDFTree::photobox(QString, Photobox_args) const. More...

#include <photobox.h>

Public Member Functions

 Photobox_args ()
 Default parameters: 1920×1080 image, 8192 samples per pixel, automatic centering.
 Photobox_args (int with, int height)
 Default parameters with a given image size.

Public Attributes

int width = 1920
 Width of the image in pixels.
int height = 1080
 Height of the image in pixels.
Box box = Box(1)
 Bounding box of the scene, used for framing and to place the floor.
int nb_sample = 8192
 Number of samples per pixel.
bool show_iso_disk
 Render a disk showing the iso-values of the field (defines DISK in the shader).
bool auto_center
 Center and scale the box to fit the unit box, and place the floor at the bottom of the box.
int * render_time
 If not null, receives the GPU rendering time in milliseconds.
bool log = true
 Print progress and timings on the standard output.
int nb_bounce = 3
 Maximum number of light bounces.
float fov = 50
 Vertical field of view, in degrees.
double znear = 0.1
 Near plane distance.
float zfar = 500
 Far plane distance.
Matrix4 mat_v
 View matrix of the camera.
Vector2 crop_min
 Lower left corner of the rendered window, in normalized image coordinates [0,1]2.
Vector2 crop_max
 Upper right corner of the rendered window, in normalized image coordinates [0,1]2.

Detailed Description

Parameters of the GPU path tracer, see compute_photobox() and SDFTree::photobox(QString, Photobox_args) const.

The default camera looks at the unit box from a three-quarter view, see mat_v.

Constructor & Destructor Documentation

◆ Photobox_args()

Photobox_args::Photobox_args ( int width,
int height )

Default parameters with a given image size.

Parameters
width,heightSize of the image in pixels.