mourner / icomesh

Fast JavaScript icosphere mesh generation library for WebGL visualizations
https://observablehq.com/@mourner/fast-icosphere-mesh
ISC License
55 stars 4 forks source link

Cylindrical UV mapping #6

Open IvanSanchez opened 5 years ago

IvanSanchez commented 5 years ago

Enhancement request: Exactly like #4, but for cylindrically-projected textures (e.g. map images in EPSG:3857 CRS).

Should take a 3-component vector as an input, the orientation of the cylinder. e.g. [0, 0, 1] for cylindrical mercator and [cos a, sin a, 0] for traverse cylindrical mercator.

I assume that the most useful output would be coordinates of a EPSG:3857 zoom-level-zero map tile; but I also assume that mapping [x,y,z] to cylindrical coordinates (where the height is unbound) would be the first step towards EPSG:3857 texture coords.