CesiumGS / cesium-threejs-experiment

A small example for using Three JS on Cesium to emulate a combined scene.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cesium-threejs-experiment

A small experiment using Three JS on Cesium to emulate a combined scene. Adapted from code provided by Wilson Muktar.

Here on github pages.

Getting Started

Requires Node.js, we recommend version 4.4+. From the root directory, run:

npm install

This will automatically download Cesium and Threejs, then copy the relevant files over to public/Thirdparty. Then, run:

npm run start

or

node server.js

You should see:

restify listening at http://127.0.0.1:8080

Navigate to http://localhost:8080 to view the experiment! You can also use other ports:

node server.js --port=4040
restify listening at http://127.0.0.1:4040

Most of the interesting code is in public/CesiumThree.js. To view changes to the demo, just refresh (or cache refresh) your browser.

About

A small example for using Three JS on Cesium to emulate a combined scene.

License:Apache License 2.0


Languages

Language:JavaScript 90.1%Language:CSS 5.4%Language:HTML 4.5%