[Paraview] OSPRay, scaled spheres

David E DeMarle dave.demarle at kitware.com
Thu Oct 26 09:04:52 EDT 2017


Looks like:

1) I was wrong, you don't need to scale and bias the input array into 0..1.
The transfer function editor widget's piecewise range controls let you
specify what the input domain extent.

2) You are correct that there isn't currently a way to get the radii to be
> 1.0 when applying the transfer function. Without the transfer function,
the point size control sets the radii for all points. With it the transfer
function's output (which is defined to be 0..1) controls the radii of each
point. Please file a bug report.

Notes: With Point Gaussian representation there is an extra "point gaussian
radius" control that gets factored in. We could do that with ospray, or
factor in the existing point size, or possible extend the transfer function
editor widget to change the range extent to something other than 0..1.


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

On Thu, Oct 26, 2017 at 6:16 AM, Heiland, Randy <heiland at iu.edu> wrote:

> Recapping, hopefully the relevant bits:
>
> Pipeline: PgmableSource -> Glyph (only show Glyph)
>
> Glyph Properties:
>  Source: 2D Glyph
>  Type: Vertex
>  Active Attrs: Scalars: cell_radius
>  Scaling:  Mode: scalar
>                Factor: 1
>
> OSPRay Use Scale Array - yes
>                Scale Array: cell_radius
> Enable OSPRay - yes
>
> Let’s say my cell_radius has a range [5,10]
>
> I cannot figure out how to scale up my cells to be large enough. I’ve
> dabbled with the OSPRay Scale Function editor, with no success.
>
> The Scaling Factor above seems to have no effect. Is there a global
> scaling factor I’m missing?
>
> (irrelevant bit, I think… I’m Masking: Every Nth Point)
>
> I’ll experiment with my simple 2 cell example later…
>
>
> On Oct 25, 2017, at 5:19 PM, Heiland, Randy <heiland at iu.edu> wrote:
>
> Beauty. Thanks!! (I really need to take time to read the entire PV Guide)
>
> On Oct 25, 2017, at 5:14 PM, David E DeMarle <dave.demarle at kitware.com>
> wrote:
>
> click the gear to show advanced properties, or use search field for glyph
> type.
>
>
>
> David E DeMarle
> Kitware, Inc.
> Principal Engineer
> 21 Corporate Drive
> <https://maps.google.com/?q=21+Corporate+Drive+Clifton+Park,+NY+12065&entry=gmail&source=g>
> Clifton Park, NY 12065
> <https://maps.google.com/?q=21+Corporate+Drive+Clifton+Park,+NY+12065&entry=gmail&source=g>
> -8662
> Phone: 518-881-4909 <(518)%20881-4909>
>
> On Wed, Oct 25, 2017 at 5:11 PM, Heiland, Randy <heiland at iu.edu> wrote:
>
>> You lost me - in the Glyph Source block,I select Glyph Type = 2D Glyph.
>> Then where is VERTEX? In the Display block, I choose Representation =
>> Points which produces a blobby mess. But a very *smooth* blobby mess :)
>>
>> On Oct 25, 2017, at 4:46 PM, David E DeMarle <dave.demarle at kitware.com>
>> wrote:
>>
>> That control is only available if the representation type is surface,
>> this could explain why you don't see it on the ProgrammableSource.
>>
>> In the glyph filter, use 2D glyph, VERTEX.
>>
>>
>>
>>
>>
>> David E DeMarle
>> Kitware, Inc.
>> Principal Engineer
>> 21 Corporate Drive
>> <https://maps.google.com/?q=21+Corporate+Drive+Clifton+Park,+NY+12065&entry=gmail&source=g>
>> Clifton Park, NY 12065
>> <https://maps.google.com/?q=21+Corporate+Drive+Clifton+Park,+NY+12065&entry=gmail&source=g>
>> -8662
>> Phone: 518-881-4909 <(518)%20881-4909>
>>
>> On Wed, Oct 25, 2017 at 4:29 PM, Heiland, Randy <heiland at iu.edu> wrote:
>>
>>> I only see the “OSPRay Use Scale Array” on the Properties for Glyph, not
>>> the Props for the ProgrammableSource. Expected? And so, OSPRay is rendering
>>> the chunky polygonalized spherical glyphs (Representation = Surface).
>>>
>>> If I could independently scale the implicit spheres and use OSPRay, I’d
>>> prefer that until I do the vtkCutter. (thanks for confirming, Note 2)
>>>
>>>
>>>
>>> On Oct 25, 2017, at 3:35 PM, David E DeMarle <dave.demarle at kitware.com>
>>> wrote:
>>>
>>> To change the size based on values:
>>> check "OSPRay Use Scale Array" on "Display" section or "Properties" Tab
>>> Choose the array name you want to scale by with "OSPRay Scale Array"
>>> pulldown.
>>> Define your value to radius transfer function via the "OSPRay Scale
>>> Function" popup editor.
>>>
>>> Note 1: the transfer function is defined to map between 0.0 and 1.0 and
>>> clamp outside of that range. Use a calculator to scale and bias into that
>>> range. If you don't like having to do this, file a feature request to
>>> remind the developers to implement it one of these days such that min is
>>> defined to be array min and max.
>>>
>>> Note 2:Cutter will not cut through the implicit spheres.
>>>
>>> Note 3: Point Gaussian representation's Use Scalar Array, Guassian Scale
>>> Array and Scale Transfer Function (which I riffed off of) are similar. I'm
>>> not sure about scale and bias and cut with this GL shader based side.
>>>
>>>
>>> David E DeMarle
>>> Kitware, Inc.
>>> Principal Engineer
>>> 21 Corporate Drive
>>> <https://maps.google.com/?q=21+Corporate+Drive+Clifton+Park,+NY+12065&entry=gmail&source=g>
>>> Clifton Park, NY 12065
>>> <https://maps.google.com/?q=21+Corporate+Drive+Clifton+Park,+NY+12065&entry=gmail&source=g>
>>> -8662
>>> Phone: 518-881-4909 <(518)%20881-4909>
>>>
>>> On Wed, Oct 25, 2017 at 3:16 PM, Heiland, Randy <heiland at iu.edu> wrote:
>>>
>>>> Just want to make sure I’m not missing something. In my Pgmable Source
>>>> PolyData, I render Points and love the OSPRay-rendered spheres. However, is
>>>> there any mechanism for (independently) scaling these, i.e., other than the
>>>> fixed Point Size? Or is the only way to get scalar-value scaled spheres via
>>>> the Glyph filter? If so, is it possible to control the
>>>> resolution/triangulation of that glyph? Basically, I’m looking for ways of
>>>> getting high-res spheres, but will also want to use vtkCutter on them later.
>>>>
>>>> thanks, Randy
>>>> _______________________________________________
>>>> 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 ParaView Wiki at:
>>>> http://paraview.org/Wiki/ParaView
>>>>
>>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://public.kitware.com/mailman/listinfo/paraview
>>>>
>>>>
>>>
>>>
>>
>>
>
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171026/76f31a26/attachment.html>


More information about the ParaView mailing list