Loading the Cars

Inside of the load function, we will download some assets in the background that we can load into our application.

When the JSON files that describe the cars are available, we just use the scene instance to load these files. Keep in mind that it's uncommon to have ready-to-use JSON files. In such situations, there are specialized design tools, such as Blender, which can significantly help create and convert consumable models.

That said, we will use the pre-built models that are available on blendswap.org. All of these models are publicly available, and are free of charge to use and distribute. Before we can use these models, we need to export them to an intermediate file format from where we can extract the geometry and material properties to create the appropriate JSON files. The file format we are going to use is Wavefront OBJ.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.29.145