benelot / pybullet-gym

Open-source implementations of OpenAI Gym MuJoCo environments for use with the OpenAI Gym Reinforcement Learning Research Platform.
https://pybullet.org/
Other
814 stars 124 forks source link

The bulit-in texture doesn't load correctly #53

Open iota11 opened 4 years ago

iota11 commented 4 years ago

Hi all: I just switch my system from ubuntu to windows, and I found that all of the built-in textures can't be loaded. I just run the demo scene in pybullet gym official examples, and clearly the "checker" wasn't loaded correctly. Y7C003 ZSHF1R EV_JBGISQ I checked the scene file in pybulletgym/envs/asset/mjcf/ground.xml, where it describes

<texture builtin="checker" height="100" name="texplane" rgb1="0 0 0" rgb2="0.8 0.8 0.8" type="2d" width="100"/>

So, am I seeking the wrong file, or are there any more packages needed to install to load the built-in textures?

benelot commented 3 years ago

So it works on linux but not on windows? I think the textures are certainly implemented on the pybullet/bullet3 side, so that should certainly work. I would check if it works on the pybullet examples themselves, and if not, open an issue there. I rely on the underlying pybullet which loads textures and builds the simulations from the xml files.

genericUsername5 commented 3 years ago

I experience the same issue. The pybullet examples from pybullet/bullet3 examples work for me, i.e. if I run: python3 -m pybullet_envs.examples.enjoy_TF_AntBulletEnv_v0_2017may it will render the checker background correctly.

I have tried this with python 3.5 and python 3.8 on Ubuntu 20.04 with the same result.