Home | Tutorials | Wiki | Issues
Ask Your Question
0

Change color of one side of box

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

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
1

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

chapulina gravatar image

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

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

Comments

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 -0600 )edit

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

chapulina gravatar imagechapulina ( 2019-10-18 02:18:40 -0600 )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 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 55 times

Last updated: Oct 18