烘焙在 SceneKit 中做什么 [英] what does bake do in SceneKit

查看:37
本文介绍了烘焙在 SceneKit 中做什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SceneKit 编辑器中烘焙"选项的目的是什么.它对性能有影响吗?

Type 提供 2 个选项:Ambient Occlusion 和 Light Map

目标提供:纹理和顶点

解决方案

对我来说,它会导致 Xcode 崩溃.它应该将光照(特别是阴影)渲染到对象的纹理中,因此您不需要静态光照.

理论上,这应该意味着您在场景中需要的只是用于在移动的对象上创建动态照明的灯光,并且您可以保存在静态几何体上用静态灯光填充场景所需的所有计算.

在性能方面,是的,在光照中烘焙可以带来性能的巨大飞跃,因为它为您节省了创建环境光、遮挡和直接阴影以及柔和阴影的所有复杂计算.

如果您实时使用环境光遮蔽和软阴影,您会看到非常低的帧速率.

烘焙所能达到的质量远远超出了使用超级计算机实时实现的质量,尤其是在全局照明方面.

奇怪的是 Scene Kit 有一个烘焙按钮.它对我来说从来没有用过,总是让 Xcode 崩溃.但问题是……要从烘焙中获得最大收益,您需要成为 3D 艺术家,在这种情况下,您将更倾向于在 3D 设计应用中进行烘焙.

3D 设计应用的照明解决方案比最好的 Scene Kit 照明要好几个数量级.我无法想象在 Scene Kit 中真的需要烘焙.对于开发团队来说,花费时间是一件很奇怪的事情,因为它根本无法与最便宜的 3D 设计应用程序提供的质量相提并论.

What is the purpose of "bake" option in SceneKit editor. Does it have an impact on performance?

Type offers 2 options: Ambient Occlusion and Light Map

Destination offers: Texture and Vertex

解决方案

For me, it crashes Xcode. It's supposed to render lighting (specifically shadows) into the textures on objects so you don't need static lights.

This should, theoretically, mean that all you need in your scene are the lights used to create dynamic lighting on objects that move, and you can save all the calculations required to fill the scene with static lights on static geometry.

In terms of performance, yes, baking in the lighting can create a HUGE jump in performance because it's saving you all the complex calculations that create ambient light, occlusion and direct shadows and soft shadows.

If you're using ambient occlusion and soft shadows in real-time you'll be seeing VERY low frame rates.

And the quality possible with baking is far beyond what you can achieve with a super computer in real time, particularly in terms of global illumination.

What's odd is that Scene Kit has a bake button. It has never worked for me, always crashing Xcode. But the thing is... to get the most from baking, you need to be a 3D artist, in which case you'll be much more inclined to do the baking in a 3D design app.

And 3D design apps have lighting solutions that are orders of magnitude better than the best Scene Kit lighting possible. I can't imagine that there's really a need for baking in Scene Kit. It's a strange thing for the development team to have spent time on as it simply could never come close to the quality afforded by even the cheapest 3D design app.

这篇关于烘焙在 SceneKit 中做什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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