MacOS OpenCL not working for Mandelboxes (but works with other fractals)

  • 19 Replies
  • 678 Views

0 Members and 1 Guest are viewing this topic.

Offline mclarekin

  • *
  • Fractal Freak
  • **
  • Posts: 777
« Reply #15 on: February 16, 2020, 12:06:20 AM »
yes foldbox mod1 will give you the classic mandelbox, but there are also many other formulas that will  also create it (some of the abox and amazing surf formulas), i use abox11 generally for a standard mandelbox.

out of interest, could you try the settings below and see if you get an error


Quote
# Mandelbulber settings file
# version 2.20
# only modified parameters
[main_parameters]
ambient_occlusion 0.5;
ambient_occlusion_enabled true;
camera 17.10225536618564 5.181464580812182 0.3197785837136274;
camera_distance_to_target 11.9577547934259;
camera_rotation 106.4614309753846 2.643274726194125 -0.3310697794616989;
camera_top 0.04586379741676119 0.007526705976295762 0.9989193464858215;
detail_level 1.333333333333333;
flight_last_to_render 0;
formula_1 1048;
formula_2 1021;
formula_3 1003;
formula_4 1007;
hdr true;
hybrid_fractal_enable true;
image_proportion 2;
keyframe_last_to_render 0;
main_light_alpha 0;
main_light_beta 0;
mat1_fractal_coloring_algorithm 2;
mat1_fractal_coloring_extra_color_options_false true;
mat1_fractal_coloring_rad_div_de_scale1 0;
mat1_is_defined true;
mat1_specular_metallic 0.5;
mat1_specular_plastic_enable false;
mat1_surface_color_gradient 0 fd6029 1000 698403 2000 fff59b 3000 aa0000 4000 ffff00 5000 c68876 6000 a51c64 7000 aa0000 8000 d4ffd4 9000 aba53c;
target 5.646841799571421 1.79660271381052 0.8712401497806349;
[fractal_1]
info true;
[fractal_2]
analyticDE_enabled_false true;
[fractal_3]
analyticDE_enabled_false true;
transf_scale 2;

Offline buddhi

  • *
  • Fractal Feline
  • **
  • Posts: 157
    • Mandelbulber GitHub repository
« Reply #16 on: February 16, 2020, 09:37:58 AM »
In Mandelbox formula there is used quite tricky code to access many rotation matrices. There are used references to array items. Probably this fails on MacOS (which of course should be compiled properly as on another systems).
In the last commits I have added simplified version of Mandelbox formula (Mandelbox Fast), which doesn't have rotation of separate fold planes. It should work fine on MacOS. Try to download it and test.

https://1631-33041722-gh.circle-artifacts.com/0/~/mandelbulber2/build/artifacts/mandelbulber2-macOS-e9ee2406069d99de2881a178a3d9b0d49e9ea358.dmg
« Last Edit: February 16, 2020, 04:25:49 PM by buddhi »

Offline fpsurgeon

  • *
  • Fractal Friend
  • **
  • Posts: 14
« Reply #17 on: February 16, 2020, 06:35:59 PM »
mclarekin: I tried your parameters. Renders fine with the CPU, but OpenCL gives the following compiler error:

Code: [Select]
Error: Error during compilation of OpenCL program
Device #0
OpenCL Build log:
Error returned by cvms_element_build_from_source

 :(

Offline fpsurgeon

  • *
  • Fractal Friend
  • **
  • Posts: 14
« Reply #18 on: February 16, 2020, 06:42:27 PM »
buddhi: Yes! That latest version of Mandelbulber with the Mandelbox Fast formula compiles and renders just fine (and quickly) under OpenCL. You're definitely on the right path in terms of the quirks and oddities of Apple's implementation of OpenCL 1.2. Thank you so much for looking into it!

Offline mclarekin

  • *
  • Fractal Freak
  • **
  • Posts: 777
« Reply #19 on: February 17, 2020, 01:13:57 AM »
Thanks for testing. That was the expected result.


clip
OpenCL two cards configured, it works only one

Started by jeyjey on Mandelbulber

5 Replies
520 Views
Last post October 20, 2018, 01:33:34 AM
by mancoast
question
MacOS ?

Started by FractalDave on Mandelbulb3d

0 Replies
252 Views
Last post September 13, 2018, 05:22:06 PM
by FractalDave
xx
MacOS Mojave

Started by StigNasty on Mandelbulb3d

0 Replies
289 Views
Last post December 31, 2018, 07:30:43 AM
by StigNasty
xx
ArtFutura call for audiovisual works

Started by claude on Collaborations & Jobs

0 Replies
226 Views
Last post July 05, 2019, 01:33:14 AM
by claude
xx
The question about the possibility to sell 3D works

Started by ER2 on Mandelbulb3d

7 Replies
710 Views
Last post July 06, 2018, 11:14:28 PM
by Bill Snowzell