Different render performance between GUI and API

Hi,

I’ve been using Vapor to render images, and overall, it’s been a great experience. However, I’ve encountered a bit of an issue: the results rendered via the GUI and the Python API look different. As shown below, the first image was rendered through the GUI and saved using “Capture-Single image-PNG” – it’s quite detailed. The second image was created with the Python API using RenderToImage(), but it looks comparatively rough.

In the GUI, I set up the Transfer Function and saved it, then loaded this settings file when rendering via the API. I also used the same renderer and the same renderer parameters. Is there any refinement operation I may have overlooked in the API before generating the image?

Thank you!

Hi This is the API outcome.

Interesting. Could you share a data and session file so I can try to reproduce this?