angeloskath / simple-3dviz

A library for 3D visualization with moderngl
http://simple-3dviz.com/
Other
134 stars 22 forks source link

cannot detect OpenGL context #3

Open sbharadwajj opened 3 years ago

sbharadwajj commented 3 years ago

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

paschalidoud commented 3 years ago

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