allenai / objaverse-xl

🪐 Objaverse-XL is a Universe of 10M+ 3D Objects. Contains API Scripts for Downloading and Processing!
https://objaverse.allenai.org/
Apache License 2.0
704 stars 40 forks source link

How to use the rendering scrip on macos #20

Open zhou745 opened 8 months ago

zhou745 commented 8 months ago

Hi, the project is really awesome, but I am wandering is it possible to run it on my mac? I am kind of stuck with the blender part, it always says rendering not successful.

mattdeitke commented 8 months ago

I think the main thing that needs to be changed is the rendering engine should be changed from EEVEE to cycles. I believe this is a flag as part of the rendering scripts.

Let me know if that works!

mochou-wujiu commented 5 months ago

I just make it work on my macbookpro m1pro: Here are two positions you should modify:

  1. in blender_scripts.py about line 890, change the device to METAL bpy.context.preferences.addons[ "cycles" ].preferences.compute_device_type = "METAL"

    1. change the start command to the Blender in App, abount line 143 in main.py: command = f"/Applications/Blender.app/Contents/MacOS/Blender --background --python blender_script.py -- {args}"

    then it should work well

mochou-wujiu commented 5 months ago

in my test, BLENDER_EEVEE now support mac very well, and is much faster than use CYCLES on mac. You can set the engine to EEVEE in main.py, about line 140.