Skip to content

VCityTeam/UD-Demo-VCity-Sunlight

Repository files navigation

UD-Demo-VCity-Sunlight

About The Project

Vizualisation of 3DTiles produces by pySunlight containing light pre-calculation results.

In this demo, we show two vizualisation of Sunlight :

  • Sunlight and Shadow vizualisation
  • Impact

It's based on UD-Viz-Template.

UD-Demo-VCity-Sunlight is one repository of the Sunlight project, including :

Getting Started

Prerequisites

Install npm, refer to here.

Installation

  1. Download the git repository :

    git clone https://github.com/VCityTeam/UD-Demo-VCity-Sunlight.git && cd UD-Demo-VCity-Sunlight
  2. Install npm dependencies :

    npm i --legacy-peer-deps && npm i
  3. Builds and runs the app in the development mode.

    npm run debug
  4. Open http://localhost:8000/ to view it in your browser.

When changes are made to the files, the app is automatically rebuilt (no need to execute the run debug command again).

Usage

Use UD-Viz developers documention to see the full list of npm supported commands.

Refer to this documentation to create and display 3D Tiles Sunlight.

Deployment

  1. Build docker image :

    docker build -t demo-sunlight . --no-cache
  2. Run the container :

    docker run -p 0.0.0.0:8080:8000/tcp --rm -t demo-sunlight
  3. Go to http://localhost:8080/ to see Demo-Sunlight.

Contributing

Follow the guidelines of UD-Viz developpers.

License

Distributed under the LGPL-2.1 License. See LICENSE and Libraries Licenses for more information.

Main Contributors

Acknowledgments