Page 1 of 1

How to change OpenGL options in Pybullet

Posted: Tue Jun 21, 2022 7:19 am
by curieuxjy
My computer spec
  • Ubuntu 20.04
  • Pybullet 3.2.1
I got a problem while loading my sdf file.
The error message was
Workaround for some crash in the Intel OpenGL driver on Linux/Ubuntu
and I found one of the solutions below.
Screenshot from 2022-06-21 15-19-17.png
Screenshot from 2022-06-21 15-19-17.png (30.79 KiB) Viewed 92 times
Followed that solution and selected the Nvidia driver. However, there is no change and it was not solved.

I checked the pybullet GL_OPTIONS:

Code: Select all

GL_VENDOR=Intel
GL_RENDERER=Mesa Intel(R) UHD Graphics (CML GT2)
GL_VERSION=4.6 (Compatibility Profile) Mesa 21.2.6
GL_SHADING_LANGUAGE_VERSION=4.60
and GPU drivers.

Code: Select all

  *-display                 
       description: VGA compatible controller
       product: TU106M [GeForce RTX 2060 Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:164 memory:c4000000-c4ffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:4000(size=128) memory:c5000000-c507ffff
  *-display
       description: VGA compatible controller
       product: CometLake-H GT2 [UHD Graphics]
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 05
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:163 memory:c3000000-c3ffffff memory:a0000000-afffffff ioport:5000(size=64) memory:c0000-dffff

There is my question.

How can I change the GL_OPTIONS to my Nvidia GPU driver?
I couldn't find any instruction for that in Documentations or googling.

If you give me any advice, it will be really helpful for me, a newbie of pybullet.