t3-rs-geo
is a stylized, WebGL data driven globe.
<script src="/t3-rs-geo.umd-es2015.min.js"></script>
<script>
var globe = new t3_rs_geo.Globe(window.innerWidth, window.innerHeight, {tiles: t3_rs_geo.GRID_LQ});
document.getElementById('elm').appendChild(globe.domElement);
globe.ready.then(() => {
(function tick() {
globe.tick();
requestAnimationFrame(tick);
})();
});
</script>
View the @redsift/t3-rs-geo 101 on Codepen
Custom colors, High Quality example on Codepen
Interactive, High Quality example on Codepen
This globe started out as a fork of Robert Scanlon's excellent encom-globe. It was converted to a standalone project as the API and direction of the component departed from the objectives of the original. Significant changes include an update to the current (Jan 2017) version of THREE.js, exposing mostly everything for customization, a rewrite as an ES6 module, use of mesh lines and SDF rendering among other changes.
...
The globe requires vertex data to render the globe and the various land masses. The precompiled bundle includes a row resolution hex grid as part of the t3_rs_geo
object. Higher quality JSON files are also provided and can be loaded on demand. The companion repository t3-rs-geo-tiles generates these tiles and can be used to tweak the grid and the mappings.
Chrome 56
- Merge scale indicator
- Add user data to hit testing
- Fog scaling
- Higher res con trails
- Noise in trail
- Normalise speed
- Path direction
- Programmatic panning and animated transitions
- Animate base color
- Make wiggle a scale function
- HDR function
- Align API
- Atmosphere shader
- Ocean shader
- Docs / examples
This software is substantially based on encom-globe by Robert Scanlon, licensed under MIT.
The MIT License (MIT) Copyright (c) 2014 Robert Scanlon
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.