Gazebo | Ignition | Community
Ask Your Question

Exporting model and textures from Blender

asked 2019-08-06 18:26:11 -0600

ROSAgriculture gravatar image

updated 2019-08-07 09:33:08 -0600

This is a similar question to

I have a 3d model of a plant image description

When I export it as a .dae from Blender it exports the file into multi parts

image description

When I add the plant to my URDF file:

  <origin xyz='1.55 0 0' rpy='0 0 0' />
    <mesh filename="package://lawn_tractor_sim/meshes/beet/beet.dae" scale='1 1 1'/>

It shows up grey in simulation and in RVIZ:

image description

Is there a tutorial on how to export a model from blender and get the textures to show up in gazebo?

When I try to export it as a .obj from Blender I get two files .mtl and .obj but not sure how to load them or where the textures are. The obj looks like a different approach. How are these images made and exported

Thanks in advance,


edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2021-10-26 03:48:56 -0600

TheClem gravatar image

I know this is an old question but I see no answers yet.

This might be about enabling the texture when you export .dae file. I have exported AR-tag which I used a simple square plate and the AR-tag image as a texture. It is much more simplistic than your model but I guess the process is the same and I am able to see the texture in Gazebo. This tutorial might help.

edit flag offensive delete link more

answered 2019-08-14 15:08:55 -0600

rmv24 gravatar image

updated 2019-08-14 15:10:41 -0600

When you export as a collada (dae) file from Blender, you should see an option on the left to import textures as well, it's quite easy to miss it.

C:\fakepath\Screenshot from 2019-08-14 15-12-22.png

edit flag offensive delete link more

answered 2019-08-13 08:09:28 -0600

kumpakri gravatar image

Is there perhaps a reference in your DAE file to some JPG file? Is this JPG file present in the model folder under the file structure materials/textures/?

The structure of a model folder for models with mesh geometry given by DAE file should be

├── materials
│   └── textures
│       └── model_name.jpg
├── meshes
│   └── model_name.dae
├── model.config
└── model.sdf
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-08-06 17:49:50 -0600

Seen: 7,352 times

Last updated: Oct 26 '21