[vtkusers] Draw points with gaussian fade out
Markus Neuner
neuner.markus at gmx.net
Sun Jun 16 05:14:30 EDT 2013
Hi Michka,
You could try to generate volumetric data using Gaussian splats.
There are two solutions to this problem:
- Create the 3D Gaussian function on the CPU during application
initialization, and create a 3D texture from that.
- But better and much faster is to compute the Gaussian directly in the
fragment shader.
Have a look at vtkGaussianSplatter it may do what you want.
Regards,
Markus
On 06/15/2013 05:18 PM, Michka Popoff wrote:
> Hi
>
> I want to draw a lot of points in VTK (~1.000.000), with each point's color fading out to a transparent value, following a gaussian function.
> So the center will be bright (maximum intensity), and the border will have no color.
>
> I am able to draw a lot of points using vtkPoints, I can also change their color, but I am looking for a way to apply the fade out to every point. Of course the parameters of the gaussian function will be different for each point (intensity value in the middle, diameter).
>
> The result for 1 point would look like this : http://www.princeton.edu/~rvdb/images/deconv/Gauss2Psf.jpg
>
> Are there some filters/mappers I could use directly ? Or can I perhaps try to "hijack" vtkgaussiansplatter to achieve this ?
>
> Thanks in advance
>
> Michka Popoff
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list