Floor and texture changed black?
I recently needed to reinstall the gazebo8 or gazebo9, but the floor changed black after installing with other functions working fine. I remember that the floor is light grey previously, but the floor and texture becomes black now.
The simulation is too dark to have a clear vision.
My environment is ubuntu16.04 + ros kinetic, and I used this commands to install gazebo8/9:
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install libignition-math3 libsdformat5
sudo apt-get install gazebo8
The light is right and there is no error when I run it in verbose mode. I have reinstalled gazebo8 and gazebo9 many times, they all have black floor. I also tried to add 10 lights and it seems better, but it's too tedious. So I really don't know how to fix it.
Just an idea. Is it possible that the path to your textures has changed after installation? It seems that gazebo can no longer find the texture therefor it renders it black.
Do you know the texture path or how to set it?
I have my materials in usr/share/gazebo-9 folder. I don't know how to set it manually.
I can find the texture in usr/share/gazebo-8 folder too but it still black.
When you open Gazebo check the "Lights" dropdown on the left menu. Maybe you're missing lighting or the lighting is too dark.
ok, but you are using gazebo-9 now, right? Can you find the textures also in usr/share/gazebo-9 folder? Maybe that is where the gazebo is looking for it.
When you run in verbose mode, do you get any warnings about missing material files?
"Lights", "texture" and "verbose mode" is all normal, I put a pic in answer, please check.
Please remove the answer, and update the question with the picture instead ;)
I've got the right to upload pictures recently.