Home | Tutorials | Wiki | Issues
Ask Your Question

No shadows or lights in Gazebo

asked 2018-11-20 04:22:01 -0500

RandC gravatar image

Hi there!

I'm having trouble setting up a light in Gazebo. I tried with sunlight, directional light and spot light, and the results of each of those are quite similar, something like this.

image description

I don't know what am I doing wrong, but I tried on another computer with the same settings and they work properly.

I'm using Ubuntu 16.04 LTS with ROS Kinetic


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-12-16 09:01:22 -0500

windblow gravatar image

I've seen this happening with every graphics card except nvidia.

edit flag offensive delete link more


You are right. I wonder why this error still happens and it has been lasted half a year.

littleghost gravatar imagelittleghost ( 2019-02-25 22:03:19 -0500 )edit

Could you tell me if you have fixed it out on an Intel GPU's PC?

littleghost gravatar imagelittleghost ( 2019-02-26 06:28:17 -0500 )edit

answered 2018-11-20 12:04:04 -0500

I've seen this happening when Gazebo can't find some material resources it needs. Could you try sourcing the setup file before launching Gazebo?

You can find the file as follows:

find /usr -name setup.sh

Then source it like this for example:

. /usr/local/share/gazebo/setup.sh
edit flag offensive delete link more


I tried to do that, but the sourcing is not clear to me. Should I write "source /usr/share/gazebo/setup.sh"? Because if so, it doesn't work...

RandC gravatar imageRandC ( 2018-11-23 02:50:35 -0500 )edit

Yeah that's what you should do. Run that, and then run Gazebo in the same terminal...

chapulina gravatar imagechapulina ( 2018-11-25 21:34:51 -0500 )edit

Also, if you run Gazebo in verbose mode, do you see any errors? "gazebo --verbose"

chapulina gravatar imagechapulina ( 2018-11-25 21:35:29 -0500 )edit

No error whatsoever. I sourced the path like you said, and then ran Gazebo --verbose. This is the output: Gazebo multi-robot simulator, version 7.14.0 Copyright (C) 2012 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org [Msg] Waiting for master. [Msg] Connected to gazebo master @ [Msg] Publicized address: [Msg] Connected to gazebo master @ [Msg] Publicized address:

RandC gravatar imageRandC ( 2018-11-26 02:53:58 -0500 )edit

Anyone? I'm still having trouble...

RandC gravatar imageRandC ( 2018-12-10 02:38:15 -0500 )edit
Login/Signup to Answer

Question Tools



Asked: 2018-11-20 04:22:01 -0500

Seen: 268 times

Last updated: Nov 20 '18