Skip to main content
100%

three.js - Jotunheimen

✓ Published0🌍 Public
Aalanmclean
Last edited Feb 3, 2014
Created on Feb 3, 2014

A GPS track of a run in Jotunheimen, Norway, is rendered as a single continuous line floating in 3D space using Three.js. The code loads an XML activity file and extracts trackpoints, mapping latitude and longitude coordinates through a D3 transverse Mercator projection into Three.js vector positions, while altitude values are ignored in favor of a fixed z-coordinate. The line is drawn with `THREE.Line` and `LineBasicMaterial`, and the scene uses an ambient light and a perspective camera for a static WebGL view.

AI-generated description

Similar vizzes