Getting to know Legacy
In this tutorial, you will learn how to paint walls using the Remodel-AR framework's Legacy approach.
Before starting this tutorial, make sure you've completed Setting up Remodel-AR in Android.
Step 1:
You shall wait for callbacks from the configure() method, Once you get callback in onPassioSDKReady()
Step 2:
By default Legacy approach would be selected, To start Legacy approach, you can simply call startLegacyApproach(), it will do required configuration for Legacy approach.
Step 3:
First let us supply the color and/or texture that we want to paint the wall with, you can pass any color hex in this format '''#RRGGBB', optional metadata can also be supplied with it using below code:
It is also possible to set color/texture individually using this methods:
with pickTexture() you can directly pass bitmap as texture.
Step 4:
Let us take a button and on click of it call below code
One can also pass parameter to get callbacks for first and second point selection by user like this
Once the button is clicked while keeping the phone horizontal, It will generate a grid in front of the phone.
User can select two points on grid, Painted area will be generated in between those points.
If at any point you need help from the Passio team, please reach out to us at support@passiolife.com
Last updated