simple-3dviz icon indicating copy to clipboard operation
simple-3dviz copied to clipboard

cannot detect OpenGL context

Open sbharadwajj opened this issue 3 years ago • 1 comments

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

sbharadwajj avatar Mar 15 '21 13:03 sbharadwajj

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

paschalidoud avatar Mar 23 '21 10:03 paschalidoud