Closed psavery closed 2 years ago
This is ready for review.
I actually don't have permission to merge. Can someone give me permission or merge for me?
@cquammen
Try now, @psavery
@cquammen Could I get permissions as well please?
@cjh1 all set
I don't have permission to add you. I think you should merge to get credit/blame :). Cory?
On Mon, Apr 18, 2022 at 10:58 AM Patrick Avery @.***> wrote:
I actually don't have permission to merge. Can someone give me permission or merge for me?
@cquammen https://github.com/cquammen
— Reply to this email directly, view it on GitHub https://github.com/Kitware/LookingGlassVTKModule/pull/32#issuecomment-1101473661, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACEJL45E2CLCXKMFM76B3DVFV2BDANCNFSM5TL4IETQ . You are receiving this because you commented.Message ID: @.***>
Kitware: Delivering innovation.
@aylward we resolved giving @cjh1 permission back in April. I think that is what you are referring to here.
This moves common rendering code into a
vtkLookingGlassInterface::RenderQuilt()
function. The common rendering code is being moved from three places:vtkLookingGlassPass::Render()
vtkLookingGlassRenderWindowImpl::DoStereoRender()
An optional
renderFunc
argument was added specifically for thevtkLookingGlassPass
case, where instead of callingRender()
on the renderers as the other two cases do, it needs to callRender()
on itsDelegatePass
with a separatevtkRenderState*
argument.I tried to also look into resizing the render window (to match the
RenderSize
) inside theRenderQuilt()
function. This would work for the ParaView plugin, which has separate render windows for rendering the quilt and rendering to the display, but:vtkLookingGlassPass
, it appears that we do not want to resize the render window. I'm not entirely sure why.vtkLookingGlassRenderWindowImpl
, we have to bypassSetSize()
on the render window, at least for Linux (which usesvtkXOpenGLRenderWindow
), because this otherwise causes a re-render when we do not want it, and a resulting render flash on the display.So for the ParaView plugin and for the render window implementation, we fix the size ourselves outside of the
RenderQuilt()
function.This is working in my tests for all three cases.
The corresponding ParaView MR is here.
I have tested these locally only on Linux, but I am able to also test on Mac as well.