zoukankan      html  css  js  c++  java
  • 在Unity中高效工作(上)

    原地址:http://www.unity蛮牛.com/thread-19974-1-1.html

    编的话:感谢做编程的IT朋友,帮我翻译文章,我又稍稍做了些修改。给点儿掌声哩。欢迎大家多多评论呦。
    我挑出的关键词有(方便大家阅读):易于移植到其他平台、3d应用、资源缩放、网格、Alpha渲染模式。
    <ignore_js_op>


            Unity is an extremely powerful game engine with the capabilities to tackle just about any game project you may have in mind, whether it’s a 2D side-scroller for the desktop or a 3D mobile game. As you start to work more in Unity, you’ll find ways to speed up your workflow and techniques to help you create even better games. Unity’s main draw is its toolset to design beautiful 2D and 3D games which are easily portable to mobile platforms, making it the staple game engine for many mobile developers.
             Unity是个功能极其强大的游戏引擎,可以解决几乎所有你能想想象到的游戏项目,无论它是一个2D横向卷轴的桌面还是3D手机游戏。当你开始用Unity来工作,你会想方设法加快您的工作流程和技术,以帮助您创建更加优秀的游戏。Unity的主要吸引力在于,它用来设计卓越的2D和3d游戏的工具,这些工具很容易移植到移动平台,使其成为许多移动开发商的主要游戏引擎。

             As mobile hardware increases, so does the level of graphics being implemented into the games. However, there are still very strict limitations of mobile platforms vs. consoles. This article gives you some helpful tips for working more productively in Unity and ways to keep the level of detail in your games up while still cutting back on processing power.
             随着手机硬件的增加,更复杂的图形技术也被添加到游戏当中。然而,对于移动平台上的游戏,仍然有非常严格的限制。本文为您提供了一些建议,例如如何使Unity更有效率的工作,以及如何在削减了处理能力的情况下,依然保持你的游戏水平。

    Working with 3D Applications
    用3D应用工作


             As you may already be aware Unity doesn’t have very powerful level or asset creation tools. The best workflow to take with Unity is to create all your assets and levels in a 3D application like Maya or 3ds Max. Luckily, Unity supports integration of just about every major 3D application, so you won’t be hard-pressed to work in software you aren’t comfortable with.
             Unity并没有非常强大的水平或资源创建工具,这毋庸置疑。对于Unity而言,最好的工作流程是用3D应用程序来创建自己的资源以及图层,如Maya或3ds Max。幸运的是,Unity支持几乎所有主流的3D应用程序的集成,这样你就不会捉襟见肘地用那些让你不舒服的软件来工作。

             Unity and other 3D applications are integrated nicely so the asset creation and modification can go much smoother. Scaling of assets can be done very easily. If you find the mesh you brought in is way too big you can go back to the file in your 3D application, scale it down to the correct size, save over the file and the asset in Unity will automatically get updated.
             Unity和其它3D应用程序很好地集成,因此资源的创建和修改可以顺利得多。资源的缩放可以很容易地完成。如果你发现你制作的网格太大了,你可以回到3D应用程序中对该文件进行修改,将它缩小到正确的大小,保存在文件中,而该资产在Unity将自动得到更新。

             As you start importing your meshes into Unity, a great workflow is to always import the texture first. Unity sees it’s in there and, when the mesh is brought in, the texture will automatically get applied to the mesh. Of course, having to assign a texture back onto the mesh in Unity doesn’t seem like a big problem, but finding places where you can speed up your workflow even just a little is always beneficial.
             当您开始输入你的网格到Unity中,一个伟大的工作流程是:总是先导入纹理。Unity看到它在那里后,当网格被带进来,纹理将自动应用到网格。当然,将纹理安置在Unity的网格中,似乎并不是很困难,但是能找到一个可以加快您的工作流程的地方,哪怕只是一点点也总是有益的。

    <ignore_js_op>


    Use Alpha Render Mode
    使用阿尔法渲染模式


             The different render modes in Unity can be found in your scene view toolbar with the most common one being RGB. This allows you to see all of the colors and lights in your level. As you work you’ll probably find yourself using this default one the most and maybe even exclusively. But it’s important for you to know the other render modes and how they can help you optimize your game.
             Unity有不同的渲染模式,你可以在场景视图工具栏中,最常见的一种RGB中找到它们。这可以从你的视角看到所有的颜色和灯光。当你工作时,你可能会发现,自己最常使用默认的模式,甚至根本不用其他模式。但是了解其他的渲染模式也是非常重要的,它们可以帮助您优化游戏。

             For example, if you switch over to the Alpha render mode, it will change your entire level to white, meaning your game level is only displaying the alpha channel. This allows you to see areas that aren’t completely closed off, like gaps in geometry or your level, which would be nearly impossible to see in the RGB render mode. Take for instance, if a section on your level isn’t connected properly, it’ll show up as a dotted black line, which stands out like a sore thumb in contrast to the white. The extra visibility allows you to go in and fix these issues very quickly.
             例如,如果你切换到Alpha渲染模式,它会将您的整个级别更改为白色,这意味着你的游戏图层只显示Alpha通道。这可以让你看到不完全封闭的领域,如几何形状或你的水平的差距,这将是在RGB渲染模式下,几乎无法看到的。我举个例子,如果你的部分图层连接不准确,它会显示成黑色虚线,就像立起来的拇指一样,和白色形成鲜明对比。但额外的可见性,可以使您快速解决这些问题。

    原文:http://blog.digitaltutors.com/ti ... ficiently-in-unity/
    译文:蛮牛译馆 - 私の友达
    转载注明出处!!!
     
            我是游戏蛮牛的蛮牛译馆(一个专门翻译国外资料的组织)的一员,我会陆续整理,翻译国外unity相关的新闻资讯与技术文章,以及各种视频等内容。我们也欢迎热爱游戏翻译的好友加群,一起体验翻译并分享乐趣,QQ群号:52677537。关于此篇文章翻译有错误的地方,欢迎大家指正。
  • 相关阅读:
    css 计数器
    页面自动刷新的几种方式
    jq的“钉”插件--jquery.pin.js
    CSS3之Transform(变形)一
    css3之Transition(转换)
    常用css+css3集锦
    JQuery需要手动回收xmlHttpRequest对象
    javascript 闭包暴露句柄和命名冲突的解决方案
    firefox浏览器删除插件
    jQuery中的.bind()、.live()和.delegate()之间区别分析
  • 原文地址:https://www.cnblogs.com/123ing/p/3868111.html
Copyright © 2011-2022 走看看