Gazebo | Ignition | Community
Ask Your Question

Exporting model and textures from Blender

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

ROSAgriculture gravatar image

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

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

2 Answers

Sort by » oldest newest most voted

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

rmv24 gravatar image

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

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 -0500

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
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 1,671 times

Last updated: Aug 14 '19