[Paraview] Changing the "solid color" to white for screenshots and exporting
Cory Quammen
cory.quammen at kitware.com
Wed Jul 1 15:27:41 EDT 2015
Ryan,
I thought of another thing to try with your original data: under Backface
Styling, change the Backface Representation to "Cull Backface". This should
remove the edges from the backside of your data set.
If that doesn't work, can you share a data set?
To turn off lighting and set the color to white, I did what you did, but set
r.Ambient = 1.0
r.AmbientColor = [1, 1, 1]
That made the surface white without lighting.
Cory
On Wed, Jul 1, 2015 at 3:10 PM, Ryan Crocker <rcrocker at uvm.edu> wrote:
> When i zoom in they look the same, or it switches to other lines. I
> thought it might have something to do with the fact that my 2D simulation
> actually dose have a thickness in the z-direction. So i cut a slice and
> now the issue with the lines is gone but it look alike this with the left
> to right cross in each cell (below script). Is there a way to turn off the
> lighting so that i just get a flat, white surface. I wrote a python script
> for it but it does not seem to work. I just get a black solid color.
>
> *RenderView1 = GetRenderView()
> **RenderView1.LightSwitch = 0
> **RenderView1.UseLight = 0
> **r = GetDisplayProperties()*
>
> *r.Ambient = 0.0*
>
>
>
> On Jul 1, 2015, at 11:52 AM, Cory Quammen <cory.quammen at kitware.com>
> wrote:
>
> Hi Ryan,
>
> When you zoom in on your grid in the black and white image, do the thick
> lines change to two thinner lines? What I think is going on is that your
> grid lines are so close together that some of them have a zero-pixel gap
> between them, making them appear thicker.
>
> Thanks,
> Cory
>
> On Wed, Jul 1, 2015 at 2:43 PM, Ryan Crocker <rcrocker at uvm.edu> wrote:
>
>> Hi Cory,
>>
>> So this is what my grid looks like rendered in wireframe, notice the
>> weird line thicknesses.
>> <grid_plot.jpg>
>>
>>
>> and here it is rendered in surface with edges, where it look a normal
>> grid.
>>
>>
>> <surfgrid_plot.jpg>
>>
>> On Jun 29, 2015, at 9:20 PM, Cory Quammen <cory.quammen at kitware.com>
>> wrote:
>>
>> Ryan,
>>
>> I thought this would be straight forward but it does not seem to be. I
>>> want to basically just get a picture of my grid with no background and a
>>> few contours which are lines. To do this i’m trying to set the the color
>>> of the default “Solid Color” to white. No matter what i do it’s always
>>> grey or off white in the view port and when i print it.
>>
>>
>> When you set your object to white, it is still being rendered with
>> lighting, hence the gray surface.
>>
>>
>>> I’ve come close by using wireframe but that makes my grid look weird
>>> (some lines are wider than others for some reason). Is there a way to do
>>> this with surface with edges? That representation of my grid actually
>>> looks like a grid.
>>>
>>
>> In Wireframe representation, you all the lines should be the same width.
>> If that's not the case, it is a bug. Can you post a picture showing the
>> different line widths?
>>
>> Thanks,
>> Cory
>>
>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>>
>>
>> --
>> Cory Quammen
>> R&D Engineer
>> Kitware, Inc.
>>
>>
>>
>
>
> --
> Cory Quammen
> R&D Engineer
> Kitware, Inc.
>
>
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150701/70c61234/attachment.html>
More information about the ParaView
mailing list