JungWhoNam / ospray

An Open, Scalable, Portable, Ray Tracing Based Rendering Engine for High-Fidelity Visualization
http://ospray.org
Apache License 2.0
0 stars 0 forks source link

Unable to modify new variables for PerspectiveCamera, e.g., offAxisMode #12

Closed ghost closed 1 year ago

ghost commented 1 year ago

I am trying to include the new release v2.11.0-alpha.2 in OSPRay Studio.

I show new variables for PerspectiveCamera in "Camera editor" and modify these. However, when I try to modify these variables, I get the following error and nothing changes.

OSPRay error: ospray::PerspectiveCamera: found unused (or of wrong data type) parameter 'offAxisMode'

Version: ospray 2.11.0-alpha.2, ospray_studio 0.11.1 macOS Ventura 13.0.1 Apple clang version 14.0.0 (clang-1400.0.29.202)

ghost commented 1 year ago

This problem was fixed by commit 6a27b0a. So the revert commit, 33a84f5, re-introduces the problem.

The revert commit was made to fix a problem in ospStudio where nothing was showing in a view. Commit 6a27b0a is not the problem; the problem is that OSPray and OSPRay Studio place the ArcballCamera differently.

OSPRay uses a right-hand, z-forward coordinate system. In OSPRay demo applications, an ArcballCamera is looking at the z-direction. However, in OSPRay Studio, the ArcballCamera is rotated around a y-axis 180 degrees, meaning the camera is looking in the opposite direction. That is why the view was black.

The problem can be solved by recreating the display configuration file, where display objects are placed on the opposite side. So I am reverted the commit 33a84f5.