<div dir="ltr">Use a vtkPolyData with points on the locations, and a VTK_VERTEX cell refering to each one.<div style><br></div><div style>Then send that into vtkGlyph to have the CPU makes the spheres which then get send to the card.</div>
<div style><br></div><div style>Better yet, draw it with vtkGlyph3dMapper to make the spheres via vertex programs on the GPU instead of the CPU.<br></div><div style><br></div><div style>Better still, bring ParaView's point sprite plugin over, which will draw the spheres via fragment programs on the GPU.</div>
<div style><br></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div>
<br><br><div class="gmail_quote">On Thu, Aug 22, 2013 at 10:45 AM, Gib Bogle <span dir="ltr"><<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You need only multiple actors, all using the same mapper.<div class="HOEnZb"><div class="h5"><br>
<br>
On 23/08/2013 2:39 a.m., curator wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I am able to draw a vtkSphere with its own vtkSphere, vtkActor and vtkMapper equipped together. Now if I need several spheres, I add multiple instances of this stuff for each sphere and add them all up to the same renderer - so far, so good.<br>
<br>
Now I need to draw a really huge amount of spheres, which are all identical except the position. Is there any more efficient way to to that than just creating N vtkActors, N vtkMappers and N vtkSpheres?<br>
<br>
regards,<br>
curator<br>
______________________________<u></u>_________________<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/<u></u>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_<u></u>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/<u></u>listinfo/vtkusers</a><br>
</blockquote>
<br>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
Dr. Gib Bogle<br>
Senior Research Fellow<br>
Auckland Bioengineering Institute<br>
University of Auckland<br>
New Zealand<br>
<br>
<a href="http://www.bioeng.auckland.ac.nz" target="_blank">http://www.bioeng.auckland.ac.<u></u>nz</a><br>
<br>
<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a><br>
(64-9) 373-7599 Ext. 87030</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<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/<u></u>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_<u></u>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/<u></u>listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>