ospray icon indicating copy to clipboard operation
ospray copied to clipboard

The World needs to be re-committed after the xfm parameter of an instance is changed

Open StasJ opened this issue 5 years ago • 3 comments

This appears to be a bug as it is not documented and it breaks the pattern of the reset of the API.

If you have an instance inside a world and you change the transform of the instance and commit the instance, the rendering will not be correct, i.e. the object will be clipped (with artifacts) against the original world boundaries. You have to also commit the world after committing the instance to get correct results.

Example (the white noise is the location of the original world boundary)

clipping

StasJ avatar Jul 07 '20 23:07 StasJ

Hey @StasJ, are you seeing this bug on the current release of OSPRay & OpenVKL? We ran into this issue as well and it should be fixed in the latest OpenVKL release (https://github.com/openvkl/openvkl/releases/tag/v0.10.0) which will be included in the next OSPRay release

Twinklebear avatar Jul 07 '20 23:07 Twinklebear

Hi @Twinklebear, glad to hear. I am using the most recent (2.1.1) binary distribution on OSX.

StasJ avatar Jul 07 '20 23:07 StasJ

Unfortunately, commiting the World is indeed currently necessary if an Instance/Geometry/Volume changed (spatially). Fixing this flaw is a bit involved (we need to implement an internal dependency tracking), thus will take some more time.

johguenther avatar Sep 23 '20 07:09 johguenther