Dear Utkarsh I tried changing the size with both ways yours and the one I wrote but in both cases when the size changes the top of the image and the depth map is filled with noise, is there a reason for that ? or how can it be fixed ?
From: the.1.l...@hotmail.com To: utkarsh.ayac...@kitware.com CC: paraview@paraview.org Subject: RE: [Paraview] Changing the size of vtkXOpenGLRenderWindow Date: Wed, 13 Feb 2013 11:56:22 +0300 Dear Utkarsh it turns out that I was writing the command after the Render which was not working here how I did it "in case someone needed that" view = GetActiveView().GetRenderWindow() view.SetSize(wid,hig) Render() > Date: Tue, 12 Feb 2013 08:54:11 -0500 > Subject: Re: [Paraview] Changing the size of vtkXOpenGLRenderWindow > From: utkarsh.ayac...@kitware.com > To: the.1.l...@hotmail.com > CC: paraview@paraview.org > > Try: > > view.ViewSize = [<width>, <height>] > > Utkarsh > > On Tue, Feb 12, 2013 at 6:25 AM, the lily <the.1.l...@hotmail.com> wrote: > > Dear all > > > > I'm constructing the depth map using the following > > > > view = GetActiveView().GetRenderWindow() > > w2i = vtkWindowToImageFilter() > > w2i.SetInputBufferTypeToZBuffer () > > w2i.SetInput(view) > > w2i.Update() > > > > > > the only problem that it is always giving me a dpeth map of size (400,400) > > and I think that because of the size of the view > > > > so I tried setting the view size but that did not work, so can someone hep ? > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the ParaView Wiki at: > > http://paraview.org/Wiki/ParaView > > > > Follow this link to subscribe/unsubscribe: > > http://www.paraview.org/mailman/listinfo/paraview > >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview