Missing texture from dae model

412 views
Skip to first unread message

mcbrided

unread,
Jul 17, 2008, 12:34:52 AM7/17/08
to KML Developer Support - Google Earth Browser Plugin
I am having quite a time getting this dae model to show its texture
within GE or GE Plugin. I opened the dae file in a standalone dae
viewer and sure enough, the texture is showing. What am I missing
when it comes to integrating models using a kml file?

fraser

unread,
Jul 17, 2008, 12:52:05 PM7/17/08
to KML Developer Support - Google Earth Browser Plugin
Hi mcbrided,

Did you create the file? What extension does the file have is it .dae?
As far as I'm aware the .dae file doesn't contain the textures
themselves just the paths to them.

If it is a .dae file open it in a text editor (one that supports xml
highlighting would be good e.g notepad++)
Once it's open find the element <library_images> there should be child
<image> elements here that themselves have <init_from> children.
Check the paths on any of these they should look something like this..

....
<library_images>
<image id="big_rectangular_building_side_1_noCulling-image"
name="big_rectangular_building_side_1_noCulling-image">
<init_from>../images/
big_rectangular_building_side_1_noCulling.jpg</init_from>
</image>
...

You need to make sure that your image textures are located in the
correct directory (in this example a directory called images that is
one level above the relative location of the .dae file)

If you made the model yourself I would suggest outputting the file
in .kmz format instead.
The kmz is just a compressed package of the .dae and texture data eith
a kml file to place it in Google earth.

If you open the kmz file in a compression utility (winzip, 7zip, etc)
you should see something like the following...

<images>
<models>
doc.kml
textures.txt

the .dae file would be in the <models> directory.
The textures would be in the <images> directory
the doc.kml file would have all the model placement data
the textures.txt file should have paths to all the images used

Hope this helps and doesn't confuse!

Regards,

Fraser.

mcbrided

unread,
Jul 17, 2008, 3:52:00 PM7/17/08
to KML Developer Support - Google Earth Browser Plugin
Thank you, Fraser. Your recommendations took care of the texture
issue I was having.

DM
> > when it comes to integrating models using a kml file?- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages