码迷,mamicode.com
首页 > 其他好文 > 详细

Level Of Detail

时间:2014-07-31 16:03:16      阅读:253      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   os   strong   io   for   

Level Of Detail

  Here‘s one of the ways to set up an object with different LODs.

  bubuko.com,布布扣

  At this point the empty object should contain both versions of the mesh and "know" which mesh to show depending on how far away the camera is.

  按上述设置完毕后,这个空对象就知道距离Camera多过远的时候该用哪个Mesh了。

  bubuko.com,布布扣

[Auto create LODGroup]

  In order to simplify setup of LODs, Unity has a naming convention for models that are being imported.

  Simply create your meshes in your modelling tool with names ending with _LOD0, _LOD1, _LOD2, etc., and the LOD group with appropriate settings will be created for you.

  Note that the convention assumes that the LOD 0 is the highest resolution model.

[LOD-Value]

  Models which have a LOD below the MaximumLOD level will not be used and omitted from the build (which will save storage and memory space). Unity will use the smallest LOD value from all the MaximumLOD values linked with the quality settings for the target platform. If an LOD level is included then models from that LODGroup will be included in the build and always loaded at runtime for that LODGroup, regardless of the quality setting being used. As an example, if LOD level 0 is used in any quality setting then all the LOD levels will be included in the build and all the referenced models loaded at runtime.

  The idea with shader LODs is that it enables you to enable/disable various graphical features:

  • Each shader has an LOD
  • You can specify that shaders above a particular LOD will be disabled

参考:

1、http://game.ceeger.com/Manual/LevelOfDetail.html

2、file://localhost/Applications/Unity/Unity.app/Contents/Documentation/Documentation/Components/class-QualitySettings.html

3、http://answers.unity3d.com/questions/330839/what-does-the-lod-value-for-shaders-represent.html

Level Of Detail,布布扣,bubuko.com

Level Of Detail

标签:style   blog   http   color   os   strong   io   for   

原文地址:http://www.cnblogs.com/tekkaman/p/3880572.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!