Skip to content

Instantly share code, notes, and snippets.

@tdurand tdurand/gltf.html
Last active Apr 24, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.