Gazebo | Ignition | Community
Ask Your Question

Gazebo grass/pavement plane flickering

asked 2013-07-10 02:44:43 -0600

ZdenekM gravatar image

Hi all,

I built a simple model of outdoor environment using grass plane and pavement plane models (from DRC simulator database). My world file looks like this:

<?xml version='1.0'?>
<sdf version='1.4'>
  <world name='default'>
    <light name='sun' type='directional'>
      <pose>0.000000 0.000000 10.000000 0.000000 0.000000 0.000000</pose>
      <diffuse>0.800000 0.800000 0.800000 1.000000</diffuse>
      <specular>0.200000 0.200000 0.200000 1.000000</specular>
      <direction>0.500000 0.100000 -0.900000</direction>

    <pose>0 0 0   0 0 0</pose>

      <physics type='ode'>
      <gravity>0.000000 0.000000 -9.800000</gravity>
      <ambient>0.400000 0.400000 0.400000 1.000000</ambient>
      <background>0.700000 0.700000 0.700000 1.000000</background>

    <state world_name='default'>
      <sim_time>0 0</sim_time>
      <real_time>0 207512</real_time>
      <wall_time>1372662656 276170409</wall_time>
    <gui fullscreen='0'>
      <camera name='user_camera'>
        <pose>3.082640 -6.458740 2.425810 0.000000 0.367643 2.028200</pose>

  <!-- road segment ******************************    -->  
    <pose>0 0 0   0 0 0</pose>

    <pose>0 -1 0   0 0 0</pose>

    <pose>0 2 0   0 0 0</pose>

    <pose>0 1 0   0 0 0</pose>

    <pose>0 -2 0   0 0 0</pose>


When moving camera in Gazebo GUI planes are somehow flickering - at some position it looks good but in some other there are "holes". Also images published by robot cameras are flickering too.

See pict1, or pict2 (can't upload here because of karma).

I tried to downscale textures but it's same. Any ideas? Thanks in advance.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-07-15 01:02:12 -0600

John Nagle gravatar image

Flickering in OpenGL is generally an indication that you have two faces which are very close together, close enough that they render to the same Z-buffer value. Two instances of the same object at the same location will do it.

edit flag offensive delete link more

answered 2013-07-10 02:50:24 -0600

ZdenekM gravatar image

Ok, solved. Commented out ground_plane and now it's fine.

edit flag offensive delete link more

Question Tools


Asked: 2013-07-10 02:44:43 -0600

Seen: 3,552 times

Last updated: Jul 15 '13