buddhi1980 / mandelbulber2

Official repository for Mandelbulber v2
GNU General Public License v3.0
893 stars 116 forks source link

Material picking bug with OpenCL #935

Closed bezo97 closed 1 year ago

bezo97 commented 1 year ago
System information (version)
Detailed description

Material picking with OpenCL mode does not work correctly. Selecting any material is not applied on the objects, they are rendered with the same default material. This applies to both the fractal and primitives. Seemingly the materials are assigned correctly in the editor, but the image is rendered incorrectly.

Steps to reproduce

Expected behaviour: The fractal should be rendered with the selected base material. Actual behaviour: The fractal should be rendered with the default material which is not assigned. image

You can select cpu-only mode to see how it should look.

Thanks in advance for looking at this issue! -bezo

bezo97 commented 1 year ago

A bit of further investigation, the same bug is present in previous verisons. I checked back until v2.25. Maybe a driver related thing?

buddhi1980 commented 1 year ago

"Medium" OpenCL mode is a very simplified rendering engine (but faster). It uses only first material. To render scene with all materials you need to use "full" engine.

bezo97 commented 1 year ago

Thanks for the clarification!