Hi!
I successfully cloned and built OpenUSD 25.5.1 and can run usdview. Now I’m trying to write a “Hello Hydra” application in Python that renders a simple image to buffer or file - very similar in functionality to usdview but without all the GUI elements, user interaction and other bells and whistles. Default hdStorm render delegate or hdEmbree if need be, default camera light, dome light or alternatively the light(s) coming with the scene.
The attached project & script HelloHydra.py HelloHydra.zip (3.4 KB) executes fine with MS VS Code and creates an output file. However, the rendered image is either all black or or completely transparent, depending on whether I use RGB or RGBA buffers. I tried a lot regarding projection matrix, buffer management, materials, lights and the Sphere.usda I was using, unfortunately to no avail.
Can someone more experienced than me explain what’s going on or point me towards some helpful documentation or even a working example? I want to avoid dissecting usdview if possible, as it looks rather complicated.
Thank you very much!