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

Blank Canvas (Unflushed Rendering) of PlantGL from L-Py animate() #58

Open
deltayoung opened this issue Nov 14, 2023 · 1 comment
Open

Comments

@deltayoung
Copy link

I would like to report a rendering issue that appears since the migration of L-py / PlantGL libraries from Python 2 to Python 3.

From third-party program, OpenAlea.lpy.lsystem.animate() will open PlantGL Viewer to show animation of an L-system in Python 2 without problem.

However, if I run animate() in Python 3, it results in a blank canvas on PlantGL Viewer. I can only display the last frame of the animation if I put some input line such as "input()" or "raw_input()" following the animate() that seems to flush the rendering to show the last frame onto the blank canvas.

I tried to locate the implementation of lsystem.animate() in openalea Github repo to fix it on my end but could not find it. Kindly help. Thanks!

@fredboudon
Copy link
Contributor

If you use it in a Qt application, it should not be a pb. If you use it in a shell script, you should use ipython --gui=qt5.

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

2 participants