Skip to content

A minimal Three.js boilerplate to help you get started with 3D web development. This template includes a basic scene setup with a rotating cube, proper lighting, camera controls, and responsive canvas.

Notifications You must be signed in to change notification settings

petercsipkay/Basic-Three.js-Starter-Kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Three.js Resources Boilerplate

A minimal Three.js boilerplate to help you get started with 3D web development. This template includes a basic scene setup with a rotating cube, proper lighting, camera controls, and responsive canvas.

Features

  • Basic Three.js scene setup
  • Responsive canvas
  • OrbitControls for camera manipulation
  • Proper lighting setup
  • Shadow support
  • Animation system with consistent timing
  • Fullscreen support
  • Clean project structure

Setup

Download Node.js. Run these commands:

# Install dependencies (only the first time)
npm install

# Run the local server at localhost:8080
npm run dev

# Build for production in the dist/ directory
npm run build

Project Structure

├── src/
│   ├── css/
│   │   └── index.css
│   └── js/
│       └── main.js
├── index.html
├── package.json
└── vite.config.js

Dependencies

  • Three.js
  • Vite (for building and development)

Resources

For more Three.js resources, tutorials, and tools, visit:

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Feel free to submit issues and enhancement requests!

Acknowledgments

This boilerplate is designed to provide a clean starting point for Three.js projects. For more advanced features and resources, check out threejsresources.com.

Author

Peter Csipkay

About

A minimal Three.js boilerplate to help you get started with 3D web development. This template includes a basic scene setup with a rotating cube, proper lighting, camera controls, and responsive canvas.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published