当前位置:网站首页>记一次RawImage渲染出来的场景错乱
记一次RawImage渲染出来的场景错乱
2022-07-26 22:43:00 【淡定九号】
背景
业务需要把3D场景渲染到UI上显示,我的处理办法是使用摄像机照射场景,然后将摄像机的Target Texture的指定到一个Render Texture上(可动态创建),然后创建一个RawImage,将Render Texture指定给RawImage的Texture,因为是一个通用的业务,有很多的场景都需要,有的场景好着,有的场景渲染出来的错乱,但是渲染摄像机看着正常,Render Texture上的显示也正常,唯独RawImage上的显示有问题。
解决办法
比对了错误的场景和正确的场景,发现渲染错误的部分是因为这部分内容距离摄像机过远(>100),将远处的物体离近了发现就好了,但是这个不是解决问题的办法。
经过多次尝试(一天多时间),最后发现,将场景中内容,改为静态(static)就可以了

边栏推荐
- 李宏毅机器学习(2017版)_P13:深度学习
- 2. 错误的里程表
- Doris or starrocks JMeter pressure measurement
- Li Hongyi machine learning (2017 Edition)_ P3-4: Regression
- Are you ready for the Internet of things to revolutionize manufacturing?
- Longest common substring
- Solve the problem that rsyslog service occupies too much memory
- 7. Formula F1 champion
- 快来:鼓励高校毕业生返乡创业就业,助力乡村振兴
- SQL relational algebra - Division
猜你喜欢

Tencent upgrades the live broadcast function of video Number applet. Tencent's foundation for continuous promotion of live broadcast is this technology called visual cube (mlvb)

Wu Enda's in-depth learning series teaching video learning notes (I) -- logistic regression function for binary classification

Jenkins -- Basic -- 5.2 -- system configuration -- system configuration

李宏毅机器学习(2017版)_P13:深度学习

Come and help you understand the mobile Internet in a minute

Warning: IPv4 forwarding is disabled Networking will not work.

Applet live broadcast, online live broadcast, live broadcast reward: Tencent cloud mobile live broadcast component mlvb multi scene live broadcast expansion

As 5g becomes more and more popular, what positive effects will our lives be affected

Code merging of centralized version control tools

SQL learning (2) -- basic query and sorting of tables
随机推荐
Li Hongyi machine learning (2017 Edition)_ P5: error
Jenkins--基础--04--安装中文插件
李宏毅机器学习(2017版)_P6-8:梯度下降
做题笔记1
Scoring system based on 485 bus
3. Boxing champion Ali
Compile Darknet under vscode2015 to generate darknet Ext error msb3721: XXX has exited with a return code of 1.
RS485信号的测量
5.xshell连接服务器拒绝访问,密码错误
2. 错误的里程表
Li Hongyi machine learning (2017 Edition)_ P14: back propagation
The dependency of POM file is invalid when idea imports external projects. Solution
The shortest way to realize video applets: from bringing goods to brand marketing
玩客云刷机 5.9
李宏毅机器学习(2017版)_P5:误差
Warning: IPv4 forwarding is disabled Networking will not work.
Game project export AAB package upload Google tips more than 150m solution
Verilog procedure assignment statement
4.root用户登录
DataNode Decommision