What you need is to volume render cell data instead of point data. Unfortunately, ParaView does not support volume rendering of cell data in images. However, it supports volume rendering of cell data in unstructured grids. Try this:<div>
<br></div><div>- Create a STRUCTURED_POINTS with cell data</div><div>- Load it</div><div>- Apply Clean to Grid</div><div>- Volume render</div><div><br></div><div>I wouldn't recommend doing this if your volumes are going to become large.</div>
<div><br></div><div>-berk<br><br><div class="gmail_quote">On Mon, Dec 13, 2010 at 10:41 AM, Jeff Johnson <span dir="ltr"><<a href="mailto:jj56@indiana.edu">jj56@indiana.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
This is great, thanks Berk and Sebastien. Yes, I am trying to do volume rendering. My dataset represents a 3D grid occupancy map, where each cell has a specified likelihood of occupancy. I'd like to render that as a set of unit cells, where the opacity is directly related to the likelihood of occupancy (i.e., totally opaque means likelihood of 1, totally transparent mean likelihood of 0). Does that make sense?<br>
<br>
I did try STRUCTURED_POINTS for doing the volume rendering, and it's seems close to what I'm looking for, but maybe I'm not setting it up quite right: The coloring seems to radiate out from one side, and it also seems to bleed out into neighboring cells. If I could get the color to radiate from the center out (or just have the cell uniformly colored), and have the coloring end at the cell boundaries, that would be perfect. I've attached a pic of what I see.<br>
<br>
Thanks again, guys.<br>
<font color="#888888"><br>
-Jeff<br>
<br>
</font><br><br>
<br>
On Dec 13, 2010, at 07:22 , Berk Geveci wrote:<br>
<br>
> Assuming that you are defining a uniform rectilinear grid, you need STRUCTURED_POINTS. As for defining opacity, what is your goal? To do volume rendering? Other than when using volume rendering, opacity does not have any effect.<br>
><br>
> If you need to define an arbitrary set of cubes, you probably need an unstructured grid.<br>
><br>
> Can you give us an example of your dataset and visualization you want to do? A picture maybe?<br>
><br>
> -berk<br>
><br>
> On Sun, Dec 12, 2010 at 10:15 AM, Jeff Johnson <<a href="mailto:jj56@indiana.edu">jj56@indiana.edu</a>> wrote:<br>
> Thanks, but I'm totally new to the VTK file format and ParaView, and the documentation is not clear. It seems like the STRUCTURED_GRID geometry is the proper one for what I need, but I can find virtually no examples of it's use. For instance, if I want to specify a set of unit cubes from a set of points, do I do that in POINT_DATA or CELL_DATA? If I want to color them and set an opacity, where does that information go? The documentation says that a lookup table is a set of RGBA values that is associated with scalar data, but what does the scalar data represent, and how do I associated it with the cubes?<br>
><br>
> -Jeff<br>
><br>
><br>
> On Dec 12, 2010, at 03:27 , Sebastien Jourdain wrote:<br>
><br>
> > Hi Jeff,<br>
> ><br>
> > on the help page of vtk (<a href="http://www.vtk.org/VTK/help/documentation.html" target="_blank">http://www.vtk.org/VTK/help/documentation.html</a>)<br>
> > you do have a link on the VTK file format.<br>
> > You should be able to find all the informations that you need here:<br>
> > <a href="http://www.vtk.org/VTK/img/file-formats.pdf" target="_blank">http://www.vtk.org/VTK/img/file-formats.pdf</a><br>
> ><br>
> > Seb<br>
> ><br>
> > On Sat, Dec 11, 2010 at 8:44 PM, Jeff Johnson <<a href="mailto:jj56@indiana.edu">jj56@indiana.edu</a>> wrote:<br>
> >> Hi all,<br>
> >><br>
> >> I'm using ParaView to visualize a dataset, and I'm trying to generate an ASCII VTK file that will specify a set of voxels, where each voxel has an associated color and opacity. Does anyone have any suggestions for how I should format the file? It seems like this should be easy, but I can't make heads or tails of the documentation.<br>
> >><br>
> >> -Jeff<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
> >><br>
> >> Follow this link to subscribe/unsubscribe:<br>
> >> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
> >><br>
><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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
<br>
<br></blockquote></div><br></div>