[vtkusers] About static particle system visualization

Marcus D. Hanwell marcus.hanwell at kitware.com
Wed Jun 12 16:23:44 EDT 2013


On Sun, Jun 9, 2013 at 5:49 PM, Alfredo Metere <alfredo.metere at mmk.su.se> wrote:
> Hi,
>
> I am DESPERATE trying to implement impostor graphic rendering of spheres in
> VTK using GLSL.
>
> Here's the workflow that I use to render the particle positions:
> 1 - CSV file -> vtkPoints
> 2 - vtkPoints -> vtkPolyData
> 3 - vtkPolyData -> vtkGlyph3D
> 4 - vtkGlyph3D -> SetSource -> vtkPlaneSource
> 5 - vtkGlyph3D -> vtkPolyDataMapper
> 6 - vtkPolyDataMapper -> vtkActor
> 7 - vtkActor -> vtkProperty -> Load Material File in XML
> 8 - vtkActor -> ShaderOn()
> 9 - vtkRenderer - > AddActor
> 10 - vtkRenderer -> SetActiveCamera
>
> Big Problem:
> I've tried to write a vertex shader in order to keep the quads aligned to
> the view without ANY success.
> This very vertex shader works great in RenderMonkey and other Shader
> compilers with no problem. I've no idea why it is not working.
>
> Is there a way to use OpenGL point sprites instead?

You should take a look at the point sprite plugin in ParaView, this
extends VTK and uses point sprites and should at least show you how to
accomplish this in VTK (or depending on your application, you could
simply do it in ParaView using the plugin).

Marcus



More information about the vtkusers mailing list