当前位置:网站首页>D45_Camera assembly Camera
D45_Camera assembly Camera
2022-08-05 06:44:00 【Not so simple GG】
目录
4.Dont Clear_The original game object is not cleaned up
5.Clipping Planes_The distance of the camera's field of view
6.Viewport Rect_The position and size of the window
8.Target Texture_Specifies to render content rendered by one camera in oneRander Texture上面
1.摄像机组件
1.Clear Flags_clear target
There is nothing to fill where the game object needs to be rendered
1.SkyBox_天空盒子
We need to build a shader,在Standard上选择Skybox/6 Sided
Then drag the picture of the skybox you found into the six faces(All six pictures I dragged are the same,Mainly to see the effect of the sky box)
Finally drag this shader directly into the scene,This effect is formed (A professional skybox photo should be a continuous sky with no gaps)
The way to restore is here
2.Solid Color_单色填充
3.Depth only_Depth fill only
It is possible to overlay different depth camera renderings(If the content rendered by both cameras is at the same position on the screen,A larger depth value will overwrite the content with a smaller depth value)
This is the depth value,下面会详细介绍(详情看7.Rect_深度)
4.Dont Clear_The original game object is not cleaned up
At this point there is only one game object in the scene,The camera is the choice Dont Clear的模式的,Run it now,Let's see what happens
This is the scene after dragging the object in motion
2.Background_背景色
3.Culling Mask_裁剪遮罩
Controls the camera to render certain layers of game objects
在我们的Unity中,Each game object will have a hierarchyDefault
This level is similar to a label,You can add your own name,But unlike labels,Levels can only be added at most32个
Return to the camera to openCulling MaskYou can see the hierarchy of all settings
If selected, the camera can see the game objects of this level,Uncheck it to see no game objects at this level
How should we set it in the code
Each level is preceded by a label,从0到31,2的n次方(nThe label before the hierarchy)In the code, we use the left shift operator to implement the check operation,如下
4.Projection_投射方式
1.Perspective_透视相机
效果:近大远小
You can see that the camera's field of view is like a cone,But let's zoom in
There is still a cross section,Because the last thing our camera has in front of our eyes is a flat surface,So even set to minimum is a plane,如果是0It becomes a point,There is no such thing as flat vision
2.Orthographic_正交相机
没有近大远小的效果,What he shows is a rectangular field of view,如下
5.Clipping Planes_The distance of the camera's field of view
6.Viewport Rect_The position and size of the window
x y w h All represent proportions 从0 到 1 After adjustments can be found in oursGamesee inside the view
x y 为坐标 The reference coordinates are screen coordinates,左下角是(0,0)
w h 是大小
7.Rect_深度
The depth of the camera is used when there are multiple cameras in the scene,深度值越大,The higher the display is
例如小地图,We can set the depth value of the minimap to be larger than the scene camera,This allows the minimap to exist in front of the scene camera view
Main Camera:Viewport Rect: X: 1 Y: 1 W: 1 H: 1 Depth:1
Camera:Viewport Rect: X:0.5 Y:0.5 W:0.5 H:0.5 Depth:2
8.Target Texture_Specifies to render content rendered by one camera in oneRander Texture上面
This function can realize the projection of the picture seen by the camera onto the game object,例如:电视机,镜子,UIModel display of the interface, etc
首先创建一个Rander Texture
found on the cameraTarget Texture,将Rander Texture拖入
再创建一个材质球,Place the shader on the Shader设置为Unlit/Texture(Remove the effect of lighting on the image)
然后把Rander Texture Drag onto the shader
Finally drag this shader onto the game object,The game object is now ready to display the camera effect
边栏推荐
- 网络层协议介绍
- Network Troubleshooting Basics - Study Notes
- Met with the browser page
- Insight into the general trend of the Internet, after reading this article, you will have a thorough understanding of Chinese domain names
- Vim tutorial: vimtutor
- input detailed file upload
- Collision, character controller, Cloth components (cloth), joints in the Unity physics engine
- ev加密视频转换成MP4格式,亲测可用
- DevOps流程demo(实操记录)
- 干货!教您使用工业树莓派结合CODESYS配置EtherCAT主站
猜你喜欢
One-arm routing experiment and three-layer switch experiment
Configuration of routers and static routes
Chengyun Technology was invited to attend the 2022 Alibaba Cloud Partner Conference and won the "Gathering Strength and Going Far" Award
sql server 重复值在后面计数
5分钟完成mysql离线安装
Q 2020, the latest senior interview Laya soul, do you know?
Nacos集群的搭建过程详解
单片机期末复习大题
Mina的长连接和短连接
DevOps-了解学习
随机推荐
Browser Storage WebStorage
DisabledDate date picker datePicker
邮件管理 过滤邮件
LeetCode practice and self-comprehension record (1)
js 使用雪花id生成随机id
Vim tutorial: vimtutor
What are some things that you only know when you do operation and maintenance?
Complete mysql offline installation in 5 minutes
跨域的十种解决方案详解(总结)
Next-Generation Parsing Technology - Cloud Parsing
系统基础-学习笔记(一些命令记录)
Billions of IT operations in the market, the product by strength to speak
深入分析若依数据权限@datascope (注解+AOP+动态sql拼接) 【循序渐进,附分析过程】
BIO, NIO, AIO practical study notes (easy to understand theory)
[ingress]-ingress使用tcp端口暴露服务
D39_Eulerian Angles and Quaternions
NB-IOT智能云家具项目系列实站
Alibaba Cloud Video on Demand
config.js related configuration summary
云计算基础-学习笔记