<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi Björn and all,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I'd like to test an application on the Oculus with some post-process effect.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">On the Oculus side, the only recommendation I've read (<a href="https://developer.oculus.com/documentation/intro-vr/latest/concepts/bp_intro/">https://developer.oculus.com/documentation/intro-vr/latest/concepts/bp_intro/</a>) </div><div class="gmail_default" style="font-family:tahoma,sans-serif">is to apply the post effect to both eyes independently (taking into account their z-depth).</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">On the osg integration side, I see these points to be covered:</div><div class="gmail_default" style="font-family:tahoma,sans-serif">1. setup a scene with some post-processing cameras which is compatible with the 2-slaves cameras setup done by the OculusViewer</div><div class="gmail_default" style="font-family:tahoma,sans-serif">2. the post effect should probably affect only the color buffer copied to the Oculus, while the depth buffer (used for the time warp) should be the one written by the main render camera with the actual 3d scene values.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I'm not sure which would be the best scheme to achieve that.</div><div class="gmail_default" style="font-family:tahoma,sans-serif">In particular, it would be good to keep the current slave cameras setup with respect to projection and view matrices, but move the buffer management to the latest stage camera of the post-processing.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">What do you think?</div><div class="gmail_default" style="font-family:tahoma,sans-serif">I'd like to help in coding/testing a solution.</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Ricky</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div></div>