gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.17k stars 477 forks source link

Transparency tag ignored when models loaded from world/programatically #1726

Closed osrf-migration closed 8 years ago

osrf-migration commented 9 years ago

Original report (archived issue) by Cristian Dobra (Bitbucket: dobracristian).


Gazebo ignores transparency tag when models are loaded from world or programatically from a plugin, but if the models are inserted from Insert menu, the models are transparent.

Used files:

namespace gazebo { class InsertBox : public WorldPlugin { public: void Load(physics::WorldPtr _parent, sdf::ElementPtr /_sdf/) { _parent->InsertModelFile("model://box"); } }; GZ_REGISTER_WORLD_PLUGIN(InsertBox) }


 * `insert_box.world`

<?xml version="1.0"?>

model://ground_plane model://sun model://box 0 0 2 0 0 0
* `box.sdf`

<?xml version="1.0"?>

0 0 0.5 0 0 0 1 1 1 1 1 1 0.5

![tr2.png](https://osrf-migration.github.io/gazebo-gh-pages/data/bitbucket.org/repo/jgXqbo/images/4207088142-tr2.png)
The one from the left is added via drag and drop, the two from the right are from the world file.
osrf-migration commented 8 years ago

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


pull request #1967

osrf-migration commented 8 years ago

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


pull request #1987 to default (gazebo7)

osrf-migration commented 8 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


See also #1790. Should I have posted that here?

osrf-migration commented 8 years ago

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


pull request #2031

osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).