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

边栏推荐
- 深度学习笔记
- 7. F1方程式冠军
- Scoring system based on 485 bus
- MySQL closes the problem of automatic submission of connection transactions
- Li Hongyi machine learning (2017 Edition)_ P3-4: Regression
- 李宏毅机器学习(2017版)_P5:误差
- How can Tencent cloud live plug-in mlvb make use of these advantages to become the divine assistant of anchor Live Streaming?
- Game project export AAB package upload Google tips more than 150m solution
- Li Hongyi machine learning (2017 Edition)_ P6-8: gradient descent
- c语言实现三子棋游戏
猜你喜欢

解决Pytorch中Cuda无法GPU加速问题

FaceNet

Warning: IPv4 forwarding is disabled Networking will not work.

Uni app applet app's advertising realization path: banner information flow advertising

Come on: encourage college graduates to return home to start businesses and employment, and help rural revitalization

Compile Darknet under vscode2015 to generate darknet Ext error msb3721: XXX has exited with a return code of 1.

Doris or starrocks JMeter pressure measurement
![[CTF attack and defense world] questions about backup in the web area](/img/af/b78eb3522160896d77d9e82f7e7810.png)
[CTF attack and defense world] questions about backup in the web area

RS485 signal measurement

The setup of KEIL development environment is delivered to the installation package
随机推荐
堆排序相关知识总结
最长公共子串
快来帮您一分钟了解移动互联网
Solve the problem that rsyslog service occupies too much memory
SQL关系代数——除法
Li Hongyi machine learning (2017 Edition)_ P14: back propagation
Database interim (II)
Uni app applet app's advertising realization path: banner information flow advertising
MySQL closes the problem of automatic submission of connection transactions
Verilog procedure assignment statement
Game project export AAB package upload Google tips more than 150m solution
Scoring system based on 485 bus
Analysis of contentvalues
6. 世界杯来了
if 与 else if 的区别
5. Xshell connection server denied access, password error
markdown
DataNode Decommision
大四老学长的自我批评记录
Flinksql window triggered in advance