Three.js - Webpack template
This is a template project on which i learned to use three.js with webpack.
The Three.js code ist basically the same from chapter 1.8 "A Brief Introduction to Texture Mapping" from the DISCOVERThree.js book.
After strugglich with implementing assets and having lots of errors when running the app on a server i wanted to try out webpack. I finalliy got it working by following this tutorial.
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 webpack-server. Changes on file are updated immediatly through hot reload.
Status | Prototype |
Category | Tool |
Platforms | HTML5 |
Author | RogerDabIt |
Tags | Project template, Tutorial |
Comments
Log in with itch.io to leave a comment.
Is the browser build intended to be a game or something?
No, it is just a show-off. Three.js is a game engine and i want to help newcomes like me to build their game.