Exporting model and textures from Blender
This is a similar question to http://answers.gazebosim.org/question/22437/the-question-is-regarding-collada-dae-file/
I have a 3d model of a plant
When I export it as a .dae from Blender it exports the file into multi parts
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:
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/master/car_demo/models/mcity/materials/textures/RailroadGate.png
Thanks in advance,
Matt
Asked by ROSAgriculture on 2019-08-06 17:49:50 UTC
Answers
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
Asked by kumpakri on 2019-08-13 08:09:28 UTC
Comments
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
Asked by rmv24 on 2019-08-14 15:08:55 UTC
Comments
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.
Asked by TheClem on 2021-10-26 03:48:56 UTC
Comments