heremaps / pptk

The Point Processing Toolkit (pptk) is a Python package for visualizing and processing 2-d/3-d point clouds.
https://heremaps.github.io/pptk
MIT License
610 stars 112 forks source link

v.capture() doesn't work with pptk #53

Open ricky3087 opened 3 years ago

ricky3087 commented 3 years ago

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

connexionist commented 3 years ago

RIP pptk

zhaobo0564 commented 2 years ago

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

FrederikHasecke commented 2 years ago

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.

xianyu-wang commented 1 year ago

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 commented 1 year ago

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?

rstamatov commented 1 year ago

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