<br><br><div class="gmail_quote">On Thu, Sep 30, 2010 at 4:14 PM, Darshan Pai <span dir="ltr"><<a href="mailto:darshanpai@gmail.com">darshanpai@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Had a decent performance with 64-bit python on vtk 5.6.1 . maybe a 2 second delay . a little jerky . Did not try with 4.4 yet .<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Sep 30, 2010 at 3:35 PM, Pascal Augustin <span dir="ltr"><<a href="mailto:pascal@rogue-research.com" target="_blank">pascal@rogue-research.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>><br>
> Good idea. Unfortunately I am not familiar with tcl as we use vtk in c++ only. If you could share the results with me/us, that would be great.<br>
><br>
<br>
</div>Hi,<br>
<br>
As you've previously mentioned, rendering 10000s of actors was much faster in vtk 4.4. Using the following Python script, I've obtained these results:<br>
<br>
VTK 4.4.2: Rotating 10000 spheres takes about 30 seconds.<br>
<br>
VTK 5.0.4: Rotating 10000 spheres takes about 2 minutes. What is interesting is that for the first few seconds, it is actually faster than in 4.4.2. Then, it suddenly stalls for about 20 seconds. Afterwards, it continues rotating slowly but at a regular pace.<br>
<br>
<br>
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
#!/usr/bin/env python<br>
#<br>
<br>
import vtk<br>
<br>
ren = vtk.vtkRenderer()<br>
append = vtk.vtkAppendPolyData()<br>
for j in range(1, 100):<br>
for i in range(1, 100):<br>
sphere = vtk.vtkSphereSource()<br>
sphere.SetRadius(1.0)<br>
sphere.SetCenter(2 * i, 2 * j, 0)<br>
sphere.SetThetaResolution(16)<br>
sphere.SetPhiResolution(16)<br>
sphereMapper = vtk.vtkPolyDataMapper()<br>
sphereMapper.SetInput(sphere.GetOutput())<br>
sphereActor = vtk.vtkActor()<br>
sphereActor.SetMapper(sphereMapper)<br>
ren.AddActor(sphereActor)<br>
<br>
renWin = vtk.vtkRenderWindow()<br>
renWin.AddRenderer(ren)<br>
renWin.SetSize(500, 500)<br>
<br>
for i in range(0, 15):<br>
renWin.Render()<br>
ren.GetActiveCamera().Roll(24)<br>
<div><div></div><div><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>