-
Hello, I try to get started on Mitsuba and want to run a render with LLVM the first time on my windows machine.
I tried several ways of setting the DRJIT_LIBLLVM_PATH variable manually but nothing works. Now, three days after first occurance I lost all hope to solve this on my own. Does anyone know how to proceed? BR Edit: By the way this is my code: import mitsuba as mi
import matplotlib.pyplot as plt
#mi.set_variant('scalar_spectral')
mi.set_variant('llvm_ad_rgb')
#scene = mi.load_file('scenes/living-room-2/scene.xml')
#image = mi.render(scene)
img = mi.render(mi.load_dict(mi.cornell_box()),spp=256)
#mi.Bitmap(img).write('cbox.exr')
#mi.image(img)
plt.axis("off")
plt.imshow(img ** (1.0/2.2)) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @jantma2 You can check your |
Beta Was this translation helpful? Give feedback.
-
Makes sure that administrative rights are used to install LLVM and run also for running the script. Shall this discussion being closed ? |
Beta Was this translation helpful? Give feedback.
Hi @jantma2
You can check your
PATH
envvar from python withimport os; print(os.environ['PATH'])
. This should let you check if LLVM did indeed add it to your PATH.Alternatively, you can manually use the
DRJIT_LIBLLVM_PATH
(you can also set it in Python before importingmitsuba
/drjit
).One common pitfall on Windows is that this envrionment variable must point directly to the file rather than the folder which containsLLVM-C.dll