This directory contains my solution to the first laboratory exercise for the Computer Animation course at the Faculty of Electrical Engineering and Computing at the University of Zagreb.
- Load a sequence of points from a file.
- Use the loaded points to define a uniform cubic B-spline.
- Draw the spline.
- Draw a tangent to the spline and animate it along the spline.
- Load a 3D model from an OBJ file.
- Draw the loaded 3D model.
- Animate the loaded 3D model along the spline, orienting it along the tangent.
The original full text of this assignment is available as a PDF (in Croatian).
This implementation uses the Typescript programming language and the Three.js library to solve the assignment.
- Install dependencies using the command
npm install
. - Build the application using the command
npm run build:prod
. - Enter the
dist
directory and serve it using an HTTP server, for example using the commandnpx http-server
. - Open the URL where the files are served using an up-to-date web browser.
This solution is licensed under the MIT License.