34 #include <vertex_storage.h> 35 #include <bpt_options.h> 36 #include <bpt_queues.h> 37 #include <tiled_sequence.h> 39 #include <renderer_interface.h> 60 uint32 swap_frequency;
61 uint32 mmlt_frequency;
64 bool single_connection;
66 bool light_perturbations;
67 bool eye_perturbations;
68 float perturbation_radius;
77 single_connection(
false),
79 light_perturbations(
true),
80 eye_perturbations(
true),
82 perturbation_radius(0.01f)
84 BPTOptionsBase::light_tracing = 0.0f;
87 void parse(
const int argc,
char** argv)
89 BPTOptionsBase::parse(argc, argv);
91 for (
int i = 0; i < argc; ++i)
93 if (strcmp(argv[i],
"-chains") == 0)
94 n_chains = atoi(argv[++i]) * 1024;
95 else if (strcmp(argv[i],
"-spp") == 0)
96 spp = atoi(argv[++i]);
97 else if (strcmp(argv[i],
"-c-swaps") == 0 || strcmp(argv[i],
"-chart-swaps") == 0)
98 swap_frequency = atoi(argv[++i]);
99 else if (strcmp(argv[i],
"-m-swaps") == 0 || strcmp(argv[i],
"-mmlt-swaps") == 0)
100 mmlt_frequency = atoi(argv[++i]);
101 else if (strcmp(argv[i],
"-skips") == 0 ||
102 strcmp(argv[i],
"-startup-skips") == 0)
103 startup_skips = atoi(argv[++i]);
104 else if (strcmp(argv[i],
"-sc") == 0 ||
105 strcmp(argv[i],
"-single-conn") == 0 ||
106 strcmp(argv[i],
"-single-connection") == 0)
107 single_connection = atoi(argv[++i]) > 0;
108 else if (strcmp(argv[i],
"-rr") == 0 || strcmp(argv[i],
"-RR") == 0)
109 rr = atoi(argv[++i]) > 0;
110 else if (strcmp(argv[i],
"-light-perturbations") == 0)
111 light_perturbations = atoi(argv[++i]) > 0;
112 else if (strcmp(argv[i],
"-eye-perturbations") == 0)
113 eye_perturbations = atoi(argv[++i]) > 0;
114 else if (strcmp(argv[i],
"-perturbations") == 0)
115 light_perturbations = eye_perturbations = atoi(argv[++i]) > 0;
116 else if (strcmp(argv[i],
"-rf") == 0 ||
117 strcmp(argv[i],
"-reseed-freq") == 0 ||
118 strcmp(argv[i],
"-reseeding") == 0)
119 reseeding = atoi(argv[++i]);
120 else if (strcmp(argv[i],
"-perturbation-radius") == 0 ||
121 strcmp(argv[i],
"-p-radius") == 0 ||
122 strcmp(argv[i],
"-pr") == 0)
123 perturbation_radius = (float)atof(argv[++i]);
138 void sample_seeds(
const uint32 n_chains);
140 void build_st_norms_cdf();
171 float m_image_brightness;
172 uint32 m_n_init_light_paths;
173 uint32 m_n_init_paths;
175 uint32 m_n_connections;
void destroy()
Definition: cmlt.h:144
Definition: tiled_sequence.h:131
Definition: vertex_storage.h:73
Definition: renderer_interface.h:45
Definition: renderer.h:52
Definition: bpt_queues.h:51
Definition: renderer_view.h:80
Defines several random samplers.
Definition: bpt_options.h:42