This is a template project on which i learned to use three.js with vite.

The Three.js code ist basically the same from chapter 1.8  "A Brief Introduction to Texture Mapping" from the DISCOVERThree.js book.

You can donwload the project in the attached zip file.

Install Packages

Run "npm install" to install all the required packages.

Build

Run "npm run build" to build app in "dist" folder. The content of this folder can be added to a zip-file and uploded to itch.io for example, like i did here.

Run in browser

Run "npm run dev" to run the app on a dev-server. Changes on file are updated immediatly through hot reload.

StatusReleased
CategoryTool
PlatformsHTML5
AuthorRogerDabIt

Download

Download
threejs-vite-template.zip 137 kB

Leave a comment

Log in with itch.io to leave a comment.