-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Environment:
OSPRay Studio version: 1.1.0
Platform: Windows 11
Mode: Batch mode (--batch)
I'm trying to render a scene in batch mode using a custom .sg file. The file includes a properly defined camera node with cameraToWorld, and it's connected via a frame node that includes camera, renderer, and world as children.
Despite this, OSPRay Studio fails with:
No scene camera is selected.
using default camera...
and scene has still default camera.
As a result, the scene still uses the default camera.
OSPRay Studio
OpenImageDenoise is available
Batch mode
!!! When loading a scene file (.sg), fewer command-line arguments are permitted.
!!! If the application exits unexpectedly, please check below for errors,
!!! remove any 'not expected' arguments and try again.
...importing files!
Importing a scene
Importing: C:\OBJ\export.obj
... found 170185 triangles and 0 quads.
...finished import!
No scene camera is selected.
using default camera...
frame 1 variance inf
frame 1 variance inf
frame 2 variance 0.275454
Warning: saving a 32-bit float buffer as PNG; color space will be limited.
Saved to C:\obj\render_output.png.00000.png
...finished!
The attached file contains my .sg scene for batch mode.
Question: How should I define the camera node in the .sg file so that it is correctly recognized in --batch mode?