Skip to content

enterstudio/paparazzi

 
 

Repository files navigation

Tangram Paparazzi

Sneaky version of Tangram-ES that loads a YAML scene file, take snapshots and runs away. Currently compiles in RaspberryPi and Ubuntu.

Install

git clone --recursive https://github.com/tangrams/paparazzi.git
cd paparazzi
./setup

Use paparazzi Node.js server.js

The Node.js server.js set a HTTP server that listen for calls and use the query calls to the URL path as arguments to construct a picture of a map using paparazzi binary.

To run the server simply do:

cd paparazzi
nam start

Then on a browser do something like

http://localhost:8080/?zoom=17&lat=40.7086&lon=-73.9924&scene=https://dl.dropboxusercontent.com/u/335522/openframe/tangram/blueprint.yaml

Here is a list of arguments to pass to the URL

Query Arguments Description
scene=[url] Specify a valid url to the YAML scene file
width=[number] Width of the final image
heigth=[number] Height of the final image
lat=[LAT] Latitud
lot=[LON] Longitud
zoom=[zoom] Zoom Level
tilt=[tilt deg] Tilt degree of the camera
rot=[rot deg] Rotation degree of the map

Use paparazzi binary

You can use the paparazzi binary (build/bin/./paparazzi) with the following arguments. It will return an image of the specify YAML scene file at the given position, zoom, tilt and rotation.

Argument Description
-s file.yaml Mandatory. Specify the YAML scene file
-o image.png Mandatory. Output image file
-w [number] Width of the final image
-h [number] Height of the final image
-lat [LAT] Latitud
-lot [LON] Longitud
-z [zoom] Zoom Level
-t [tilt] Tilt degree of the camera
-r [rot] Rotation degree of the map

Thins to read

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 46.3%
  • C++ 32.9%
  • CMake 9.8%
  • Shell 6.2%
  • JavaScript 4.8%