[vtkusers] parallel rendering from Python

Kaushik . shekhar.kaushik at gmail.com
Sat Oct 4 10:53:06 EDT 2008


Hi

check out the vtkParallelRenderManager and vtkCompositeRenderManager
classes. They do sort last rendering if i remember properly.

Also there was some issue with running parallel examples in python. This has
to with not being able to pass
&argc and &argv from python to the MPI_Init function that has to be called
for parallel applications using MPI.

The settings you have written below do not enable the VTK_USE_MPI which may
be needed to run with MPI.


Note that the vtkCompositeManager has been done away with.

Will be able to mail you an example after a few days ( do not have access to
the pc where i have the examples currently ).

--
shekhar

On Sat, Sep 27, 2008 at 2:58 AM, Alexander Pletzer <pletzer at txcorp.com>wrote:

> Hi,
>
> I have just rebuilt vtk (downloaded from cvs end of Aug 2008) with Parallel
> activated:
>
>
> BUILD_EXAMPLES                   ON
>
> BUILD_SHARED_LIBS                ON
>
> BUILD_TESTING                    ON
>
> CMAKE_BACKWARDS_COMPATIBILITY    2.4
>
> CMAKE_BUILD_TYPE
>
> CMAKE_INSTALL_PREFIX             /usr/local
>
> VTK_DATA_ROOT
>  /home/research/pletzer/Download/VTK/../VTKData
>
> VTK_USE_INFOVIS                  ON
>
> VTK_USE_PARALLEL                 ON
>
> VTK_USE_RENDERING                ON
>
> VTK_USE_VIEWS                    ON
>
> VTK_WRAP_JAVA                    OFF
>
> VTK_WRAP_PYTHON                  ON
>
> VTK_WRAP_TCL                     OFF
>
>
>
> I had no problem building (as far as I can tell). However, when I try to
> run the example
>
> VTK/Examples/ParallelProcessing/MPI/Python/ParallelCone.py
>
> I get
>
> [pletzer at localhost Python]$ python ParallelCone.py
> Traceback (most recent call last):
>  File "ParallelCone.py", line 9, in <module>
>   compManager = vtkCompositeManager()
> NameError: name 'vtkCompositeManager' is not defined
>
> It seems that this class is not available from Python? I'm looking for an
> example of a parallel pipeline feeding into a composite render. Any example
> along those lines would be welcome.
>
> Thanks for your help.
>
> --Alex
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
--
shekhar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081004/2c4b4a7a/attachment.htm>


More information about the vtkusers mailing list