【问题标题】:Cartesian Coordinate System android and ios笛卡尔坐标系android和ios
【发布时间】:2023-03-25 10:44:02
【问题描述】:

当我们从 iOS 绘制坐标并将其发送到 android 时,它会像镜子一样翻转,反之亦然,我们只能从两个设备获取坐标并发送它。唯一的区别是在 iOS 中我们使用 OpenGL ES 进行绘图,而在 android 中我们只使用 Native Canvas 然后获取它们的坐标。

注意:我想发布一张图片,但我没有足够的权限来发布它

【问题讨论】:

  • 在 imgur 上发布并粘贴链接
  • 但您可以轻松添加图片链接

标签: android ios


【解决方案1】:

在 OpenGL 中翻转 V 坐标。您必须考虑到 OpenGL 和 Native Canvas 之间的这种差异。 您可以在一些相关问题中找到更多详细信息:

OpenGL ES has different UV coordinates?

Mapping texture on 3DS VAO turns out mirrored

【讨论】:

  • 我明白这就是为什么当你尝试重绘它时它会有所不同,谢谢它有很大帮助
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-12-10
  • 1970-01-01
  • 2019-06-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多