[Paraview] Setting sample distance for GPU volume rendering?

Vanmoer, Mark W mvanmoer at illinois.edu
Mon Feb 24 17:38:16 EST 2014


Hi Utkarsh, 

Changing DataRep.ScalarOpacityUnitDistance shows up as what's in the Scale input box. Going the other direction, setting the Scale in the GUI is what python prints for DataRep.ScalarOpacityUnitDistance so they do seem to be the same thing?

Mark


-----Original Message-----
From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] 
Sent: Friday, February 21, 2014 8:55 AM
To: Vanmoer, Mark W
Cc: paraview
Subject: Re: [Paraview] Setting sample distance for GPU volume rendering?

Mark,

Scale on the ColorScaleEditor is control the scale used to map data scalars to colors or opacity, while sampling distance controls the length at which the samples are accumulated when volume rendering. The two are indeed different.

Utkarsh

On Thu, Feb 20, 2014 at 3:38 PM, Vanmoer, Mark W <mvanmoer at illinois.edu> wrote:
> Thanks Utkarsh, so it's the same thing as the Scale input in the Color Scale Editor?
>
> I was getting color bands across the volumized(?) sections of the image and I was thinking that changing the ray sample distance would help that. But I just figured out that if I scale up the data the bands go away. The data was 300^3 cells jammed into bounds of -1.8 to 1.8.
>
> Mark
> -----Original Message-----
> From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com]
> Sent: Thursday, February 20, 2014 11:52 AM
> To: Vanmoer, Mark W
> Cc: paraview
> Subject: Re: [Paraview] Setting sample distance for GPU volume rendering?
>
> Mark,
>
> You can indeed change it from Python for now. Or the same data representation object, you have ScalarOpacityUnitDistance property that could be set e.g.
>
>> r = Show()
>> r.ScalarOpacityUnitDistance = 1.0
>
> On Thu, Feb 20, 2014 at 11:50 AM, Vanmoer, Mark W <mvanmoer at illinois.edu> wrote:
>> Hello,
>>
>> In ParaView 3.8.1 it was possible to set the Sample Distance for the 
>> GPU volume mapper in the client GUI. I don't see this in the 4.0.1 
>> client. Is this possible to get at through Python? All I've been able 
>> to find so far is the data representation's volume type string. I 
>> haven't been able to figure out how to get to the mapper itself.
>>
>>
>>
>> Thanks,
>>
>> Mark
>>
>>
>> _______________________________________________
>> 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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>



More information about the ParaView mailing list