Maybe this is a strange question, but what's the difference between GLSurfaceView and Sceneform, and which is better for Android ARCore?
Maybe this is a strange question, but what's the difference between GLSurfaceView and Sceneform, and which is better for Android ARCore?
SceneformSceneform is a high-level 3D framework and satellite of ARCore. Sceneform makes it straight-forward to realistically render 3D scenes for AR and VR android apps using real-time physically based Filament renderer. You don't even have to learn OpenGL discipline. A Sceneform's scene graph API allows you import, view and build 3D assets in .fbx, .glTF and .obj file formats.
GLSurfaceViewGLSurfaceView class extends a SurfaceView parent class and is used for 2D drawing and displaying OpenGL rendering. You can use this view in ARCore app as a custom view for 2D OpenGL rendering.
open class GLSurfaceView : SurfaceView, SurfaceHolder.Callback2
Here's GLSurfaceView's hierarchical place:
kotlin.Any
↳ android.view.View
↳ android.view.SurfaceView
↳ android.opengl.GLSurfaceView