Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

gazebo5 specular in material does not work !

this is my sdf file.

and I expect my ball would reflect blue specular light

but nothing happened,It just appear whole dark

what am I doing wrong??

thanks!

<model name='socket'>
    <pose> 0 0 0 0 0 0 </pose>
    <link name="link">
        <collision name="collision">
            <geometry>
                <sphere>
                    <radius>0.1</radius>
                </sphere>
            </geometry>
        </collision>
        <visual name="visual">
            <material>
                <ambient>0 0 0 1</ambient>
                <diffuse>0 0 0 1</diffuse>
                <specular>0 0 1 1</specular>
            </material>
            <geometry>
                <sphere>
                    <radius>0.1</radius>
                </sphere>
            </geometry>
        </visual>
    </link>
</model>

image description

gazebo5 specular in material does not work !

this is my sdf file.

and I expect my ball would reflect blue specular light

but nothing happened,It just appear appears whole dark

what am I doing wrong??

thanks!

<model name='socket'>
    <pose> 0 0 0 0 0 0 </pose>
    <link name="link">
        <collision name="collision">
            <geometry>
                <sphere>
                    <radius>0.1</radius>
                </sphere>
            </geometry>
        </collision>
        <visual name="visual">
            <material>
                <ambient>0 0 0 1</ambient>
                <diffuse>0 0 0 1</diffuse>
                <specular>0 0 1 1</specular>
            </material>
            <geometry>
                <sphere>
                    <radius>0.1</radius>
                </sphere>
            </geometry>
        </visual>
    </link>
</model>

image description