
Get started with a beginner friendly intro to building a solar system in React Three Fiber, learn native Three.js concepts, and import 3D models like NASA's ISS into your scene.
Create a solar system scene by using React Three Fiber's canvas, add orbit controls and Stars from Drei, and animate the Stars with the useFrame hook for dynamic motion.
Create an earth component with a mesh, sphere geometry, and a texture map in React Three Fiber, then light the scene with directional lights and a helper.
Apply normal, specular, and displacement maps to Earth in a React Three Fiber project, switch to Phong material for specular highlights, tune displacement, and animate rotation.
Create and animate a moon with a NASA moon texture, group it to orbit the earth using elapsed time with sine and cosine, and enable shadows for realism.
Import NASA's glTF model of the international space station and orbit it around the earth. Optimize and load glTF assets with useGLTF, useMemo, and useFrame in React Three Fiber.
Continue exploring the solar system with React Three Fiber on our YouTube channel, using the course resources to keep learning for free.
In this tutorial, we will explore the process of building and animating a Solar System model using Three.js and React Three Fiber. By following the declarative coding methods of React Three Fiber, we will learn how to create a realistic Earth and Moon model using Three.js sphere geometries.
You will learn how to import 3D models in the glTF format, the "JPG of 3D", using NASA's very own 3D model of the International Space Station.
We will delve into the application of various map textures to our sphere geometries, such as spherical, normal, specular, and displacement maps, and explore how to adjust their properties. Additionally, we will utilize the custom hook "useFrame" to animate objects in our Three.js scene with ease.
Throughout the tutorial, we will cover key concepts such as meshes, materials, and their respective properties. We will also explore how to set up and configure Three.js lights and utilize the "useHelper" hook to implement helpers in our React Three Fiber application.
Furthermore, we will learn about Three.js shadows and their implementation in our project. By the end of the tutorial, you will have a solid understanding of the fundamentals of building and animating 3D models with Three.js and React Three Fiber.