How Can I Make A Textured Skin For Deformables #2442
Unanswered
lyd405121
asked this question in
Asking for Help
Replies: 2 comments 1 reply
-
Hi is this example useful? https://github.com/google-deepmind/mujoco/blob/main/model/flex/softbox.xml |
Beta Was this translation helpful? Give feedback.
1 reply
-
Solved By Latest Fix
How to Make Flex textured
<flexcomp type="mesh" file="bunny_with_uv.obj" pos="0 0 .1" dim="2" euler="90 0 0"
radius=".001" material="matsponge" mass=".05" name="softbody" dof="trilinear">
<asset>
<texture name="texsponge" type="2d" file="sponge.png"/>
<material name="matsponge" texture="texsponge" specular="0.3"/>
<mesh name="bunny" file="bunny_with_uv.obj" scale="1 1 1"/>
</asset>
<flexcomp type="mesh" mesh="bunny" pos="0 0 .1" dim="2" euler="90 0 0"
radius=".001" material="matsponge" mass=".05" name="softbody" dof="trilinear"/>
Can I contribute my model to mujoco?
<mujoco model="Trilinear">
<include file="scene.xml"/>
<option solver="CG" tolerance="1e-6" timestep=".001" integrator="implicitfast"/>
<size memory="100M"/>
<visual>
<map stiffness="100"/>
</visual>
<asset>
<texture name="texsponge" type="2d" file="sponge.png"/>
<material name="matsponge" texture="texsponge" specular="0.3"/>
</asset>
<worldbody>
<body>
<joint name="press" type="slide" axis="0 0 1" damping="500"/>
<geom type="box" size=".02 .2 .2" pos="0 0 .5"/>
</body>
<flexcomp type="mesh" file="bunny_with_uv.obj" pos="0 0 .1" dim="2" euler="90 0 0"
radius=".001" material="matsponge" mass=".05" name="softbody" dof="trilinear">
<elasticity young="1e3" poisson="0.1" damping="0.001"/>
<contact selfcollide="none" internal="false"/>
</flexcomp>
</worldbody>
<actuator>
<position name="press" joint="press" gear="-1 0 0 0 0 0" ctrlrange="-1 1" kp="1000"/>
</actuator>
</mujoco>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Intro
Hi! I am now developing a tool that can tranform any 3d model into a mjcf softbody automaticlly
My setup
Lastest Verison Between Mujoco 3.2.7 and 3.2.8
My question
Main Question
More Question
Minimal model and/or code that explain my question
My work
It was automaticlly generated by my tool from a mesh of a coffee cup

Then I will make a skin using a distance analyzor for weights and morph compute(Work in progress)
But I am stuck by the texture part. I can't find any acsii reference for textured skin in mjcf
My goal
autogen-softbody.zip
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions