以前有一个nice article for rendering external texture
所有代码都不能与SceneForm1.16.0一起工作,因为没有.sfb、.sfm或.sfa格式。新材料似乎是.matc格式的,人类无法阅读。如何在此版本的Sceneform中创建或修改材质?
使用sceneform_camera_material.matc可以将相机渲染到Sceneform的背景,但无论选择何种相机预览分辨率,它都是非常像素化的。GLTF模型在加载时看起来很棒,问题特定于外部纹理。
这是与纹理的线性过滤有关的问题,还是与谷歌长丝的材质设置有关的问题?

发布于 2020-07-15 11:49:20
如果您使用SceneForm1.16并希望创建sceneform.rendering.Material,
(1)您需要使用Filmaent matc工具创建自己的matc文件。您可以在https://github.com/google/filament/releases下载灯丝工具。
(2)创建好自己的matc文件后,放入android raw目录,调用
com.google.ar.sceneform.rendering.Material.builder()
.setSource(context, R.raw.YOUR_MATC_FILE)
.build()
.thenAccept { material->
//Do something with created sceneform's Material
}
.exceptionally { throwable: Throwable? ->
}https://stackoverflow.com/questions/62894670
复制相似问题