[Paraview] Lighting
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Fri Aug 24 13:52:07 EDT 2012
I think by default the "light kit" is off in pvbatch. The GUI turns it
on, and hence its enabled for you in Python shell. try setting
> view.UseLight = 1 # turns on light kit
> view.LightSwitch =0 # turns of default front light
On Fri, Aug 24, 2012 at 1:09 PM, Joe Borġ <mail at jdborg.com> wrote:
> I am trying to renders pictures of a geometry in batch.
>
> However, when I play with the following view.BackLightAzimuth and
> view.BackLightElevation, the light on the object does not move.
>
> When I do these commands in the pyhton shell and then renders it works.
>
> This is the part of the script where I set up the picture:
>
> view = GetRenderView()
> view.CameraParallelProjection = 1
> view.CameraPosition = [1.58, 0, 10]
> view.CameraFocalPoint = [1.58, 0, 0]
> view.CameraViewUp = [0.0, 1.0, 0.0]
> view.CameraParallelScale = 1.66
> view.CenterAxesVisibility = 0
> view.BackLightAzimuth = 0
> view.BackLightElevation = 45
> view.Background = [1,1,1]
> view.ViewSize = [1700, 900]
> Render()
> WriteImage("test.png")
>
>
>
> Regards,
> Joseph David Borġ
> http://www.jdborg.com
>
> _______________________________________________
> 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