Render workbench on MacOS

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
Brutha
Posts: 221
Joined: Mon May 04, 2015 1:50 pm

Render workbench on MacOS

Post by Brutha »

Hi All,

Has anyone had any success using the new render workbench on MacOS? I cannot seem to get any of the renderers working (macOS Catalina 10.15.7). I get the following:

- Appleseed continually asks permission to run libraries - you allow it and try again, and then it asks for another file, and finally says some files are damaged and won't open!

- I cannot compile the standalone Cycles renderer using their instructions - finally I get to:

Code: Select all

/Documents/cycles/src/render/colorspace.cpp:207:16: error: no member named 'applyRGB' in
      'OpenColorIO_v2_0::Processor'
- LuxCoreRender - I can run the app itself, but when I try rendering from FreeCAD I get the following. I am not sure what to select as the "CLI" file - either the app or something from the pyluxcore folder - there doesn't seem to be anything obvious. Either way I see:

Code: Select all

08:57:47  /Applications/LuxCore.app  -o "/var/folders/gc/kz6fvh1x6llcyhykn455_cjr0000gn/T/LuxcoreProjectkwv1z69b.cfg" -f "/var/folders/gc/kz6fvh1x6llcyhykn455_cjr0000gn/T/LuxcoreProject2c5ssfpe.scn"
08:57:47  LuxCore call failed: 'Permission denied'
- I tried a command line version of POVray from here http://megapov.inetart.net/povrayunoffi ... alpov.html. I get the following result in FreeCAD:

Code: Select all

09:18:16  Renderer command: /Applications/PovrayCommandLineMacV2/Povray37UnofficialMacCmd +P +A +W800 +H600 +O/var/folders/gc/kz6fvh1x6llcyhykn455_cjr0000gn/T/FreeCAD_Doc_2904492f-5719-4fc2-85ee-2d89a6ed1904_da39a3_41133/PovrayProject8b3kzgz_.png /var/folders/gc/kz6fvh1x6llcyhykn455_cjr0000gn/T/FreeCAD_Doc_2904492f-5719-4fc2-85ee-2d89a6ed1904_da39a3_41133/PovrayProject8b3kzgz_.pov
09:18:16  Running the Python command 'Render' failed:
Traceback (most recent call last):
  File "/Users/me/Library/Preferences/FreeCAD/Mod/Render/Render.py", line 1031, in Activated
    project.Proxy.render()
  File "/Users/me/Library/Preferences/FreeCAD/Mod/Render/Render.py", line 581, in render
    ImageGui.open(img)

Could not load image file
Of course, I guess none of the above are actually directly related to the workbench itself - but would be interested if anyone has seen the same and managed to get further!

Thanks,

Brutha

Code: Select all

OS: macOS 10.15
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23756 (Git)
Build type: Release
Branch: master
Hash: 9c6e9184930a52b165a0b7274e3a45d1006bfe67
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
vectronic
Posts: 52
Joined: Sun Feb 18, 2018 9:44 pm

Re: Render workbench on MacOS

Post by vectronic »

Hello,

I have just finished a write up of getting the render workbench working with cycles under macOS Big Sur.

Hopefully this might help you. I had the same issue you mentioned with cycles compilation. It is due to the fact that 2 days ago, the libs repository in SVN was updated to use a newer version of a dependency.

Anyhow... have a read here and I hope it helps:

https://vectronic.io/posts/building-fre ... s-big-sur/

Nick
Brutha
Posts: 221
Joined: Mon May 04, 2015 1:50 pm

Re: Render workbench on MacOS

Post by Brutha »

Thanks @vectronic!

Sorry for the delay in replying, the day job got in the way for a bit there....

Yep, that was very helpful indeed, I was able to compile Cycles and I can now generate renders! Now I need to figure out how to save images where I want, and how to work with materials....

Cheers!

Brutha
vectronic
Posts: 52
Joined: Sun Feb 18, 2018 9:44 pm

Re: Render workbench on MacOS

Post by vectronic »

Good to hear. Sounds like we’re now in the same place with materials :-)
OlPhil
Posts: 9
Joined: Fri Aug 12, 2022 5:32 pm

Re: Render workbench on MacOS

Post by OlPhil »

I have a problem with the Render workbench on my Mac too. Because the old post ist already very old and maybe many things have changed I post this question:

I a very new to the Render workbench in FreeCad so I tried to get it to work on my MacMini 14.3. I want to work with LuxCore so I have installed it on my machine. The standalone version seems to open. Unfortunately I can't find testfiles to have a look if the app works but I an assuming so.

In freeCAD i have to option to either choose a command (cli) path (whatever that should be) or I can direct him to the app itself. After testing that link I get a permission error.

What do I have to do to get the LuxCore implementation running?

Code: Select all

OS: macOS 14.3.1
Word size of FreeCAD: 64-bit
Version: 0.21.2.33771 (Git)
Build type: Release
Branch: (HEAD detached at 0.21.2)
Hash: b9bfa5c5507506e4515816414cd27f4851d00489
Python 3.10.13, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.6, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * Render 2024.1.23
  * A2plus 0.4.62
  * IconThemes
Thanx for caring! Phil
Attachments
Bildschirmfoto 2024-02-12 um 16.38.26.png
Bildschirmfoto 2024-02-12 um 16.38.26.png (51.22 KiB) Viewed 602 times
Bildschirmfoto 2024-02-12 um 16.37.05.png
Bildschirmfoto 2024-02-12 um 16.37.05.png (36.76 KiB) Viewed 602 times
howetuft
Posts: 314
Joined: Tue Sep 10, 2019 8:16 pm

Re: Render workbench on MacOS

Post by howetuft »

Hello,
In 'LuxCoreUI path' field, you must enter the path to the executable. I'm not very knowledgeable about macOS, but '/Applications/LuxCore/LuxCore.app' does not sound like an executable - that could explain the 'Permission error', as you may be trying to execute a non-executable.
Having a look at https://github.com/LuxCoreRender/LuxCor ... -mac64.dmg, the executable should rather be named 'luxcoreui'. Perhaps you should search for such a file in your directories?
hsmeets
Posts: 28
Joined: Sun Jan 15, 2023 3:08 pm
Location: At Home (Mostly)

Re: Render workbench on MacOS

Post by hsmeets »

LuxCore.app is a package, right click with your mouse (or the equivalent on a touchpad) to get the context menu, choose the 2nd option. I have a dutch language version but it should be something like 'Show Package Content'.

Scherm­afbeelding 2024-02-12 om 19.47.04.png
Scherm­afbeelding 2024-02-12 om 19.47.04.png (236.03 KiB) Viewed 538 times

In folder Contents/MacOS you'll find the 2 executables you are looking for.

Scherm­afbeelding 2024-02-12 om 19.47.34.png
Scherm­afbeelding 2024-02-12 om 19.47.34.png (93.14 KiB) Viewed 538 times

So in the Render Workbench preferences you just add

<path were installed>/LuxCore.app/Contents/MacOS/<name of the program>

Scherm­afbeelding 2024-02-12 om 19.55.46.png
Scherm­afbeelding 2024-02-12 om 19.55.46.png (141.58 KiB) Viewed 538 times

BUT! It crashes, at least on mine M1 Macbook when called from FreeCAD. Standalone it runs.
OlPhil
Posts: 9
Joined: Fri Aug 12, 2022 5:32 pm

Re: Render workbench on MacOS

Post by OlPhil »

Yes, this solved the problem.

This should be written in the official description of the workbench.

Thanx!
howetuft
Posts: 314
Joined: Tue Sep 10, 2019 8:16 pm

Re: Render workbench on MacOS

Post by howetuft »

This should be written in the official description of the workbench.
Render Workbench is an open-source and collaborative project, and documentation is part of it. So, if you think there is some missing information in the documentation, do not hesitate to propose updates!
The project is hosted on Github: https://github.com/FreeCAD/FreeCAD-render, the documentation is written in Markdown language: any contribution is welcome.
Post Reply