Giter VIP home page Giter VIP logo

map-tile-lighting-demo's Introduction

Purpose

This is the source for the demos on my blog post Advanced Map Shading.

Installation

Clone

with https:

git clone https://github.com/wwwtyro/map-tile-lighting-demo.git

or with ssh:

git clone [email protected]:wwwtyro/map-tile-lighting-demo.git

then move to the cloned repo: cd map-tile-lighting-demo

Install dependencies

npm install

Configure your mapbox.key

  • Go to mapbox.com, create an account to get your API key.
  • Create a file named mapbox.key and put inside it your API key: echo "pk.XXXYYYZZZ" > mapbox.key

Run it!

Demos scripts can be launched with npm run script. See scripts section in package.json file.

npm run load-image

npm run elevation

npm run normals

npm run direct

npm run soft-shadows

npm run ambient-occlusion

npm run combined-lighting

npm run satellite

npm run tiled

Enjoy!

npm run load-image

> [email protected] load-image /var/www/html
> budo load-image-demo.js --live -- -t brfs

[0000] info  Server running at http://192.168.48.2:9966/ (connect)
[0000] info  LiveReload running
[0001] 360ms      153KB (browserify)
[0003] 4ms           0B GET    200 / (generated)
[0003] 0ms           0B GET    200 /load-image-demo.js (generated)

Open up your browser at the given @IP eg http://192.168.48.2:9966 and enjoy the demo!

map-tile-lighting-demo's People

Contributors

wwwtyro avatar benit avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.