Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ricky3087 opened this issue Jun 14, 2021 · 6 comments
Open

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

ricky3087 opened this issue Jun 14, 2021 · 6 comments

Comments

@ricky3087
Copy link

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
Copy link

RIP pptk

@zhaobo0564
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants