<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">I was able to get something looking decent with the vtkPointGaussianMapper, but how do I change the blend mode? Right now it looks to be additive.
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF463169" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Milef, Nicholas Boris<br>
<b>Sent:</b> Tuesday, September 26, 2017 4:53 PM<br>
<b>To:</b> Ken Martin<br>
<b>Cc:</b> vtkusers@vtk.org<br>
<b>Subject:</b> RE: [vtkusers] Creating billboard particle effects (e.g., smoke, fire)<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div>
<div style="font-family:Tahoma; font-size:13px">Thanks Ken! I'll give vtkPointGaussianMapper a try. It seems to be closest to what I want to do.
</div>
</div>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr tabindex="-1">
<div id="divRpF165036" style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Ken Martin [ken.martin@kitware.com]<br>
<b>Sent:</b> Tuesday, September 26, 2017 12:37 PM<br>
<b>To:</b> Milef, Nicholas Boris<br>
<b>Cc:</b> vtkusers@vtk.org<br>
<b>Subject:</b> Re: [vtkusers] Creating billboard particle effects (e.g., smoke, fire)<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">It depends on the specifics of the implementation but as a start
<div><br>
</div>
<div>1) vtkPointGaussianMapper will draw billboard triangles and execute a possibly user defined sharer on them. This can be used to draw translucent splats/discs/squares/etc. based on the shader provided.</div>
<div><br>
</div>
<div>2) if you are thinking more as point sprites (fixed pixel size as opposed to world coord size) you can use the regular polydata mapper with a point size and then shade it/texture it</div>
<div><br>
</div>
<div>3) If you have 3D elements (as opposed to billboards) then you could use vtkGlyph3DMapper which under the hood uses opengl instancing to replicate geometry.</div>
<div><br>
</div>
<div>4) if you mostly want spheres or cylinders then there are dedicated mappers for those which is what the molecule mapper uses under the hood. Those mappers have the code to properly compute z values based on sphere/cylinder equations so they are not exactly
billboards but more impostors.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Sep 26, 2017 at 12:12 PM, Milef, Nicholas Boris <span dir="ltr">
<<a href="mailto:milefn@rpi.edu" target="_blank">milefn@rpi.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">What would be the best way to create billboard particle effects such as smoke or fire? Should I use the vtkMoleculeMapper?
<div><br>
</div>
<div>Example:</div>
<div><a href="http://www.opengl-tutorial.org/intermediate-tutorials/billboards-particles/particles-instancing/" target="_blank">http://www.opengl-tutorial.<wbr>org/intermediate-tutorials/<wbr>billboards-particles/<wbr>particles-instancing/</a></div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">
http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">
<div>Ken Martin PhD
<div>Distinguished Engineer<br>
<span style="font-size:12.8px">Kitware Inc.</span><br>
</div>
<div>28 Corporate Drive<br>
Clifton Park NY 12065<br>
<div><br>
</div>
<div><span style="font-size:10pt; font-family:Tahoma,sans-serif">This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the
original message. Thank you.</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>