Closed Shijou87 closed 7 months ago
Thanks for reporting and for the reproducer!
If you let multiple frames accumulate (or use pixelSamples
>1) then the shift will vanish (and with OSP_PIXELFILTER_GAUSS
the edges will be slightly blurred). But I agree that the first sample/frame looks odd. We'll look into implementing a better initial behavior.
Hello,
I've observed that the scivis renderer doesn't accurately position the image; there's a slight pixel shift in both the x and y coordinates. Upon investigation, I've identified an issue with the default pixel filter employed by the renderer, specifically OSP_PIXELFILTER_GAUSS. This leads to image misalignment when transitioning from OSP_PIXELFILTER_POINT. The problem is resolved when using OSP_PIXELFILTER_POINT, ensuring the image displays at the correct location.
In the provided example, I rendered a basic plane using the scivis renderer. The first render in blue utilized OSP_PIXELFILTER_POINT, while the second in red omitted OSP_PIXELFILTER_POINT (employing OSP_PIXELFILTER_GAUSS), showcasing the pixel shift correction.
Generally, I expect that the location of the rendered object should remain unaltered by the filtering process. Do you agree ?
Below is a code snippet that you can use to replicate the problem: