Lighting not affecting model

asked 2021-03-25 19:42:44 -0500

I have a simple, image-on-plane model in a bare bones world file with a light. The light does not seem to have any effect on the model. It always appears as if it's being very dimly lit.

Am I missing something important about getting lights working correctly in Ignition Gazebo?

I have tried a variety of experiments with tweaking the light color and including the gui config for the GzScene3D plugin's ambient lighting settings. Nothing I do seems to change the way this model is rendered.

image description

My world file looks like this:

<?xml version="1.0"?>
<sdf version="1.7">
    <world name="training_world">
         <light type="directional" name="sun">
            <pose>0 0 1 0 0 0</pose>
            <diffuse>1 1 1 1</diffuse>
            <direction>0 0 -1</direction>

The model just imports a wavefront mesh file with a jpg texture.

<?xml version='1.0'?>
<sdf version='1.7'>
    <model name='Floor Mat'>
        <link name='link'>
            <visual name='visual'>
                <pose>0 0 0 3.141592 0 0</pose>


mtllib floor_mat_model.mtl
v -0.5715  1.0164 0.0
v  0.5715  1.0164 0.0
v  0.5715 -1.0164 0.0
v -0.5715 -1.0164 0.0
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vn 0.0000 0.0000 1.0000
usemtl floor_mat_material
f 1/1/1 2/2/1 3/3/1 4/4/1


newmtl floor_mat_material
Kd 1 1 1
map_Kd ../materials/textures/fll_mat.jpg
edit retag flag offensive close merge delete