pptk
pptk copied to clipboard
v.capture() doesn't work with pptk
Hi,
I want to save the view of the loaded pointcloud in the viewer as a png file. I tried using v.capture() but it just gives black image.
Am I missing something `?
Thanks
RIP pptk
I meet this problem too, when i run python script in terminal is ok, but run python script in vscode is give me black image
You can "fix" this yourself by adding a viewer.wait() or a time.sleep(20). It appears, that the capture is faster than the building of the point cloud.
You can "fix" this yourself by adding a viewer.wait() or a time.sleep(20). It appears, that the capture is faster than the building of the point cloud.
add wait() before or after capture()?
Hi,
I want to save the view of the loaded pointcloud in the viewer as a png file. I tried using v.capture() but it just gives black image.
Am I missing something `?
Thanks
have you solved this?
Hi,
I had this issue when I played with the background color, e.g. v.set(bg_color = [0, 0, 0, 0]) It worked when the alpha value is 1, like this: v.set(bg_color = [0, 0, 0, 1])
I found this solution on a StackOverflow thread: https://stackoverflow.com/questions/70037260/python-pptk-screen-capture-is-empty