simple-3dviz
simple-3dviz copied to clipboard
cannot detect OpenGL context
Hi,
I am trying to visualize a voxel grid and the code I use is:
m = Mesh.from_voxel_grid(
voxels=voxels,
sizes=(0.49,0.49,0.49)
)
show(
Mesh.from_voxel_grid(voxels=voxels),
light=(-1, -1, 1),
)
this is the error I get:
return x11.create_context(**kwargs)
Exception: (detect) glXGetCurrentContext: cannot detect OpenGL context
I installed wxpython
from source using this link. I am unable to figure out where my mistake is as I am still new to voxel rendering.
Any help regarding this would be very appreciated. Thank you
Hi @sbharadwajj,
Sorry for taking so long to reply. From the error message, you provided, it seems that the error you are getting is due to a problem with the installation of wxpython.
What is the wxpython version that you are using? Are you using a conda environment to install simple-3dviz? We have tested simple-3dviz with wxpython=4.0.7 and it seems to be working fine.
If you are using conda, you can try installing wxpython from this link.
Best, Despoina