-
|
How can I dynamically change the color of a cube? I did the following:
But in the scene I do not see any change. How can I force the change in the color. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
I'm afraid changing the color dynamically is not supported. |
Beta Was this translation helpful? Give feedback.
-
|
@duburcqa following up on this -- I'm curious is there a way to dynamically rescale a loaded mesh at runtime? Assuming my env only has a few objects, I don't need to load too many different assets, but resizing the mesh during training time would be a super helpful DR option for RL |
Beta Was this translation helpful? Give feedback.
One idea: create all the variants ahead of time, either in URDF/Mujoco or with
gs.morphs.Box. Build them all in the scene, but only move the target objects into the primary workspace. At each reset swap the target objects in and out of the workspace. This isn't as easy as just modifying the size and material of the element at runtime, but I assume it should be easy enough.