[Unity官方文档翻译]2D or 3D Projects Unity中2D和3D项目的区别

Unity可以用于创建2D和3D游戏,两者之间的选择主要影响Unity编辑器的初始设置,如图像导入方式。虽然可以随时更改模式,但开始时的选择有助于确定项目方向。3D游戏通常使用三维几何、透视渲染,而2D游戏可能使用平面图像或2.5D技术。了解每种模式的特点有助于做出选择。
摘要由CSDN通过智能技术生成

2D or 3D Projects

2D3D项目

Unity is equally suited to creating both 2D and 3D games. But what’s the difference? When you create a

new project in Unity, you have the choice to start in 2D or 3D mode. You may already know what you want 

to build, but there are a few subtle points that may affect which mode you choose.

Unity平等支持制作2D3D的游戏。但是有什么具体的差别呢?当你通过Unity创建一个新的项目时,你可以选择使用2D3D的模式,你可能早已清楚自己想要创建什么模式的。但是选择什么样的模式依然会存在一些微小的影响。

The choice between starting in 2D or 3D mode determines some settings for the Unity Editor - such as

 whether images are imported as textures or sprites. Don’t worry about making the wrong choice though, 

you can swap between 2D or 3D mode at any time regardless of the mode you set when you created your 

project. Here are some guidelines which should help you choose.

选择2D还是3D这个选项将决定一些unity编辑器上的设置差别。比如是啊图片是以贴图还是以精灵图片的形式导入。当然别担心做了错的选择,你可以无视你在创建项目时的选项,随时的改变2D3D模式选项。接下来是一些帮助你做决定的参考说明。

 

Full 3D

3D


Some 3D scenes from Unity’s sample projects on the Asset Store

资源商店里的一些样例工程的3D场景

3D games usually make use of three-dimensional geometry, with materials and textures rendered on the 

surface of these objects to make them appear as solid environments, characters and objects that make

 up your game world. The camera can move in and around the scene freely, with light and shadows 

cast around the world in a realistic way. 3D games usually render the scene using perspective, 

so objects appear larger on screen as they get closer to the camera. For all games that fit this description

, start in 3D mode.

3D游戏里经常使用3维的几何结构物体。通过使用一些材质和贴图渲染在这些物体上,来达到显示出立体环境的作用。游戏角色和物体在你的游戏世界中都经过了这样的“化妆”。摄像机在场景中自由的移动,伴随着灯光和阴影以一种逼真的方式投射到这个游戏世界。3D游戏通常使用透视的方式来渲染场景,所以物体在摄像机中呈现出近大远小的效果。使用3D模式的游戏都适用这种描述。

Orthographic 3D

正交3D


Some 3D games using an Orthographic view

一些3D游戏使用正交视角

Sometimes games use 3D geometry, but use an orthographic camera instead of perspective. This is a

 common technique used in games which give you a bird’seye view of the action, and is sometimes called “2.5D”.

 If you’re making a game like this, you should also use the editor in 3D mode, because even though there is noperspective,

 you will still be working with 3D models and assets. You’ll need to switch your camera and scene view to Orthographic though. 

(scenes above from Synty Studios and BITGEM)

某些时候游戏使用3D的图形画面。但是使用的是正交摄像机机而不是透视摄像机。这是在游戏中获得鸟瞰视角的常用技巧,有些时候也把它叫做2.5D。如果你正在制作这种游戏,那你因该选择使用3D模式。

因为即使这里没有透视效果,但你依然要操作3D的资源和模型,你需要切换你的摄像机和场景视角到正交模式。

Full 2D

全二D

Some examples of typical 2D game types

Many 2D games use flat graphics, sometimes called sprites, which have no three-dimensional geometry at all. They are drawn to the screen as flat images, and the game’s camera has no

 perspective. For this type of game, you should start the editor in 2D mode.

一些经典2D游戏实例

许多的2D游戏使用平面的图像。也叫精灵图片,一种一点也没有3d图像的图片。它们在屏幕上以扁平图像的方式显现出来,并且游戏的摄像机没有透视设置。对于这一种游戏来说,你应该使用2D模式。

2D gameplay with 3D graphics

使用3D图像但是是2D玩法


A side scrolling game with 2D gameplay, but 3d graphics

Some 2D games use 3D geometry for the environment and characters, but restrict the gameplay to two 

dimensions. For example, the camera may show a “side scrolling view” and the player can only move in two 

dimensions, but game still uses 3D models for the obstacles and a 3D perspective for the camera. For these games

, the 3D effect may serve a stylistic rather than functional purpose. This type of game is also sometimes 

referred to as “2.5D”. Although the gameplay is 2D, you will mostly be manipulating 3D models to build the 

game so you should start the editor in 3D mode.

一个2D玩法的卷轴式游戏,却使用了3D图像.

一些2D游戏在环境和角色方面使用了3D图像,但是玩法却限制在2D,比方说,摄像机显示是“卷轴式视图”,玩家只能在二维空间移动。但在障碍模型和3D摄像机透视上游戏却确实使用了3D模型,对于这一类型的游戏,这种3D效果更多的是为了风格上的目的而不是功能上的目的。此类游戏也可以称作:“2.5D”。说到底你尽管玩法是2D的,但你总要操作3D模型吧,那也应该使用3D模式创建工程项目。

 

2D gameplay and graphics, with a perspective camera

使用透视摄像机的图像玩法也全是2D的游戏

A 2D “cardboard theatre” style game, giving a parallax movement effect

This is another popular style of 2D game, using 2D graphics but with a perspective camera to get a

 parallax scrolling effect. This is a “cardboard theater” style scene, where all graphics are flat, but arranged at 

different distances from the camera. It’s most likely that 2D mode will suit your development in this case. 

However, you will want to change your game camera’s projection mode to Perspective and the scene view 

mode to 3D(scene above from One Point Six Studio)

一个2D“纸板剧院”风格的游戏,利用视差达到运动效果

这是另一种著名风格类型的2D游戏,使用带有透视摄像机的2D图像来获得一种滚动的视差效果。这是一种叫做“纸板剧院”的风格场景,所有的图像都是扁平化的,但是在摄像机上表现上准备了不同的距离差。在这种情况下2D模式会很适合你的开发工作。然而,你将会想改变你的游戏摄像机的投射模式为透视,还有场景视角模式为3D

Other styles

You may have plans for a project that fits one of the above descriptions, or you may have something else 

entirely different or unique in mind! Whatever your plans are, hopefully the above will give you some idea

 which mode to start the editor in, and remember you can switch modes at any time later.

You can read about how to change the 2D/3D mode and find more detail about how the modes differ

 here: 2D and 3D Mode Settings.

其他风格

你也许有适用以上所有描述的项目,也许在你脑海中也有一些完全不同独一无二的风格!不管你的计划是什么,衷心希望以上这些分享,会给你在选择什么模式开发这一问题上一些启发。同时记住你可以在以后任意时刻切换模式。

在这个网站 2D and 3D Mode Settings.你可以阅读有关如何转换2D3D模式的更多细节,以及这两种模式的差异.

Useful 2D Project Information

实用的2D项目信息

Whichever type of project you are working in, 2D or 3D, there are some useful pages to help you get started. 

There are also many specific pages for 2D features.

无论你选择的项目模式是2D还是3D,这里是一些帮助你上路的实用页面。这里也有一些描述2D特征的具体页面

Getting Started with Unity

· Unity Basics

· Creating Scenes

· Creating Gameplay

2D Overview

· Gameplay in 2D

2D Graphics

· Sprites

· Sprite Creator

· Sprite Editor

· Sprite Packer

· Sprite Renderer

2D Physics

· Physics - An introduction to 2D and 3D physics in Unity.

· Rididbody 2D - Placing a game object under control of the physics 2D engine.

· Physics 2D Manager - Control global settings for 2D physics.

2D Joints

· Distance Joint

· Fixed Joint 2D

· Friction Joint 2D

· Hinge Joint 2D

· Relative Joint 2D

· Slider Joint 2D

· Spring Joint 2D

· Target Joint 2D

· Wheel Joint 2D

2D Colliders

· Box Collider 2D

· Circle Collider2D

· Edge Collider 2D

· Polygon Collider 2D

2D Physics Material

· Physics Material 2D

2D Effectors

· Area Effector 2D

· Buoyancy Effector 2D

· Platform Effector 2D

· Point Effector 2D

· Surface Editor 2D

 

 

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值