Welcome to Fractal Forums

Fractal Software => Mandelbulber => Topic started by: Kyzia on August 18, 2017, 03:15:53 PM




Title: Mandelbox - some help needed...
Post by: Kyzia on August 18, 2017, 03:15:53 PM
I'm not sure whether this would be a bug, something I'm doing wrong, or something else, so I'd appreciate some help understanding what's going on...

I have a scene using a Mandelbox fractal type, and when I render it with default raymarching step size, I get a high percentage of wrong distance estimations (over 10%)
If I try to run the optimization, even the 'low quality' optimization, I end up with a very small value for the raymarching step size (0.00128), and if I then try to render using that value I end up with an almost empty screen.  Even if I set it higher (like 0.05), I'm getting large unexpected gaps.

Here's the settings for anyone who wants to try it and see what I mean...

Code:
# Mandelbulber settings file
# version 2.11
# only modified parameters
[main_parameters]
ambient_occlusion_enabled true;
camera 1.969343724242223 -2.78823256626516 3.056456666191479;
camera_distance_to_target 2.011153221130371;
camera_rotation 5.967398591253336 26.33729010574944 -1.038753892303514e-08;
camera_top 0.04612346448810285 -0.4412504914783782 0.8961978742407863;
delta_DE_function 1;
delta_DE_method 1;
DOF_enabled true;
DOF_focus 1.022912740707397;
DOF_radius 4;
flight_last_to_render 0;
formula_1 8;
formula_material_id 2;
image_height 720;
image_width 1280;
keyframe_last_to_render 0;
mat2_fresnel_reflectance true;
mat2_is_defined true;
mat2_name copper;
mat2_reflectance 0.8100000000000001;
mat2_specular 6.97;
mat2_specular_color ff00 c700 a600;
mat2_specular_width 0.397;
mat2_surface_color dc00 8900 6f00;
mat2_transparency_index_of_refraction 8.960000000000001;
mat2_use_colors_from_palette false;
raytraced_reflections true;
target 1.781962513935456 -0.995608102067906 3.948713967225516;
view_distance_max 81.01597107197888;
volumetric_fog_colour_1_distance 0.06415900641236565;
volumetric_fog_colour_2_distance 0.1283180128247313;
volumetric_fog_density 0.25;
volumetric_fog_distance_factor 0.1283180128247313;
volumetric_fog_enabled true;
[fractal_1]
mandelbox_folding_value 1.4;
[fractal_2]
IFS_rotation_enabled true;
[fractal_3]
IFS_rotation_enabled true;
[fractal_4]
IFS_rotation_enabled true;


Title: Re: Mandelbox - some help needed...
Post by: mclarekin on August 18, 2017, 04:13:02 PM
with this type of fractal it is best to keep the boxfolding value/limit ratio to 2: 1,     so 1.4 : 0.7 will give less bad DE.

 but even better,  do not touch them at all, leave them at 2 & 1 and tweak the other parameters


for Distance Estimation this formula should be set on preferred method and function , not deltaDE (too slow)


BTW I never use those quality optimization button.  For a mandelbox  Just set the raymarching step to 0.7 and that should be good enough in most situations
Code:
# Mandelbulber settings file
# version 2.11
# only modified parameters
[main_parameters]
ambient_occlusion_enabled true;
camera -1.551241657275412 1.824827916494672 -1.546832227909165;
camera_distance_to_target 0.008633701130747714;
camera_rotation -138.7294440415509 18.3281277810981 -6.742816146542991;
camera_top -0.1177391146505606 0.3121606099237026 0.9427052850670588;
DOF_enabled true;
DOF_focus 1.022912740707397;
DOF_radius 4;
flight_last_to_render 0;
formula_1 8;
formula_material_id 2;
image_height 720;
image_width 1280;
keyframe_last_to_render 0;
mat2_is_defined true;
mat2_name copper;
mat2_specular 6.97;
mat2_specular_color ff00 c700 a600;
mat2_specular_width 0.397;
mat2_surface_color dc00 8900 6f00;
mat2_transparency_index_of_refraction 8.960000000000001;
mat2_use_diffusion_texture true;
target -1.545835630624341 1.818667984072808 -1.54411728709562;
view_distance_max 23.12254295513441;
volumetric_fog_colour_1_distance 0.06415900641236565;
volumetric_fog_colour_2_distance 0.1283180128247313;
volumetric_fog_density 0.25;
volumetric_fog_distance_factor 0.1283180128247313;
volumetric_fog_enabled true;
[fractal_1]
mandelbox_folding_min_radius 0.2;
mandelbox_main_rotation_enabled true;
mandelbox_rotation_main 14.83 8.69 -11.31;
mandelbox_scale -1.5;
[fractal_2]
IFS_rotation_enabled true;
[fractal_3]
IFS_rotation_enabled true;
[fractal_4]
IFS_rotation_enabled true;


Title: Re: Mandelbox - some help needed...
Post by: Kyzia on August 18, 2017, 04:31:39 PM
Thanks for the reply - I'll try what you've outlined.

As for the DE method, I would typically leave it as Preferred, and had only set it to DeltaDE (linear) this once to see if it made a difference (apart from just making things slower), since adjusting the raymarching step size appeared to have no real effect on the wrong distance percentage - it stayed around 10% irrespective of whether the step size was 1, 0.1, or 0.05 - which is also why I tried the optimization button.


Title: Re: Mandelbox - some help needed...
Post by: taurus on August 21, 2017, 10:13:16 PM
since adjusting the raymarching step size appeared to have no real effect on the wrong distance percentage - it stayed around 10% irrespective of whether the step size was 1, 0.1, or 0.05 - which is also why I tried the optimization button.

I'm not quite sure, but when my observation is right, at very low step multiplyers the limitation of 1000 ray-steps prevent an improvement in error percentage, as the max ray steps are reached, before the algorithm is close to the surface. Use the statistics window to check.
At scales close to 1/-1 maybe increasing the number of iterations might also help. The statistics window is useful there too.


Title: Re: Mandelbox - some help needed...
Post by: taurus on August 21, 2017, 10:21:19 PM
Sorry, tried your parameter. None of my assumptions is true here.