I’m having an issue I wasn’t able to find an answer under any USD docs.
I have a Frame Recorder code that uses the default Hdstorm plugin with OpenGL context to render png images of a stage, but the images are RGBA and if there’s only a few prims, the background is black with alpha=0.0.
I looked into render settings, render products but couldn’t find how do I set it so it renders a different color background with no alpha (RGB)?
Does anyone know the general answer to this?
Hi @berengard , there’s currently no way to do this in a renderer-agnostic fashion without some code changes.
The good news is that UsdImagingGLEngine (used by frameRecorder) does provide configuration for renderer-agnostic “clear color” that works with at least Storm and HdPrman; this is the mechanism usdview uses to allow you to select from a palette of background colors.
But there needs to be an enhancement to frameRecorder itself to allow you to specify an RGBA on the command line and funnel it through to the engine. We’re not sure when we could get to that, but if someone wants to submit a PR, we can provide some pointers, if needed.
I decided that I might come back to this in the future, but for now I’m just gonna create a plane with a certain color material and place it under the camera prim at its far clipping plane point.
Not really a solution, but good enough for now.