首页 > 解决方案 > 在谷歌 AR 场景查看器中设置估计照明?

问题描述

我想在 Kotlin 中使用谷歌场景查看器创建一个显示 AR 的意图,代码如下:

            val sceneViewerIntent = Intent(Intent.ACTION_VIEW)
        val intentUri = Uri.parse("https://arvr.google.com/scene-viewer/1.0").buildUpon()
            .appendQueryParameter(
                "file",
                3D_MODEL_URL
            )
            .appendQueryParameter("mode", "ar_only")
            .appendQueryParameter("disable_occlusion", "false")
            .build()
        sceneViewerIntent.data = intentUri
        sceneViewerIntent.setPackage("com.google.ar.core")
        startActivity(sceneViewerIntent)

但是如何添加照明估计?

标签: kotlinaugmented-realityarcore

解决方案


推荐阅读