[Paraview] blank screen,
Battalgazi YILDIRIM
yildirimga at gmail.com
Thu Apr 9 09:01:54 EDT 2009
Hi again,
My background would be updated (still black) even when I tried to use
view.Background = [1,0,0].
Thanks,
On Thu, Apr 9, 2009 at 8:49 AM, Utkarsh Ayachit <utkarsh.ayachit at kitware.com
> wrote:
> Hmm, I am not sure what's happening. Try changing the background color
> of the view to something non-black. Is the color being updated?
>
> view.Background = [1, 0, 0]
>
>
> On Thu, Apr 9, 2009 at 8:37 AM, Battalgazi YILDIRIM
> <yildirimga at gmail.com> wrote:
> > Hi,
> >
> > I tried to write png file (view.WriteImage("image.png",
> "vtkPNGWriter",1)
> > ), and I got following error
> >
> > Warning: In
> >
> /home/yildirim/projects/ParaView3/Servers/ServerManager/vtkSMRenderViewProxy.cxx,
> > line 1110
> > vtkSMIceTDesktopRenderViewProxy (0x2630390): Disabling offscreen
> rendering
> > since empty image was detected.
> >
> > and image is blank too (visualized with gimp)
> >
> > Thanks,
> >
> > On Wed, Apr 8, 2009 at 10:17 PM, Utkarsh Ayachit
> > <utkarsh.ayachit at kitware.com> wrote:
> >>
> >> Is the render window popping up behind some other window?
> >> Try capturing an image using:
> >> view.WriteImage("C:/temp/image.png", "vtkPNGWriter", 1)
> >> Is that blank too?
> >>
> >> Utkarsh
> >>
> >> On Wed, Apr 8, 2009 at 3:29 PM, Battalgazi YILDIRIM
> >> <yildirimga at gmail.com> wrote:
> >> > Hi,
> >> >
> >> > I have been reading Paraview Scripting with Python document.
> >> > I have installed paraview from ubuntu repository. Everything was
> >> > working ok for following script (I could see a cone on the pop-up
> window
> >> > as
> >> > in
> >> > Paraview Scripting with Python manual).
> >> >
> >> > I decided to download the source code and build it from scratch. It
> was
> >> > ok
> >> > Paraview was working correctly, but now this script works but I got
> >> > blank pop-up windows and don't see the cone any more.
> >> >
> >> >
> >> > do yo have any idea what might have been gone wrong?
> >> >
> >> > Thanks,
> >> >
> >> >
> >> > from paraview import servermanager
> >> > import time
> >> > import os
> >> >
> >> > connection=servermanager.Connect('localhost')
> >> > coneSource = servermanager.sources.ConeSource()
> >> > coneSource.Resolution = 32
> >> > coneSource.Center[0:3]=[1,2,3]
> >> >
> >> > shrinkFilter = servermanager.filters.ShrinkFilter(Input=coneSource)
> >> >
> >> > shrinkFilter.UpdatePipeline()
> >> > shrinkFilter.UpdatePipelineInformation()
> >> >
> >> > view = servermanager.CreateRenderView()
> >> > rep = servermanager.CreateRepresentation(shrinkFilter, view)
> >> > view.StillRender()
> >> > view.ResetCamera()
> >> > view.StillRender()
> >> > time.sleep(4)
> >> > --
> >> > B. Gazi YILDIRIM
> >> >
> >> > _______________________________________________
> >> > 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
> >> >
> >> >
> >
> >
> >
> > --
> > B. Gazi YILDIRIM
> >
>
--
B. Gazi YILDIRIM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090409/df312351/attachment.htm>
More information about the ParaView
mailing list