【Space Shoot Project】Adding a background
来源:互联网 发布:电脑测试性能软件 编辑:程序博客网 时间:2024/05/22 17:32
黑色的背景看着肯定是枯燥,需要添加一个背景
create –> quad 创建一个 quad 来包含背景图片,重命名为 background
调整到摄像机视野
add a texture to the background
调整图片大小
拖动到 quad,Unity 会创建一个materal ,使用纹理即拖动过去的图片
调整分辨率,在tuxtures 中,可以看到 图片的分辨率,1024 2048, 1:2 关系
选中 Quad ,按1:2比例调整X,Y大小
调整图片亮度
render 中看到使用的是 diffuse shader, 而且之前添加的光源,很大部分只是对 ship 有效。为了防止ship 的光和 background 的光的相互干扰,可以使用layer。
但是背景不需要光照,没有角度,只要改变shader就可以了 Unlit –> Texture, 不受光影响,看起来和原图片相差无几
防止 ship buried 在background, 背景应该调整Y值放下面些,使得ship在背景的上方。
设置相机 为 Orthographic,关于Perspective 和 Orthographic 的区别看下面两张图片。
1)Perspective 以扩散的形式, 常用于 3D
2)Orthographic 按平行的形式, 常用于 2D
0 0
- 【Space Shoot Project】Adding a background
- 【Space Shoot Project】Boundary
- 【Space Shoot Project】UI
- 【Space Shoot Project】Shooting shots
- 【Space Shoot Project】Creating hazards
- 【Space Shoot Project】Game Controller
- 【Space Shoot Project】Camera and lighting
- 【Space Shoot Project】moving the player
- Adding and displaying a background
- Adding an Unsupported Language to a Project
- Space Shoot教程学习笔记
- Adding a library/JAR to an Eclipse Android project
- 5.4 Adding a Storyboard to an Existing Project
- Adding a library/JAR to an Eclipse Android project
- Adding a Project to an OS Design (Windows CE 5.0)
- Adding new Space Window
- Adding a Background Image to UIN…
- adding this project as a reference would cause a circular dependency
- 一款简洁登录页面
- hive中内部表和外部表
- PHP7新特性整理介绍篇
- LinuxCNC+EtherCAT(4)之LinuxCNC overview
- JSP内置对象
- 【Space Shoot Project】Adding a background
- 使用Tornado作为Django App的服务器
- linux下通过lseek()实现文件大小设置
- SAP中会计凭证和物料凭证的对应关系
- 面试题23:从上往下打印二叉树
- 为什么用fopen打开远程URL会很慢?
- 一个小程序看流的读取
- android的EditText,焦点会默认在第一个EditText中,我不希望焦点默认在任何EditText中,如何做?
- Linux OS下分区的擦除与重写