Unable to create custom texture reference using an image #556
itsron143
started this conversation in
Ask for help
Replies: 1 comment 2 replies
-
Please look at the mujoco xml documentation, https://mujoco.readthedocs.io/en/2.3.6/XMLreference.html#asset-texture |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to create a sand-like texture using a
sand.png
as the reference image.(These additions can be found here)
Following the implementations of
textures/_checker.py
andtextures/_.gradient.py
, I createdtextures/._sand.py
:I'm using this with a
sand.png
file to create a custom terrain with a modular robot similar toexamples/1b_custom_terrain
:However, when I try to run this custom example I get the following error:
The complete error stack trace can be found here.
From what I understand,
content_type
is an attribute ofTextureReference
and notTexture
, so I'm unable to understand how to resolve this.All my additions to the code can be found here.
Any help will be really appreciated!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions