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

Remove Hardcoded Platform in PYOPENGL_PLATFORM #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tempoxylophone
Copy link

Hello,

Thank you for your amazing work on this repository! I have been trying to use the visualization tools in src/body_visualizer/tools/vis_tools.py and encountered issues with PyOpenGL. The fix was to follow this here: MPI-IS/mesh#66

When installing this library with pip, pip install git+https://github.com/nghorbani/body_visualizer, the code within the file that overwrites the environment variable PYOPENGL_PLATFORM to always be egl can cause issues. Like in the linked issue, we needed the platform to be set at osmesa for our render code to work.

I've also add the small change in the function meshes_as_png in the same file. The change makes no functional difference, but the argument order in the constructor of MeshViewer was flipped so that width was height and height was width. This is just so that future readers of this code may save a minute or two figuring out why their images look odd if they change the height and width to other values that are not square.

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

Successfully merging this pull request may close these issues.

1 participant