pptk icon indicating copy to clipboard operation
pptk copied to clipboard

v.capture() doesn't work with pptk

Open ricky3087 opened this issue 3 years ago • 6 comments

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

ricky3087 avatar Jun 14 '21 12:06 ricky3087

RIP pptk

connexionist avatar Jun 21 '21 00:06 connexionist

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

zhaobo0564 avatar Sep 28 '21 11:09 zhaobo0564

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.

FrederikHasecke avatar Oct 06 '21 08:10 FrederikHasecke

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()?

xianyu-wang avatar Nov 14 '22 08:11 xianyu-wang

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?

xianyu-wang avatar Nov 14 '22 14:11 xianyu-wang

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

rstamatov avatar Feb 16 '23 15:02 rstamatov