Skip to content

Instantly share code, notes, and snippets.

@tdurand
Last active April 24, 2019 19:57
Show Gist options
  • Save tdurand/5dda31dd03d0a561cccb8a9af1a85cb2 to your computer and use it in GitHub Desktop.
Save tdurand/5dda31dd03d0a561cccb8a9af1a85cb2 to your computer and use it in GitHub Desktop.
GLTF viewer of maps3d.io
<html>
<head>
<title>Model Viewer - Google</title>
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.js"></script>
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>
<style>
html, body {
font-family: sans-serif;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<model-viewer
src="/static/demo/valley_montblanc.glb"
alt="A 3D map of mont blanc valley"
auto-rotate
camera-controls
background-color="#455A64"
style="width:100%;height:100%"
>
</model-viewer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment