“始终使用 Y-Up 轴"在哪里?在 Xcode 8 中去? [英] Where did "Always use Y-Up axis" in Xcode 8 go?

查看:27
本文介绍了“始终使用 Y-Up 轴"在哪里?在 Xcode 8 中去?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们曾经在 Xcode 中有一个选项始终使用 Y-Up 轴"切换(我认为至少在 Xcode 7 之前).它在当前的 Xcode 8.2.1 中消失了,并且可能从 8.1 甚至 8.0 开始消失了.为什么?还是藏在别处?有什么解决方法吗?

更新:我在 2014 年的 WWDC 演讲中找到了相关引述:

<块引用>

向游戏中添加 3D 资产的方式只是 SceneKit 资产目录.

SceneKit 资产目录是 Xcode 6 中的新功能,SceneKit 资产目录是 Xcode 6 中的新功能,它们允许您组织并优化您的 3D 资产.

SceneKit 资产目录的结构在它们被保留时被保留复制到您的目标中.

此外,它们会自动跟踪添加或删除的文件来自他们的光盘.

它们真的很方便,因为它们可以优化您的 3D 资产给你.

例如,它们有助于向上轴转换.

SceneKit 遵循上轴转换,这意味着正y 轴是向上看的那个.

这是许多其他应用程序所遵循的约定,框架,但一些出口商做不同的事情并使用 z up轴约定.

有了 SceneKit 资产目录,您就不必考虑这些了.<​​/p>

我们自动且透明地转换所有动画并场景中的几何图形,以便它们遵循上轴约定.

取自

We used to have an option "Always use Y-Up axis" toggle in Xcode (until Xcode 7 at least, I think). It's gone in current Xcode 8.2.1, and probably gone since 8.1 or even 8.0. Why? Or is it hiding somewhere else? Any workarounds?

Update: I found a related quote from a WWDC speech, way back in 2014:

The way you add 3D assets to your game is just SceneKit asset catalogs.

SceneKit asset catalogs are new feature in Xcode 6, SceneKit asset catalogs are new feature in Xcode 6, and they allow you to organize and optimize your 3D assets.

The structure of SceneKit asset catalogs is preserved when they are copied into your target.

Also, they automatically track files that are added to them or removed from them on disc.

They are really convenient because they can optimize your 3D assets for you.

For instance, they help with up axis conversion.

SceneKit follows the up axis conversion, which means that the positive y axis is the one that looks up.

This is a convention that is followed by many other applications and frameworks, but some exporters do things differently and use a z up axis convention.

With SceneKit asset catalogs, you don't have to think about that.

We automatically and transparently convert all the animations and geometries in your scene so that they follow the up axis convention.

Taken from http://asciiwwdc.com/2014/sessions/610 Video at https://developer.apple.com/videos/play/wwdc2014/610/

The above seems to describe the scene kit asset catalog when it was introduced. It doesn't actually answer my question here; why that feature is removed from current Xcode. I can also confirm that no conversion happens behind the scenes. A model exported from Blender is always going to move closer to or away from camera if its Y position is changed. At run-time it is the same.

解决方案

In Xcode 8, you can Ctrl-click on the .scnasset folder and Open As > SceneKit Catalog. If you make any changes, it will write out a Settings.json file. This may be what you are looking for.

这篇关于“始终使用 Y-Up 轴"在哪里?在 Xcode 8 中去?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆