Try MAXST AR Fusion Tracker Now ✨

Migration Guide

Unity

>Delete Class

SurfaceMesh

Android

>Delete Class

BackgroundRenderHelper Class
BackgroundQuad Class
SurfaceMesh

>Delete Function

MaxstAR.onSurfaceCreated();
MaxstAR.onSurfaceDestroyed();

>Modify

backgroundRenderHelper.drawBackground();

The above code has been changed as shown below.

TrackedImage image = state.getImage();
float[] cameraProjectionMatrix = CameraDevice.getInstance().getBackgroundPlaneProjectionMatrix();
backgroundCameraQuad.setProjectionMatrix(cameraProjectionMatrix);
backgroundCameraQuad.draw(image);

>Additional Class

BackgroundCameraQuad draw camera image.

Visual Slam

>Delete Rendering Option Element

backgroundRenderHelper.setRenderingOption(BackgroundRenderer.RenderingOption.FEATURE_RENDERER,

BackgroundRenderer.RenderingOption.PROGRESS_RENDERER,

BackgroundRenderer.RenderingOption.SURFACE_MESH_RENDERER,

BackgroundRenderer.RenderingOption.AXIS_RENDERER);

>Additional Class

FeaturePoint draw feature points.
Axis draw axis.

iOS

>Delete Class

BackgroundQuad Class
MasBackgroundRenderer Class
MasSurfaceMesh

>Delete Function

[MasMaxstAR onSurfaceCreated];
[MasMaxstAR onSurfaceDestroyed];

>Modify

MasBackgroundTexture *backgroundTexture = [backgroundRenderer getBackgroundTexture];
[backgroundRenderer begin:backgroundTexture];
[backgroundRenderer renderBackgroundToTexture];
[backgroundRenderer end];

[backgroundQuad draw:backgroundTexture projectionMatrix:[cameraDevice getBackgroundPlaneProjectionMatrix]];

The above code has been changed as shown below.

MasTrackedImage *trackedImage = [trackingState getImage];
[backgroundCameraQuad draw:trackedImage projectionMatrix:[cameraDevice getBackgroundPlaneProjectionMatrix]];

>Addtional Class

BackgroundCameraQuad draw camera image.

Visual Slam

>Delete Rendering Option Element

[backgroundRenderer setRenderingOption:FEATURE_RENDERER|PROGRESS_RENDERER|SURFACE_MESH_RENDERER];

>Addtional Class

FeaturePoint draw feature points.
Axis draw axis.