Pergunta

Is there any HTML5/javascript/webgl viewer of KMZ KML 3D OBJECTS ?

i would like to use WEBGL technology to render kmz/kml 3d object (building) created in sketchup and uploaded to google warehouse.

Target is to use browser technologies instead of flash/java to render 3D product overview on white backgrdound with only horizontal rotation.

Thank you for any suggestions

Foi útil?

Solução

Three.js has a ColladaLoader. SketchUp can export to Collada, and that's what KMZ files use. It's the .dae file in the KMZ.

Outras dicas

I built a small library called kamikmz exactly for this purpose. The problem with loading a Collada model straight up is that you need to have the images referenced as textures available on the correct path as well. To overcome this issue I use the jszip library to unzip the kmz file right in the browser and the pass it to threejs.

Right now the library is still in development and has some performance issues when it comes to loading large models, however it works fine for most cases.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top