Gazebo | Ignition | Community
Ask Your Question
0

How to add color to a wall from the inside [closed]

asked 2017-08-10 08:53:10 -0500

kchledowski gravatar image

Hello,

I am using .world file to generate a room. In the room, I have colored each wall differently, however, from the inside, the walls stay grey.

I was wondering if there is a way to change the color of the walls from inside.

Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by kchledowski
close date 2017-08-16 08:35:29.128288

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-08-14 19:41:34 -0500

iche033 gravatar image

Not sure if your walls are just boxes or not, but you should be able to apply material to visual of your walls

e.g.

    <visual name="visual">
      <geometry>
        <box>
          <size>5 1 0.2</size>
        </box>
      </geometry>
      <material>
        <ambient>0.2 0.2 0.2 1.0</ambient>
        <diffuse>.421 0.225 0.0 1.0</diffuse>
      </material>
    </visual>
edit flag offensive delete link more

Comments

thanks :) The shadows were the problem - they made parts of my walls grey.

kchledowski gravatar imagekchledowski ( 2017-08-16 08:34:55 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-08-10 08:53:10 -0500

Seen: 324 times

Last updated: Aug 14 '17