Adding water to the world
Hey, I am creating a world for Submarine robotics competition. In the attached image I want to add water in the pool area. I tried playing around with model.sdf.
<visual name="surface">
<cast_shadows>false</cast_shadows>
<pose>0 0 0 0 0 0</pose>
<geometry>
<box>
<size>60 60 .1</size>
</box>
</geometry>
<material>
<script>
<uri>model://ocean_box/materials/scripts</uri>
<uri>model://ocean_box/materials/textures</uri>
<name>/Water</name>
</script>
</material>
</visual>
Asked by Charlie Brown on 2017-11-11 14:30:07 UTC
Answers
If that texture in case is the one available here, I would advise you to use a separate mesh like it is set in this SDF file. This shader is supposed to displace the mesh vertices, so I think using a simple box geometry it won't work as expected.
Asked by musamorena on 2018-07-20 03:23:18 UTC
Comments
Your SDF file is referring to a model called
ocean_box
, do you have that model and its materials?Asked by chapulina on 2017-11-11 14:35:25 UTC
Yes, I do. Is better to make a dae from Blender or somethign for my water surface in the pool ?
Asked by Charlie Brown on 2017-11-12 13:58:57 UTC
You can get similar results with a separate mesh for the water or a texture on the same mesh. It's a matter of what you are more comfortable doing.
Asked by chapulina on 2017-11-12 20:46:06 UTC