[Paraview] set paraview camera to a real camera intrinsic matrix

2012-04-20 Thread Li Guan
Dear all, I am trying to augment an image from a real camera to a VR world. I came into a problem try to configure the paraview camera to the real camera. I know that setting camera position, view-up direction and focal point, will give me the correct extrinsics of the camera (i.e. orientation an

[Paraview] Searching of a specific actor in the actor list

2012-05-11 Thread Li Guan
Dear all, I would like to change the visibility property of a specific actor in the renderer. Right now, I need to remember which orderly ID my actor is in the actor list and iterate through the following to get to the actor, vtkPropCollection* props = renderer->GetViewProps(); props->InitTravers

[Paraview] set camera center of rotation

2012-05-17 Thread Li Guan
Dear all, I am trying to set the center of rotation of my environment w.r.t. the 3D model I loaded. pqView * view = pqActiveObjects::instance().activeView(); vtkSMRenderViewProxy *proxy = vtkSMRenderViewProxy::SafeDownCast(view->getViewProxy()); ... ... proxy->GetRenderer()->AddActor(actor); prox

[Paraview] load obj file and display via Paraview python shell

2012-12-04 Thread Li Guan
Hi guys, I am trying to load a wavefront obj file into paraview and display it using only python shell scripts. I searched online and only find http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadOBJ This is vtk C++ code, and I am trying to convert them to python script. I got stuck at trying to find

[Paraview] error using vtk in paraview animation

2013-01-14 Thread Li Guan
documentation and examples, it seems I was using the right format? How can I fix it? Many thanks! Li Guan ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

[Paraview] Set up camera intrinsic matrix in python Paraview

2013-03-01 Thread Li Guan
Hi all, I am trying to set up the camera view w.r.t. the camera matrix K in Paraview python shell. Basically, I create an intrinsic matrix to store the new projective matrix obtained from 3x3 camera intrinsic matrix K, get the current projection transform matrix A, and create a new matrix apply_ma

Re: [Paraview] Set up camera intrinsic matrix in python Paraview

2013-03-04 Thread Li Guan
Hi all, I just would like to update my question in case anyone also ever bumps into it. Apparently, if I change the last but second line from camera.SetUserTransform(T); to camera.SetUserViewTransform(T); , the problem is solved. Cheers, Li On Fri, Mar 1, 2013 at 3:11 PM, Li Guan wrote

[Paraview] rendering image larger than window size

2013-03-06 Thread Li Guan
Hi all, My monitor res is 1280x960. Once I lock the paraview window to 2000x1000, and in python shell call WriteImage("test.png"); the saved image is only the size that is displayed on the window. Is it possible to save the whole image? I know the option of clicking Save Screenshots on the control

Re: [Paraview] rendering image larger than window size

2013-03-06 Thread Li Guan
On Wed, Mar 6, 2013 at 11:17 AM, Li Guan wrote: > > Hi all, > > > > My monitor res is 1280x960. > > Once I lock the paraview window to 2000x1000, and in python shell call > > WriteImage("test.png"); the saved image is only the size that is > displayed >