pixelplanet/utils
2020-01-08 00:02:01 +01:00
..
country-locations update country location script 2020-01-02 19:07:00 +01:00
ocean-tiles update readme and ocean tile loading scripts 2020-01-02 19:05:21 +01:00
osm-tiles Mirror repository for github 2020-01-02 17:58:06 +01:00
checkProxy.js Mirror repository for github 2020-01-02 17:58:06 +01:00
geoiplookup.sh Mirror repository for github 2020-01-02 17:58:06 +01:00
getipintel.sh Mirror repository for github 2020-01-02 17:58:06 +01:00
proxyConvert.sh Mirror repository for github 2020-01-02 17:58:06 +01:00
README.md fix readme, add note to github repository 2020-01-02 18:28:54 +01:00
redisConvert.js Mirror repository for github 2020-01-02 17:58:06 +01:00
redisCopy.js add backup functions 2020-01-08 00:02:01 +01:00
sphere-projection.blend Mirror repository for github 2020-01-02 17:58:06 +01:00
sql-commandtest.js Mirror repository for github 2020-01-02 17:58:06 +01:00
websockettest.py Mirror repository for github 2020-01-02 17:58:06 +01:00

Utils for map creation, conversion, 3d models and related stuff

Note:

  • we use blender 2.8
  • js script are executed with babel-node

sphere-protection.blend

This blend file includes the sphere we use to display the globe with two UV maps, one for protection like it's used on many globe textures of the earth like here and here and one for our mercator projection that is the same as on OpenStreetMap, with additional changes for poles. The shader nodes in the bumpmap material are setup so that they bake from one uv map to another.

If you want to generate the .glb model file for the site thats in public/globe/globe.glb:

  1. delete all materials of the sphere
  2. delete the "fake-mercator" uv map, so that just the mercator one is left
  3. create a new one without textures
  4. name the material "canvas" (this will then be set by the script to the canvas textures)
  5. select the sphere and export as .glb

ocean-tiles

Used to generate tiles based on a uv texture that can then be drawn on the canvas, like the oceans and continents.

country-locations

Generates a json list of country codes and their coordinates on the canvas based on lat and lon

redis-convert.js

Script to convert redis canvas database to different color / different layout

redis-copy.js

Script to copy a canvas from one redis to another, with different keys if neccessary

sql-commandtest.js

Script that connects to the mysql database and does some stuff, just for testing

proxyConvert.sh

Converts a proxy list in specific txt format to a better readable list