[KMZ convert to gltf, renders differently from what's in Google Earth]

543 views
Skip to first unread message

Xi Mei

unread,
Dec 30, 2014, 6:31:05 PM12/30/14
to cesiu...@googlegroups.com
Hi everyone,

When .kmz file converted to .gltf file, it renders differently (missing details) from what's in Google Earth (see attached images). Could you please help to figure out what caused the problem? Thanks.

Here are the conversion steps:
(1)Change .kmz file to .zip file (.kmz file is attached)
(2)Drag and drop to http://cesiumjs.org/convertmodel.html to convert it to .gltf file

Thank you very much!

Xi
GLTF_Cesium.png
KMZ_GoogleEarth.png
HooverDamtunnelsdetailed.kmz

Patrick Cozzi

unread,
Dec 31, 2014, 8:42:12 AM12/31/14
to cesiu...@googlegroups.com
Hi Xi,

Thanks for providing the model.  This is most likely a bug in the SketchUp COLLADA exporter or the COLLADA-to-glTF converter.  Either way, I suspect we can fix it in the COLLADA-to-glTF converter.  I submitted issue #342 for this.  We'll try to get a fix soon.

In the meantime, there is a simple workaround.  In the glTF file, I removed 3042 from the states array in technique0 and technique1.  I attached a screenshot and the modified glTF file.

Patrick
Screen Shot 2014-12-31 at 8.39.20 AM.png
HooverDamtunnelsdetailed.gltf.zip

Patrick Cozzi

unread,
Jan 2, 2015, 10:46:36 AM1/2/15
to cesiu...@googlegroups.com
Hi Xi,

This is a bug in the SketchUp COLLADA exporter (Google Earth must implement a workaround).  We'll add a workaround to the COLLADA-to-glTF converter.  In the meantime, the easiest fix is to change the 0.0 in the "transparency" part of the .dae file to 1.0 before converting the file:

<transparency>
       <float>0.000000</float>
</transparency>

We'll followup here when the workaround is ready.

Patrick

gowtham.m...@gmail.com

unread,
Jan 6, 2015, 6:19:55 AM1/6/15
to cesiu...@googlegroups.com
Hi Patrick,

The transparency thing worked for me. Thanks for the above fix. If the model referencing any images the tool is unable to convert the model to glTF.

Thanks,
Gowtham.

Patrick Cozzi

unread,
Jan 6, 2015, 7:03:23 AM1/6/15
to cesiu...@googlegroups.com
Hi Gowtham,

If the COLLADA file is references images, make sure to also select those files when dragging and dropping onto the glTF converter?

Or are the images referenced with a url to a server?

Thanks,
Patrick


--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/snu7ZhSNuwI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Patrick Cozzi

unread,
Jan 6, 2015, 4:55:37 PM1/6/15
to cesiu...@googlegroups.com
Hi Xi,

The online converter should work with this model now: http://cesiumjs.org/convertmodel.html

Thanks again for the report!

Patrick
Reply all
Reply to author
Forward
0 new messages