An intro to Three.js and React :) Workshop materials and demo from HackTheNorth 2021

Overview

Workshop Banner

🚄 Speedy 3D - A Quick Intro to Three.js & React

This workshop was originally created for Hack The North 2021! My personal motivation was to:

  • learn through teaching, Feynman technique style
  • share some of the (truly incredible) things possible through Three.js

📷 Workshop video found here
📠 Workshop slides found here
👯‍♀️ My favorite Three.js examples here

Workshop Slides


What's to come

A quick intro to Three.js and how it can be integrated with a React based web app. We'll go through objects, meshes, camera settings, materials, controls and more so you can use 3D models in your personal portfolio or hack!

Workshop Table of Contents

Learning Outcomes

By the end of the workshop, you’ll be able to:

  • Set up a React project to use three.js
  • Create and manipulate 3D objects
  • Use lighting, camera techniques, textures, and more to make your objects come to life :)

Prerequisite Knowledge

In order to get the most out of this workshop you should be comfortable with the following concepts:

  • Basic JavaScript Syntax
  • Basic React

Pre-Workshop Checklist

Before the workshop, please make sure you complete the following items:

  • Installed web IDE. I’d recommend VS Code
  • Install Node.js
  • For the smoothest experience, make sure your Node.js is up to date! We’ll be using it to install packages during the session

🥳 Setup

To get started, clone the repository and install the dependencies.

git clone https://github.com/ansonyuu/workshop-threejs
cd workshop-threejs
yarn

If you want to start from scratch and follow the tutorial, feel free to switch to the empty starter branch. You can do so by entering the following in your command line. If you just want to see the final demo, feel free to skip this step.

git checkout starter

To run the demo, use the following command

yarn start

And voila! You should see this interactive demo at localhost:3000 in your browser of choice.

Workshop Demo

You might also like...

This is a single page application that includes three pages; Home, Calculator and Quotes. You can do Math Calculations and read quotes.

This is a single page application that includes three pages; Home, Calculator and Quotes. You can do Math Calculations and read quotes.

Math magicians app This is a single page application that includes three pages; Home, Calculator and Quotes. You can do Math Calculations and read quo

Jun 7, 2022

A Google Clone which built with ReactJS. You can click the demo and search whatever you want!

Google Clone with ReactJS A small web app that imitate the desktop web version of google site, you can search whatever you want. Google Clone Demo Lin

Aug 14, 2022

A Chrome T-Rex game remake using javascript and threejs. Online demo: https://rossning92.github.io/t-rex

A Chrome T-Rex game remake using javascript and threejs. Online demo: https://rossning92.github.io/t-rex

T-Rex Game in 3D A Chrome T-rex game remake using javascript and threejs. Build the code Make sure you have node 12+ installed: https://nodejs.org/en/

Dec 29, 2022

Demo site build in Umbraco v.9.0.0-beta004 and .NET Core 5.0

Demo site build in Umbraco v.9.0.0-beta004 and .NET Core 5.0

Umbraco v9 Demo Demo site build in Umbraco v.9.0.0-beta004 and .NET Core 5.0. About this solution: This is a demo site for Umbraco v9 build in the new

Dec 18, 2022

A demo app to illustrate core and latest concepts in Ember.js

ember-workshop A demo app to illustrate core and latest concepts in Ember.js Setup Installation Clone this repo. git clone [email protected]:ijlee2/ember

Dec 17, 2022

Demo project to deploy front- and backend together on heroku.

spring-boot-react-bundle This is a demo project that shows how it is possible to deploy a react frontend and a Spring Boot backend into a heroku dyno.

Jul 22, 2022

Demo of settingup tailwind 3 (cli) with emberjs

tailwind-setup-demo This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here

Aug 28, 2022

Expo Demo: Screen Capture with Managed Workflow

Expo Demo: Screen Capture with Managed Workflow This code demonstrates how to setup screen capture on an Expo app, without having to eject from the ma

Dec 30, 2022

Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.

Recoil · Recoil is an experimental set of utilities for state management with React. Please see the website: https://recoiljs.org Installation The Rec

Jan 8, 2023
Owner
Anson Yu
sys design eng @uwaterloo | swe @jam3 | oss advocate(!) @uwblueprint |
Anson Yu
🧱 Easily extend native three.js materials with modular and composable shader units and effects

three-extended-material Easily extend native three.js materials with modular and composable shader units and effects. Usage npm install three-extended

Leonardo Cavaletti 26 Dec 2, 2022
React components and hooks for creating VR/AR applications with @react-three/fiber

@react-three/xr React components and hooks for creating VR/AR applications with @react-three/fiber npm install @react-three/xr These demos are real,

Poimandres 1.4k Jan 4, 2023
A hook based project created during 20-Dec week ReactJS workshop

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Nabendu 1 Dec 25, 2021
🇨🇭 A React renderer for Three.js

react-three-fiber react-three-fiber is a React renderer for threejs. npm install three @react-three/fiber Why? Build your scene declaratively with re-

Poimandres 20.9k Jan 9, 2023
✂ Multiple scenes, one canvas! WebGL Scissoring implementation for React Three Fiber.

react-three-scissor Multiple scenes, one canvas! WebGL Scissoring implementation for React Three Fiber. scissor lets you render an infinite number of

Poimandres 79 Dec 28, 2022
How to submit HTML forms to Google Sheets. (Updated for 2021 Script Editor)

Submit a HTML form to Google Sheets How to submit a simple HTML form to a Google Sheet using only HTML and JavaScript. Updated for Google Script Edito

Levi Nunnink 314 Jan 6, 2023
During work. Second team project created during CodersCamp 2021/2022 by a 6-person team.

BoardMap Status: Work in progress. Work on the project started on 10-01-2021. Our Crew Mentor: Piotr Rynio Agnieszka Przybyłowska Patryk Święcicki Rad

Piotr Rynio 3 Mar 21, 2022
A demo of a Shopify site using Astro and React.

Shopify + Astro + React A demo of a Shopify site using Astro and React. If you'd like to learn how it's built and how you can do the same, check out t

Cassidy Williams 97 Dec 28, 2022
Next / React / TS demo to quickly create a landing page

Next / React / TS demo to quickly create a landing page

null 1 Jun 27, 2022
A simple demo of React Lottie power to 1st Loggi Frontend Show & Tell

Loggi Frontend Show & Tell - Animações com React Lottie A simple demo of React Lottie power to 1st Loggi Frontend Show & Tell This project was bootstr

Gabriel Barreto 2 Aug 4, 2022