Gazebo | Ignition | Community
Ask Your Question
0

How to add texture to my dae file without transparency.

asked 2020-12-08 00:15:40 -0500

283pm gravatar image

Hello.

I create dae file on Blender. In Blender, leaves are not transparent. However, in gazebo, leaves have transparency.

If I turned off transparent view, I got the last picture, but I want to add transparency to black area.
How do I insert leaves in gazebo as in Blender.

in blender texturein gazebo image description

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2020-12-18 13:26:48 -0500

iche033 gravatar image

you can take a look at the oak_treemodel as example: https://github.com/osrf/gazebo_models...

It uses a material with a pass that sets the alpha_rejection param: https://github.com/osrf/gazebo_models...

edit flag offensive delete link more
0

answered 2020-12-18 12:50:09 -0500

Cole gravatar image

Hi,

You'll want your transparency map stored in the alpha channel but you don't want to save the file as a transparent image. A good plugin for this for photoshop is SuperPNG. You'll see a dialog like this and you'll want to make sure "Alpha" is checked.

image description

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-12-08 00:15:40 -0500

Seen: 133 times

Last updated: Dec 18 '20