Gazebo | Ignition | Community
Ask Your Question
0

Custom Collada Model with Texture

asked 2015-08-20 14:17:23 -0600

turning_wheels gravatar image

Hi

I'm going on crazy, read for hours through Tutorials and Forum threads but there seems not to be one working example of how to get your own model from Blender to Gazebo INCLUDING a texture. I have no problem to display the model only without color when exporting to .dae and referencing it in an sdf. But the textures simply won't show, it stays grey and there are not even error messages in the ogre log. And it's not the addresses: I can copy the exact folder structure and relative paths from the coke model, but to no avail. Does one need to consider something special when exporting from Blender? Something in the DAE/texture setting that is not supported? The documentation on these features is a catastrophy...

Thank you for your help!

edit retag flag offensive close merge delete

Comments

Here is an example with the stanford bunny on which i tried to put an arbitrary texture: http://www.file-upload.net/download-10854074/textured_bunny2.dae.html - What is wrong with the file?

turning_wheels gravatar imageturning_wheels ( 2015-08-20 15:19:53 -0600 )edit

@turning_wheels I have your same problem. I want to import a simple plane (or a tiny cube) with a painting on one of its faces. With Blender no problem, but when I import collada model into Gazebo, the model looks completely black. Do you have resolved? Thanks

jony gravatar imagejony ( 2017-05-02 12:30:40 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-08-21 10:04:04 -0600

nkoenig gravatar image

When using blender, make sure to export a collada file with textures (the checkbox is off by default in blender). You'll also need to texture map your mesh in blender. There are numerous tutorials about texture mapping with blender on the blender website.

Once you have successfully exported a collada file and the textures, you can create your model. It's a good idea to look at an example that works. The key points are to put texture files in the materials subdirectory.

If you're loading a mesh that is suppose to have a texture and ogre reports no errors, then your collada file probably has no texture information.

edit flag offensive delete link more

Comments

By the way, feel free to contribute a new tutorial or update a existing tutorial. They are all open, and we would welcome any improvements you'd like to make.

nkoenig gravatar imagenkoenig ( 2015-08-21 10:05:23 -0600 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2015-08-20 14:17:23 -0600

Seen: 3,450 times

Last updated: Aug 21 '15