Gazebo | Ignition | Community
Ask Your Question

tiled floor textures

asked 2014-11-07 08:01:53 -0500

Andrea gravatar image

updated 2015-06-12 03:58:45 -0500

Hello everybody, I am trying to put some textures on the ground plane of my world file (I need features for the optical flow). I have a picture of the floor of the arena and I would like to use it as a texture. However, the picture itself is much smaller than the arena and setting the <size> attribute in the sdf file will stretch it, lowering the overall resolution.

What I would like to do is tiling the texture over all the floor. How can I do it? Here my material script

material labrob/cobblestone { 
receive_shadows on  
technique   {
        ambient 0.000000 0.000000 0.000000 1.000000         
            emissive 0.000000 0.0000000 0.000000 1.000000
            lighting on         
            texture_unit        {       
          texture cobblestone.jpg       

Thank you very much


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-13 14:07:46 -0500

chapulina gravatar image

You could use scale inside your texture_unit to repeat the texture several times in the same area. The asphalt_plane is a good example, there the texture is repeated 10 times in each direction.

The scale should be [1 1] by default, a scale of [0.5 0.5] would repeat the texture twice in each direction and so on.

edit flag offensive delete link more


That solved my problem. Thank you very much!

Andrea gravatar imageAndrea ( 2015-06-23 02:55:38 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-11-07 08:01:53 -0500

Seen: 2,852 times

Last updated: Jun 13 '15