ios - SceneKit 中的土星环节点

标签 ios swift textures scenekit scnnode

我正在制作土星模型,但在制作土星环时遇到了问题。我找到了这个 Assets

enter image description here

但是当我尝试将它设置为漫反射时,它会像这样转换

enter image description here

如何控制纹理在几何体上的转换方式?

最佳答案

我找到了解决方案。通过用环面替换圆柱体并将图像旋转 90 度,XCode 自行完成映射。

enter image description here

但一定有更好的办法。

关于ios - SceneKit 中的土星环节点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46567986/

相关文章:

iphone - 如何将 subview 从其父 View 的父 View 带到顶部

ios - 不能对类型为 'Any' SWIFT 的非可选值使用可选链接

ios - Swift iOS - 如何找到 CollectionView 第二部分的 CGPoint x/y 值

java - 在 Android OpenGL ES 应用程序中加载纹理

ios - iOS 拍摄应用程序快照时崩溃

ios - Swift iOS - 如何使 CollectionView 的单元格大小

swift - 正确使用 Firebase Cloud Functions 和 Stripe

swift - 在苹果 Swift 中使用巨大的数字

textures - Apple 的织物纹理是如何生成的?

javascript - 在 Three.js 中从 Web Worker 加载纹理