This project is a demonstration of integrating Svelte, a JavaScript framework for building reactive user interfaces, with Three.js, a JavaScript library for creating and displaying 3D models in a web browser.
ESCAPE. is a university project where the goal is to design an interactive map to promote an emblematic object of the selected region. A clickable area on a map will allow the user to display the 3D modeled object(s). Here, we have decided to talk about the Vikings and their famous Langskip ("drakkar").
This project combines the features of Svelte and Three.js to create an interactive web application that displays a 3D model in the browser. The 3D model is loaded from a GLB file (3D file format) and rendered in a 3D scene using the features of Three.js. The reactive user interface is built with Svelte, allowing easy manipulation of application states and components.
- Interactive map with clickable area
- Loading and rendering of 3D models using Three.js
- Reactive user interface built with Svelte
- Responsive design: the application works on desktop and mobile
- Clone this repository to your machine.
- Make sure you have Node.js installed on your machine.
- Install dependencies by running the following command in the project directory:
npm install
- Start the application by running the following command:
npm run dev
- Open your browser and go to the URL http://localhost:5173.
The site is currently available here!