To use 3D objects in React 360, you need you to have prebuilt 3D objects, which you can create with special 3D modeling software or download from the internet. In this section, we'll use a 3D object from the GitHub repository for this chapter, where you can find a .obj file that's supported by React 360. Apart from OBJ, GLTF models are also supported as 3D objects by React 360.
Rendering 3D objects
OBJ files is a standard format for 3D model files that can be exported and imported by numerous 3D tools. Please keep in mind that React 360 doesn't support lighting and that you will need to include more advanced packages to render complex textures in a 3D model. Due to this, the 3D model that will be used in this example is just in one color, ...
Get React Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.