【问题标题】:How can I change the size and color of anchors in ARCORE?如何在 ARCORE 中更改锚点的大小和颜色?
【发布时间】:2021-05-28 13:15:03
【问题描述】:

我刚开始使用 ArCore API,似乎找不到如何在我的 android 应用程序中更改锚点的颜色和大小。我正在使用 ArCore 构建一个测量应用程序,并且锚点的大小和它们的颜色确实超出了我正在尝试制作的主题。 This is the current status of my project

任何帮助都可以,谢谢!

【问题讨论】:

    标签: android mobile arcore


    【解决方案1】:

    将颜色声明为浮点变量,如下所示:

    private static final float[] MODEL_COLOR = new float[] {250.0f, 250.0f, 250.0f, 255.0f};
    

    然后,在draw方法中使用这个变量来设置模型的颜色:

    objectModel.draw(cameraView, cameraPerspective, colorCorrectionRGBA, MODEL_COLOR)
    

    我想你可以对尺寸做同样的事情,但我不确定。

    【讨论】:

      猜你喜欢
      • 2013-10-09
      • 1970-01-01
      • 2021-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-03
      • 1970-01-01
      相关资源
      最近更新 更多