问题描述
正如标题中所述,什么时候烘烤(Blender)模型的纹理在手机游戏中使用很重要,而烘烤带来的性能好处是什么?如果我不烘焙而直接在游戏中的模型上使用纹理,是否有任何问题?
As in the title, when is it important to bake texture for the (Blender) model to use it in a mobile game and what are the benefits from baking for performance ? Is there any problem if I didn't bake it and I use the texture directly on my model in my game ?
推荐答案
Unity中有烘焙功能,而Blender中有烘焙功能.您的问题似乎是关于在将模型导入Unity之前在Blender中烘焙的,这个答案将解决这个问题.
There is baking in Unity and baking in blender. Your question seems to be about baking in blender before importing model into Unity and this answer will cover that.
在将其导入Unity之前,在Blender中烘焙模型与性能无关.有关为什么和何时烘烤模型的信息,请参见下文.
Baking model in blender before importing it into Unity has nothing to do with performance. See below for why and when you should bake your model.
这取决于.如果您在Blender中只有一个基本或简单的材质和纹理的模型,则无需烘烤模型.
It depends. If you have a model in blender with just one basic or simple material and a texture then you do not need to bake your model.
如果在具有高级材料或材料网络的搅拌器中具有模型,则必须先烘焙模型,然后再将其导入Unity.材质网络是当您具有连接到许多节点以形成程序纹理的材质时.下面是Blender中材料网络的示例:
If you have a model in blender with advanced materials or material networks then you must bake the model before importing into Unity. Material network is when you have material that is connected to many nodes to form a procedural texture. Below is an example of a material network in Blender:
无法在Unity中导入该材料.如果尝试尝试,则它与在Blender中渲染时看起来不一样.这就是为什么烘烤纹理的原因.烘焙时,该材质中的所有内容都将被转换或展平为图像/纹理.您可以在Unity中使用该纹理来使其看起来像Blender中的外观.
There is no way to import that material in Unity.If you try, it won't look like the-same thing it would when rendered in Blender. This is why you bake the texture. When you bake it, everything in that material will be converted or flattened to an image/texture. That texture is what you can use in Unity to make it look like what it would have looked liked in Blender.
此外,烘焙还用于生成其他特殊贴图,例如"Occlusion","Normal","Alpha"和"Emission"贴图,您需要将这些贴图插入Unity材质.您也可以将Blender的光烘烤到纹理中.
Also, baking is used to generate other specials maps like Occlusion, Normal, Alpha and Emission maps that you need to plug to the Unity material. You can also bake your Blender light into the texture.
这篇关于在将模型导入Unity之前,我应该在Blender中烘烤模型吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!