YoVDO

How to Add 3D Models to Website Using React Three Fiber

Offered By: Coding Tech via YouTube

Tags

React Courses Web Development Courses Animation Courses Three.js Courses 3d Modeling Courses React Three Fiber Courses

Course Description

Overview

Discover how to incorporate 3D elements into React websites using React Three Fiber in this comprehensive tutorial video. Explore the process of rendering Three.js content with React Three Fiber, a specialized React renderer. Learn to download and convert GLTF format 3D models of the Earth and an airplane into React components using the gltfjsx npm utility package. Implement interactive features such as click-to-zoom and rotating the Earth to showcase specific geographic locations. Utilize the browser geolocation API to place users accurately on the globe. Connect to a real-time API for surrounding airplane locations, correctly positioning them on the Earth's surface and sorting them by proximity to the user. Cover topics including creating a starry background, adding lights, resizing models, colorizing objects, implementing zoom functionality, rotating to coordinates, handling different marker types, calculating airplane directions, managing state, and fetching real-time data from OpenSky. Gain practical insights into building immersive 3D web experiences with React and Three.js.

Syllabus

Video overview
Initial code walkthrough
Starry background
Earth model
Adding lights
Resizing Earth
Airplane Model
Map Marker Sphere
Colorizing Airplanes
Click to zoom
Rotate earth to coordinate
Geolocate user
Handle marker types
Using sample flight data
Calculate airplane direction
Store airplanes to state
Airplane distance to user
Testing finished usePlanes hook
Distance & Origin in control panel
Airplane facing direction of travel
Animate switching planes and correct color
Fetching real planes from OpenSky
Fetching on an interval
Thanks for watching


Taught by

Coding Tech

Related Courses

Easily Build 3D Desktop React Apps Using Tauri, Rust, TheatreJS and React Three Fiber
Chris Hay via YouTube
Build and Deploy an AI-Powered 3D Website Using React - 2023 Three JS Course Tutorial for Beginners
JavaScript Mastery via YouTube
React and Three.js - Working with Shaders Using React Three Fiber
Wrong Akram via YouTube
Animation and 3D in React-Three-Fiber - Learn With Jason
Learn With Jason via YouTube
Making Games in React
JavaScript Conferences by GitNation via YouTube