Gazebo | Ignition | Community
Ask Your Question
2

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 http://answers.gazebosim.org/question...

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:

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

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 https://github.com/osrf/car_demo/blob...

Thanks in advance,

Matt

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
0

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

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
0

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
0

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

Question Tools

1 follower

Stats

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

Seen: 7,634 times

Last updated: Oct 26 '21