pixelplanet/utils
2021-04-18 19:27:57 +02:00
..
change-canvasbackup Change mooncanvas size 2020-05-07 23:09:04 +02:00
country-locations update country location script 2020-01-02 19:07:00 +01:00
ocean-tiles add script to create png tiles for ocean 2020-06-23 01:25:30 +02:00
osm-tiles Mirror repository for github 2020-01-02 17:58:06 +01:00
areaDownload.py fix areaDownload.py not working on protected pixels 2020-11-30 00:38:28 +01:00
backupSync.sh add backup sync script 2020-04-27 04:59:58 +02: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
historyCopy.py add utils for downloading from canvas and for creating timelapses based on historical view 2020-05-02 00:12:35 +02:00
historyDownload.py allow historyDownload.py to consider canvas size changes in historical view 2021-04-18 17:37:11 +02:00
imageClean.py add script that cleans spare pixels from images 2020-04-25 08:21:01 +02:00
liveLog.sh add logging helper script and update historyDownload script 2020-05-02 02:54:28 +02:00
pp-center-331-337-link.png update pp-center pmg 2020-11-19 20:19:25 +01:00
pp-center-331-337.png add utils for downloading from canvas and for creating timelapses based on historical view 2020-05-02 00:12:35 +02:00
proxyConvert.sh Mirror repository for github 2020-01-02 17:58:06 +01:00
README.md change README, add preview and loading tiles for pc and pz mirrors, add utils script for initial image upload 2020-07-05 12:06:42 +02:00
redisConvert.js Mirror repository for github 2020-01-02 17:58:06 +01:00
redisCopy.js change center link to guilded.gg 2020-06-28 06:12:45 +02:00
redisMoveCanvas.js smaller fixes 2021-04-18 19:27:57 +02:00
redisUnprotect.js remove alpha value from canvases.json and replace it with cli 2020-01-31 00:55:04 +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
uploadImage.js change README, add preview and loading tiles for pc and pz mirrors, add utils script for initial image upload 2020-07-05 12:06:42 +02:00
websockettest.py split stylesheet from js, style selection and fix all lsint errors 2020-05-11 05:56:07 +02: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

imageClean.py

python3 script that takes an input image and cleares spare pixels and bot remains

areaDownload.py

downloads an area of the canvas into a png file. Usage: areaDownload.py startX_startY endX_endY filename.png (note that you can copy the current coordinates in this format on the site by pressing R)

historyDownload.py

downloads the history from an canvas area between two dates. Useage: `historyDownload.py canvasId startX_startY endX_endY start_date end_date This is used for creating timelapses, see the cmd help to know how

historyCopy.py

same as historyDownload, just that its designed for running on the storage server by copying the chunks. Also instead of time you define the amount of days you want to make a timelapse of.

backupSync.sh

shell script that can be launched with backup.js to sync to a storage server after every backup. It uses rsync which is much faster than ftp, sftp or any other methode

liveLog.sh

shell script that watches the pixel.log file and outputs the stats of the current IPs placing there Usage: ./liveLog.sh LOGFILE CANVASID STARTX_STARTY ENDX_ENDY

pp-center*.png

center logo of pixelplanet

change-canvasbackup

just a script that got run once to add the missing tiles in historical view when increasing the size of the moon canvas.

uploadImage.js

nodejs script to upload a Image to the canvas without checks and without caring about what was previously there, don't use it for anything other than initially loading a very large image to the canvas.