- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Unity几个有用的游戏运动特效
本文摘要
本文主要记录了我在开发格斗游戏时用到的几个运动特效,可以方便地表现武器挥动、运动模糊和其他一些特效。灵活使用可以大幅提升格斗游戏的视觉效果和感染力。有关Unity的其他话题也可以查阅我的其他文章。
一、运动轨迹
运动轨迹常常用于表现武器的挥舞效果,在提高速度感的同时又能让玩家看清楚招式动作,所以是常见的一种格斗特效。Unity中可以直接使用TrailRender来实现该效果。
二、运动模糊
运动模糊就是保留前几帧影像,形成一定的重影模糊效果,从而突出速度感。配合慢镜头使用往往能很好地表现运动高潮效果。运动模糊在Unity中是通过Motion Blur image effect脚本实现的。
三、景深模糊
景深模糊就是模拟人眼或望远镜的成像原理,对远离视线焦点的场景进行模糊,从而提高画面真实感,同时也迫使玩家注意焦点处发生的事情。虽然该特效在射击游戏中更为常见,但某些情况下也可以用在格斗游戏中。例如团队作战时以这种方式显示队友发生的重大事件,或者在主角被击倒时,从观众席使用此特效,都能给玩家带来更强烈的现场感。Unity中使用Depth of Field Image Effect脚本来实现。
其他特效
还有一种常用的特效,就是对移动目标使用残影。这种特效与运动轨迹不同之处在于拖在身后的不是简单的粒子效果,而是对象前几帧的影像;与运动模糊的区别在于它是单独对某个目标使用,而非整个屏幕。可惜我还没有找到Unity自带实现类似效果的方法,希望有了解的朋友不吝赐教。
Trail Renderer
The?Trail Renderer?is used to make trails behind objects in the scene as they move about.
The Trail Renderer?Inspector
Properties
Materials An array of materials used for rendering the trail. Particle shaders work the best for trails. Size The total number of elements in the?Material?array. Element 0 Reference to the?Material?used to render the trail. The total number of elements is determined by the?Size?property. Time Length of the trail, measured in seconds. Start Width Width of the trail at the objects position. End Width Width of the trail at the end. Colors Array of colors to use over the length of the trail. You can also set alpha transparency with the colors. Color0?to?Color4 The trails colors, initial to final. Min Vertex Distance The minimum distance between anchor points of the trail. AutoDestruct Enable this to make the object be destroyed when the object has been idle for?Time?seconds. Details
The Trail Renderer is great for a trail behind a projectile, or contrails from the tip of a planes wings. It is good when trying to add a general feeling of speed.
When using a Trail Renderer, no other renderers on the?GameObject?are used. It is best to create an empty GameObject, and attach a Trail Renderer as the only renderer. You can then parent the Trail Renderer to whatever object y
文档评论(0)