Skip to content

A minimal typescript based three.js started code to get you up and running.

Notifications You must be signed in to change notification settings

TalhaAbid/Three.js-TypeScript-Starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THREE.js-TYPESCRIPT-STARTER

Why did I create this?

Well, Three.js has a lot of boilerplate to get even a basic project up and running. I was spending a lot of time just setting up the same scene, camera, orbitcontrols therefore I decided to make a super basic minimal template to save me time and serve as good practice.

This was heavily inspired by this book Discover Three.js which was one of the main resources I used to learn the basics of three.js.

Starting Scene that you will get

alt text

How to use this?

  1. Clone this repo
  2. npm install
  3. npm run dev

and viola you have a working example

Is this perfect?

Well, nothing is perfect but I still need to decide on which best practices to use. Currently I am using Clock.getDelta() but I have been warned to not use it I will update it once i've learned the best practices.

You can Help Improve this

I am merely a beginner so please send a pull request and improve any errors you find!.

About

A minimal typescript based three.js started code to get you up and running.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published