关闭

Runtime Mesh Baker v1.1.2 发布了

标签: unitymeshBaker
2211人阅读 评论(2) 收藏 举报
分类:

Introduction:

Help you to combine meshes 、 materials and textures to reduce draw calls at runtime!
Got less draw calls than static and dynamic batching.
Got more resource saving than non-runtime baking.

  • Support merging skinned-meshes of same material
  • Very simple to use, learn in 1 minutes
  • Works with any material and shader
  • The most effective solution of combination
  • Automaticly chek and configure the shaders
  • Runtime combine quickly
  • Runtime auto garbage recyling.
  • Undo Supported, friendly UIs.

Home Page:http://www.lonelywalker.cn
Support Mail: mailoflonelywalker@qq.com
My Blog: http://blog.csdn.net/andrewfan

Version Changes:

Version 1.1.2 2017.9.18

  • Support merging skinned-meshes of same material

Version 1.1.1 2017.9.10

  • support add baking script at runtime
  • support the merging of multiple sub-meshes and multiple materials

Download URL:

Runtime Mesh Baker Of AssetStore

Usage:

  1. Get your GameObjects ready for baking, just put them into one tree nodes, all GameObjects have the same top parent.

  2. Select the top parent,then select the menu “Window/Rumtime Mesh Baker/Add MildBaker” or “Window/Rumtime Mesh Baker/Add DeepBaker”.
    At runtime,you can do it in you code:

    gameObject.AddComponent<BAT_DeepBaker>();
    //or
    gameObject.AddComponent<BAT_MildBaker>();
    
  3. It’s ok. let’s run it. Auto baking would be excuted.

Mild Baking of meshes:

  • Auto Bake: wheter do baking automatically
  • ClearSetting: after baking, it would do some clearing operation.

Deep Baking of meshes:

  • Auto Bake: wheter do baking automatically
  • ClearSetting: after baking, it would do some clearing operation.
  • Refresh button: refresh the configurations of baking.
  • Shader: the group basis of meshes is the shader.
  • Materials: materials use the same shader.
  • UV configure- max texture size: max texture size could be when baking.
  • UV configure- texture items: list all texture varient names of current shader to combine.you don’t need to modify the items by default.
  • References: list all the textures referenced. If any red item is shown,you can fix them by the “Fix troubles” button on the bottom.

Mild Baking of skinned-meshes:

  • Auto Bake: wheter do baking automatically
  • ClearSetting: after baking, it would do some clearing operation.

It does the same work with Mild Baking,but for skinned-meshes.

Baking Process:

  1. Search the target gameobject, check all MeshFilters and MeshRenderers.
  2. Find out all meshes and materials, and seperate the meshes into diffrent groups by materials(Mild Baking) or Shaders(Deep Baking) .
  3. Deep baking need to combine textures and generate new material.Mild baking will just use the original material.
  4. Create a new baking node and start mesh baking by groups,if group’s mesh vertex count is overflow, then bake to new one mesh.
  5. Set the MeshFilters by new created mesh,and set MeshRenderers by the material of current group.
  6. Do clearing,it would remove the original MeshFilters and MeshRenderers by default.


Diffrence of 3 baking method:

Basis Texture Combination Mesh Combination Draw calls Multiple SubMesh
Mild material not needed needed less
Deep shader needed needed least
Skinned material not needed needed less

Troubleshooting

If Baking error eccours,check these items:

  1. Make sure your Game Objects are not set static flags when deep baking.
  2. The texutes should be readable and set the right format when deep baking.You can fix this by “Fix troubles” button.
  3. If your material has set Tiling parameters(not 1), then the material can’t not do deep baking.You could seperate these GameObject out of the baking tree.
  4. If you are using the BAT_SkinnedMeshBaker, be aware with the transformation of original skinned-mesh componenet, the must be set to zero scalation、translation and rotation to its Animation or Animator,if don’t, you may get bad ragdolls.

Future Version

  • to support skinned meshes
  • to deal with tiling textures
  • to support lightmapping
1
0
查看评论

[教程] Mesh Baker的基本操作与功能演示

http://www.narkii.com/club/thread-301789-1.html 如何降低游戏在系统中的消耗并带给用户最佳的体验是开发者一直追求的目标,在Unity里面对于模型与贴图优化的方式已经提供了不少工具,而在某些地方仍需借由外部的插件才能得到更为理想的效果。在本教程里...
  • chenluwolf
  • chenluwolf
  • 2014-04-09 16:56
  • 1672

unity3d meshBaker教程(三) 物体动起来

有童鞋可能已经发现了,如果照教程一或教程二进行合并,物体上若有位移的脚本或者是动画,他确是无法进行位移的 下面来讲下解决方法。 其实方法很简单,接着教程二场景 1.首先我们在某个cube上挂一个位移的脚本,简单的pos位移就行。 2.运行,发现那个cube并未移动,点击那个物体,发现...
  • qq617119142
  • qq617119142
  • 2015-02-15 17:37
  • 2174

unity3d meshBaker教程(一) 基本的使用

meshBaker版本:3.31   ps:(原本使用的3.6,结果发现那个版本貌似有些问题) unity3d版本:4.61 作用:本人项目中,从drawCall 60左右 降到了 十几个,优化利器。。 最基本的使用 一.搭建场景 如上图场景,新建4个材质,分别附上这4个...
  • qq617119142
  • qq617119142
  • 2015-02-15 16:01
  • 5617

unity3d meshBaker 基本的使用

meshBaker版本:3.31    drawCall 优化利器 最基本的使用 一.搭建场景 如上图场景,新建4个材质,分别附上这4个贴图,贴图是MeshBaker自带的。 运行后 ...
  • Game_jqd
  • Game_jqd
  • 2016-07-19 16:51
  • 874

Unity给力插件之MeshBaker

这是一个用来合并网格、材质、贴图的插件。 其实网上也有一些比较详细的使用说明,但是真实操作起来时,总是有一些搞不清bug。而且,作为功能比较全的插件,在Unity版本更新时,也难免会一些不兼容的地方。经过多次实验,总结了一点经验: 一.快速操作: 1、Create Other-MeshBaker-合...
  • m0_37283423
  • m0_37283423
  • 2017-04-25 16:21
  • 575

Unity MeshBaker 合并网格和材质

MeshBaker 能够合并网格和材质,达到减少 Draw Calls 的目的。 官网地址:http://www.digitalopus.ca/site/mesh-baker/ Asset Store地址:https://www.assetstore.unity3d.com/en/#!/conten...
  • akof1314
  • akof1314
  • 2014-11-21 12:39
  • 20288

unity3d meshBaker教程(四) 制作预置材质

1.导入Assets->Import Package->Character Controller 2.新建场景,把3rd Person Controller拖到场景中,移除上面除Animation的其他所有脚本 3.把他拖到自己的文件夹内,...
  • qq617119142
  • qq617119142
  • 2015-02-15 17:45
  • 1359

unity3d meshBaker教程(二) 自动合并

情景再现:大场景中,有很多细碎的小物体,如果一个个点的话很累,而且shader可能用的不一样,使用起来就比较麻烦了,还好MeshBaker提供了自动合并的功能,来试试吧。 接着教程一中场景 1.创建对象,GameObject->CreateOther-&...
  • qq617119142
  • qq617119142
  • 2015-02-15 16:50
  • 1901

[引擎]之一:mesh在Unity中的简单使用

读过 《3D游戏编程大师技巧》之后在Unity中的试验 理论中,Mesh(网格)的基本组成为顶点,由顶点组成的面,一般情况下,都指定的是三角面。有了顶点之后,三角面的由顶点index顺序指定就可以了。 此外,顶点color,uv坐标等信息,也可以存储下来。 在Unity中,使用的是左手坐标系,所...
  • yanchezuo
  • yanchezuo
  • 2018-01-04 13:28
  • 92

Unity3d面试6 DontDestroyOnLoad();PlayerPrefs;协同程序;游戏框架;Unity中播放视频;LOD技术

Unity问答第3期 http://www.taidous.com/bbs/forum.php?mod=viewthread&tid=36888 1,如何避免点击UI按钮时穿透,同时触发了相同位置场景模型的点击事件的情况?(NGUI) 1,如何避免点击UI按钮时穿透,同时触发了相同位置...
  • taotaoah
  • taotaoah
  • 2016-09-26 16:39
  • 507
    个人资料
    • 访问:92811次
    • 积分:1335
    • 等级:
    • 排名:千里之外
    • 原创:24篇
    • 转载:1篇
    • 译文:1篇
    • 评论:43条
    关于Andrew
    Unity游戏开发程序员,
    开源游戏引擎Cyclone2D作者,
    我最近在开发一款3D赛车游戏
    热爱图形学、物理学、架构等研究,
    有兴趣的同学加群:528266922。
    博客专栏
    最新评论