Gazebo | Ignition | Community
Ask Your Question

Change color of one side of box

asked 2019-10-17 07:02:25 -0500

elemecro gravatar image

Hi. I am applying a texture to a box in gazebo. The texture is applied uniformly to all sides of the box. I want it to be applied on only one side of the box..Any idea how to do that?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-10-18 01:39:05 -0500

chapulina gravatar image

updated 2019-10-18 02:18:07 -0500

There could be a way achieve this kind of control over which faces the texture is displayed on from an Ogre script, but I haven't looked into it.

  • One common approach I see is to create a COLLADA model of a box with proper UV mapping. See this tutorial for example.

  • Another approach is to create a box with 6 other thin boxes on its sides and give those boxes colors / textures. That's how I did the Rubik's cube stickers here.

edit flag offensive delete link more


Problem is, I want to do it in gazebo...More specifically, I want to color one side of box among several boxes to differentiate wrt one side only...

elemecro gravatar imageelemecro ( 2019-10-18 02:09:59 -0500 )edit

I added another option above. I don't think there's any other way.

chapulina gravatar imagechapulina ( 2019-10-18 02:18:40 -0500 )edit

Thanks a lot..This is what I am already doing but the world file is becoming too long.

elemecro gravatar imageelemecro ( 2019-10-18 02:30:03 -0500 )edit

Question Tools

1 follower


Asked: 2019-10-17 07:02:25 -0500

Seen: 1,898 times

Last updated: Oct 18 '19