Importing the 3D model

SceneKit's preferred 3D model type is Collada (.dae files). However, it can also read OBJ (.obj) files, and in this case, the downloaded model is in the latter format. We have slightly modified it using a 3D modeling program and put the pivot point on the floor, in the nearest edge away from us. This way, when we place it in the real world, we will see the model in front of us, instead of surrounding us. If you try this with another model or you don't know how to modify a pivot point, you can adjust the transform's position directly in the code (we will explain how later).

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

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