[vtkusers] Fuzzy cuboid wireframe?

David E DeMarle dave.demarle at kitware.com
Tue Oct 28 11:53:58 EDT 2014


How about just making them translucent and increasing the line width a tad?


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Tue, Oct 28, 2014 at 9:18 AM, Jeff Lee <jlee1549 at gmail.com> wrote:

> you probably want to make sure you get an opengl context that supports
> antialiasing, used to be renWin->SetMultiSamples(1) prior to first render
> so that you get the right context.
>
> On Tue, Oct 28, 2014 at 7:54 AM, David Cole via vtkusers <vtkusers at vtk.org
> > wrote:
>
>> Thanks for the ideas. We're just looking for a way to make a sharp
>> outline a little less "the focus of the scene" than it appears to be with
>> the plain old line rendering. We were thinking blurry or diffuse.
>>
>> We'll give some of these a try.
>>
>> D
>>
>>
>> On Tue, Oct 28, 2014 at 12:16 AM, David Gobbi <david.gobbi at gmail.com>
>> wrote:
>>
>>> On Mon, Oct 27, 2014 at 12:28 PM, David Cole via vtkusers <
>>> vtkusers at vtk.org> wrote:
>>>
>>>> It's easy to add an actor that displays a cuboid with a wireframe
>>>> representation.
>>>>
>>>> Is it easy to make that wireframe look "fuzzy" instead of a sharp line?
>>>>
>>>
>>> You mean fuzzy as in furry, or fuzzy as in blurry?  Or jittery?
>>>
>>> If you want jittery, here's how you can add jitter to any VTK polydata:
>>>
>>> Use a random point source e.g. vtkPointSource as the input to vtkGlyph3D,
>>> and use your polydata as the glyph.  The output will be jittered
>>> polydata.
>>>
>>> You might be able to make it look fuzzy by tessellating it and then
>>> rendering
>>> it as points.  For example: tessellate the frame, and then use it as the
>>> input
>>> to vtkGlyph3D while using random points from vtkPointSource as the glyph.
>>>
>>>  - David
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> _______________________________________________
>> 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://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141028/78aefe49/attachment.html>


More information about the vtkusers mailing list