35 #include <vertex_storage.h> 36 #include <bpt_options.h> 37 #include <bpt_queues.h> 38 #include <tiled_sequence.h> 40 #include <cugar/color/rgbe.h> 41 #include <cugar/basic/memory_arena.h> 42 #include <renderer_interface.h> 55 uint32 reseeding_freq;
57 float st_perturbations;
58 float screen_perturbations;
59 float exp_perturbations;
60 float H_perturbations;
61 float perturbation_radius;
69 st_perturbations(1.0f),
70 screen_perturbations(1.0f),
71 exp_perturbations(0.45f),
72 H_perturbations(0.45f),
73 perturbation_radius(0.1f),
78 BPTOptionsBase::light_tracing = 0.0f;
81 void parse(
const int argc,
char** argv)
83 BPTOptionsBase::parse(argc, argv);
85 for (
int i = 0; i < argc; ++i)
87 if (strcmp(argv[i],
"-chains") == 0)
88 n_chains = atoi(argv[++i]) * 1024;
89 else if (strcmp(argv[i],
"-spp") == 0)
90 spp = atoi(argv[++i]);
91 else if (strcmp(argv[i],
"-st-mutations") == 0 ||
92 strcmp(argv[i],
"-st-perturbations") == 0)
93 st_perturbations = (float)atof(argv[++i]);
94 else if (strcmp(argv[i],
"-screen-perturbations") == 0 ||
95 strcmp(argv[i],
"-lens-perturbations") == 0 ||
96 strcmp(argv[i],
"-lp") == 0)
97 screen_perturbations = (
float)atof(argv[++i]);
98 else if (strcmp(argv[i],
"-H-perturbations") == 0 ||
99 strcmp(argv[i],
"-h-perturbations") == 0 ||
100 strcmp(argv[i],
"-hp") == 0 ||
101 strcmp(argv[i],
"-H") == 0 ||
102 strcmp(argv[i],
"-h") == 0)
103 H_perturbations = (float)atof(argv[++i]);
104 else if (strcmp(argv[i],
"-exp-perturbations") == 0 ||
105 strcmp(argv[i],
"-e-perturbations") == 0 ||
106 strcmp(argv[i],
"-exp") == 0 ||
107 strcmp(argv[i],
"-ep") == 0)
108 exp_perturbations = (
float)atof(argv[++i]);
109 else if (strcmp(argv[i],
"-rf") == 0 ||
110 strcmp(argv[i],
"-reseed") == 0 ||
111 strcmp(argv[i],
"-reseed-freq") == 0)
112 reseeding_freq = atoi(argv[++i]);
113 else if (strcmp(argv[i],
"-mis") == 0)
114 mis = atoi(argv[++i]) > 0;
115 else if (strcmp(argv[i],
"-pr") == 0 ||
116 strcmp(argv[i],
"-perturbation-radius") == 0)
117 perturbation_radius = (float)atof(argv[++i]);
118 else if (strcmp(argv[i],
"-flags") == 0)
119 flags = strtol(argv[++i], NULL, 16u);
122 const float prob_perturbations = exp_perturbations + H_perturbations;
123 if (prob_perturbations > 1.0f)
125 exp_perturbations /= prob_perturbations;
126 H_perturbations /= prob_perturbations;
156 float m_image_brightness;
158 uint32 m_n_init_paths;
159 uint32 m_n_connections;
void destroy()
Definition: mlt.h:145
Definition: tiled_sequence.h:131
Definition: vertex_storage.h:73
Definition: renderer_interface.h:45
Definition: renderer.h:52
Definition: mlt_core.h:98
Definition: bpt_queues.h:51
Definition: memory_arena.h:44
Definition: renderer_view.h:80
Defines several random samplers.
Definition: bpt_options.h:42