Building a Home with ARKit

Hello friends, in this article, we will talk about how to create a home object with ARKit and display it on the screen. First of all, we need to know how to put a node on the screen. You can find this in my previous articles.

First, as usual, we put a scene view on the screen and reset it to all edges. This way it covers the entire screen.

Then we can start writing the code. Here we will do a simple house design. We’re going to put a box and put a cylinder on top of that box to make it look like a roof and then a plane to look like a door. You can find them all in the previous article. After creating these nodes, we need to connect them to each other, that is, we need to specify in which positions they will be with each other. I posted the code snippet below. You can actually understand it by examining the code.

The screen output of the above project is as follows. You can enlarge this house and add windows etc.

You can access the project here. If you have any questions, you can reach us by sending an e-mail or comment. Good work.

 

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.