Главная
Study mode:
on
1
Video overview
2
Initial code walkthrough
3
Starry background
4
Earth model
5
Adding lights
6
Resizing Earth
7
Airplane Model
8
Map Marker Sphere
9
Colorizing Airplanes
10
Click to zoom
11
Rotate earth to coordinate
12
Geolocate user
13
Handle marker types
14
Using sample flight data
15
Calculate airplane direction
16
Store airplanes to state
17
Airplane distance to user
18
Testing finished usePlanes hook
19
Distance & Origin in control panel
20
Airplane facing direction of travel
21
Animate switching planes and correct color
22
Fetching real planes from OpenSky
23
Fetching on an interval
24
Thanks for watching
Description:
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. Read more

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

Coding Tech
Add to list