This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.commons.math3.geometry.euclidean.threed.Rotation; | |
| import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; | |
| PGraphics dome, ortho3D, lens, cubemap[] = new PGraphics[6]; | |
| PShape globe; | |
| PShader shader; | |
| PImage tex; | |
| float h=512, d=h, hd2=h/2, r=hd2; | |
| int cubemapSize=512; | |
| Rotation qTo = new Rotation(new Vector3D(0, 0, 1), 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.commons.math3.geometry.euclidean.threed.Rotation; | |
| import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; | |
| GeoPoint nl = new GeoPoint(52.37, 4.91); | |
| GeoPoint ny = new GeoPoint(40.79, -73.96); | |
| GeoPoint jp = new GeoPoint(36.14, 137.86); | |
| GeoPoint north = new GeoPoint(90, 0); | |
| GeoPoint south = new GeoPoint(-90, 0); | |
| GeoPoint west = new GeoPoint(0,-90); | |
| GeoPoint east = new GeoPoint(0,90); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PImage earth; | |
| PShape globe; | |
| PGraphics fbo[] = new PGraphics[6]; | |
| int cubemapSize = 1024; | |
| PImage output_texture; | |
| PImage tex; | |
| PGraphics view3D,ortho3D; | |
| float h, hd2; | |
| PVector center[] = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PImage earth; | |
| PShape globe; | |
| PGraphics fbo[] = new PGraphics[6]; | |
| int cubemapSize = 512; | |
| PVector eye = new PVector(0, 0, 0); | |
| PVector up[] = { | |
| new PVector(0, -1, 0), // +X | |
| new PVector(0, -1, 0), // -X |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.commons.math3.geometry.euclidean.threed.Rotation; | |
| import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; | |
| import org.apache.commons.math3.geometry.euclidean.twod.Vector2D; | |
| Vector3D focusPoint = latLonToVector3D(0, 0); | |
| Vector3D nl = latLonToVector3D(52.37, 4.91); | |
| Vector3D ny = latLonToVector3D(40.79, -73.96); | |
| Vector3D jp = latLonToVector3D(36.14, 137.86); | |
| Vector3D north = latLonToVector3D(90, 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.commons.math3.geometry.euclidean.threed.Rotation; | |
| import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; | |
| Vector3D nl = latLonToVector3D(52.37, 4.91); | |
| Vector3D ny = latLonToVector3D(40.79, -73.96); | |
| Vector3D zero = latLonToVector3D(0, 0.0001); | |
| Vector3D north = latLonToVector3D(90, 0); | |
| Vector3D south = latLonToVector3D(-90, 0); | |
| Vector3D india = latLonToVector3D(8.2, 77.45); | |
| Vector3D points[] = {nl, ny, zero, north, south, india}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float w=2160, h=2160, wd2=w/2, hd2=h/2, wdh=w/h; | |
| float distToCam=1900; | |
| perspective(atan(hd2/distToCam)*2, wdh, distToCam, 10000); | |
| camera(0, 0, -distToCam, 0, 0, 0, 0, 1, 0); | |
| scale(-1, 1, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; see also https://companje.nl/sanyo | |
| draw_char: | |
| jmp .__________ | |
| ; public | |
| .char db 'A' | |
| .ox dw 0 | |
| .oy dw 0 | |
| .width dw 16 | |
| .height dw 12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| from shapely import wkt | |
| from shapely.geometry import mapping | |
| with open('OSG.json', 'r') as infile: | |
| data = json.load(infile) | |
| geojson_features = [] | |
| for item in data: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2,sys,re,json | |
| import numpy as np | |
| from pathlib import Path | |
| input_folder = "../TAB bestanden met afbeelding Ad" | |
| for tab_filename in Path(input_folder).rglob("*.png"): | |
| print(tab_filename) | |
| sys.exit() |