Skip to content

About

No description, website, or topics provided.

Resources

Stars

9 stars

Watchers

1 watching

Forks

Repository files navigation

CubeTrek - Babylon.js Sandbox

What's this?

CubeTrek is a free and open-source web app to visualize, share and manage your GPS tracks (see the full repo at github.com/r-follador/cubetrek)

One of its main features is the ability to show a 3-dimensional topographic model of the area with the GPS track overlaid.

rotating5.mp4

The amazing Babylon.js library is used to render the models and handle the user interactions on the front end.

How can you help?

CubeTrek can use some creative input on how to improve the user experience, make it easier to interact with the topographical model, add some cool effects or whatever other ideas you have.

The idea is to bring any advancements from this repo to the CubeTrek main repo, for everyone to use.

Why this sandbox?

The CubeTrek backend handles the dynamic aspects of generating the 3D model (a GLTF file), preparing GeoJSON data, serving the map textures and producing a list of nearby peaks; all the parts required for the final Babylon.js scene.

To make it easier to work on the Babylon.js (and other JavaScript) code, this repo provides three GPS tracks statically, with all the required files:

  • St. Moritz run
    • a large, mountainous terrain; well suited to showcase the potential of the 3D visualization
    • issues include zoom and panning speed (not well suited for the large area), visibility of the track marking
    • Live view, HTML file
  • Cima di Fiorina
  • Chicago Run
    • flat, urban terrain, by the sea
    • issue: because there are almost no topographical features (very flat!), the 3D effect is rather useless and boring
    • Live view, HTML file

By the way, there are loads of other examples on Cubetrek.com, you can also upload your own GPS tracks.

How to get started

  • Clone the repo: git clone https://github.com/r-follador/CubeTrek_Babylon
  • Create your own branch git checkout -b my-beautiful-new-branch (use a cooler branch name)
  • Because the javascripts use modules, if you try to load the HTML file locally (i.e. with a file:// URL), you'll run into CORS errors due to JavaScript module security requirements. You need to do your testing through a server. It's best to use some type of IDE (IntelliJ, Visual Studio Code) anyway.
  • Get started by modifying the Babylon.js script in js/map3d.js.
  • Commit and push your branch to origin (git push -u origin my-beautiful-new-branch)

Short explanation of the contents

About

No description, website, or topics provided.

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages