Texture is lost when importing a simple .dae COLLADA object from SketchUp

This topic has been viewed 3202 times and has 1 replies
Thread status: Active
Looking for a particular 3D model or texture? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
kongo09
Posts: 1
Joined: Sun Feb 07, 2016 3:25 pm

Texture is lost when importing a simple .dae COLLADA object from SketchUp

Post by kongo09 »

I created a very simple box shaped object in SketchUp and mapped a photo as texture to two sides. I colored the other sides. Then, I export the object using File->Export->3D Model as a .dae file. The option to include texture maps is checked.

When I now use the latest SH3D to import furniture, the object is loaded with the right dimensions, but without any texture.

Looking at the .dae file, I must admit that I don't see any reference to the texture in the XML content (without really understanding the file format).

What am I missing?
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: Texture is lost when importing a simple .dae COLLADA object from SketchUp

Post by okh »

Most likely reason: When Sketchup saves a textured .dae file, it creates a subdirectory with the same name as the .dae file with the textures. The .dae file has relative links to the textures, so if the directory is no longer available--e.g. if the .dae file was moved--SH3D will not find the textures when the .dae file is imported. A texture link in a .dae file looks something like this.

ok

Code: Select all

...
<library_images>
  <image id="ID5">
   <init_from>xxx/xxximagexxx.png</init_from>
...
...
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest