Hey!
I am currently trying to build an animation out of multiple screenshots from VTK.
However, when doing X screenshots in an iteration with moving actors on a transparent background, I receive some kind of “traces” of the actors. See Image
Is there any way for you to share the data and the script or some way to reproduce the case ?
This could be related to some sort of temporal interpolation in the animation where you might want it to snap to the steps instead of interpolate. It is hard to say though for me without a way to reproduce the issue.
Thanks for your fast response.
Unfortunately sharing the whole system is not possible but I can provide the code for the “animation”. Basically the animation is only rotating two actors.
for i in range(0,20):
#time.sleep(1)
glyph.RotateX(1/100.0*i)
profile.RotateX(1/100.0*i)
glyph.RotateY(1/100.0*i)
profile.RotateY(1/100.0*i)
w2if = vtk.vtkWindowToImageFilter()
w2if.SetInput(renWin)
w2if.SetInputBufferTypeToRGBA()
w2if.ReadFrontBufferOff()
w2if.Update()
writer = vtk.vtkPNGWriter()
writer.SetFileName("Output/" + datetime.datetime.now().strftime("%Y-%m-%d")+"_"+str(i)+".png")
writer.SetInputConnection(w2if.GetOutputPort())
writer.Write()
yes indeed I tried also with renWen.Render().
I am currently working from my macbook and somehow I have this feeling that this might be MacOS related (dont ask me why, just a feeling). Hopefully it is MacOS related and I can render at home with my windows machine properly.Otherwise i’m getting really desperate.
This may indeed be related, especially if your Mac is recent.
Otherwise have you tried to make a screenshot outside the animation ? Does it works correctly ?
Another thing that could make this happen is very very large data, because I suspect the “traces” you see are induced by precision error in your actor framebuffers. What are the bounding boxes of your data ?
Hey thanks for participating.
My macbook pro is from 2013, so still intel.
So I also did make a screenshot with a single Rotate execution - still happening. Each node/connection is shown double then, once the original position and one time in the rotated position.
Is RotateX/RotateZ creating copies? I haven’t found anything stating this, but it somehow looks like.
The dimensions are: 302 nodes, 537 edges. I brought that data to a cube of dimensions 1x1x1.