当前位置:网站首页>How to reduce the resolution of only 3D camera but not UI camera
How to reduce the resolution of only 3D camera but not UI camera
2022-07-28 14:34:00 【UWATech】
1) How to only lower 3D The camera doesn't fall UI The resolution of the camera
2)Unity Use Wwise No sound after audio packaging
3) How to realize the edge of irregular terrain area unlocked by area in the fog of war
4)PC Package Chinese path problem
This is the first 305 piece UWA Push of technical knowledge sharing . Today we continue to select and develop a number of 、 Optimization related issues , Suggested reading time 10 minute , If you read it carefully, you will get something .
UWA Question answering community :answer.uwa4d.com
UWA QQ Group 2:793972859( The original group is full )
Rendering
Q: Project due to GPU pressure , Plan to reduce performance pressure by reducing resolution . When reducing the resolution , Is there any way to just lower 3D The camera , Not falling UI The camera ?
A1: Need to put 3D Render the scene to RT Inside , then RT As RawImage Of Texture Render to UI Inside , This can be done by controlling RT To control the rendering resolution of the scene .
thank [email protected] The Q & a community provides answers
A2: I modified this URP pipeline :URP-12-GammaUIAndSplitResolution
The main problem to be solved is : Under linear workflow , Scene camera and UI The camera adopts independent resolution , also UI Be able to stay in Gamma Work in color space ( For details, please check the project readme file ).
Thank Nightingale @UWA The Q & a community provides answers
Wwise
Q: Manual will GeneratedSoundBanks Drag files to StreamingAssets There was still no sound ,Log It doesn't show that the sound file can't be found , Ask for advice !
A:Wwise Of Bank The loading mechanism is similar to File.Open(Path), such API For Android phones StreamingAssets Catalog ( read-only JAR package ) no , You can take Banks from StreamingAssets Copy the directory to Persistent Path Inside .
Thank Nightingale @UWA The Q & a community provides answers
Rendering
Q: Here's the picture , How is this irregular area of the fog of war realized ? Unlock by area , What kind of logic is the edge of this irregular area ?

Unlock once N A grid area , this N Areas should be polygons Mesh, The edges should be straight , But I don't know where Shader How to calculate makes him irregular and connected , It's like making noise ?
and Mask All pixels are stored by grid , The edge of the area is straight , How to realize this irregular connection ?
A1: Divide the map into several Cell, Then unlock one at a time . As for the appearance of irregularity, some fixed random algorithms are used to display pictures , The principle is similar to the puzzle .
Thank you Xiao Xiaojun @UWA The Q & a community provides answers
A2: Draw fog plus a can Read/Write Of Mask It should also be possible to achieve .
Whether it's straight or irregular depends on your Mask The resolution of the , and Mask The value of is not zero or one , It depends on how to achieve .
Thank you Yufei @UWA The Q & a community provides answers
A3: You can refer to :《 Smooth transition of war fog ( One ) principle :Warcraft3 Terrain mosaic algorithm 》
thank [email protected] The Q & a community provides answers
Script
Q: When the game is packaged, the installation directory is Chinese ,PC What method do you usually use to solve the Chinese path of the package ?
A: General situation C# Is to use Unicode, The file reading method provided by the library should support Chinese . however , Like some C Library for file reading ( For example, you may encounter direct passage lua_loadfile Of this kind of interface ), Need to use WindowsAPI:WideCharToMultiByte hold Unicode After converting to a multi byte string that the system can recognize , Then it is transmitted to the interface that needs to read the file .
thank [email protected] The Q & a community provides answers
The cover image comes from 《URP From principle to application —— Advanced 》
Today's sharing is here . Of course , There is no end to life but to know . In the long development cycle , The problems you see may be just the tip of the iceberg , We are already in UWA The Q & a website has more technical topics waiting for you to explore and share together . You are welcome to join us , Maybe your method can solve other people's urgent needs ; And he's a mountain “ stone ”, Can also attack you “ jade ”.
Official website :www.uwa4d.com
Official technology blog :blog.uwa4d.com
Official Q & a community :answer.uwa4d.com
UWA School :edu.uwa4d.com
Official technology QQ Group :793972859( The original group is full )
边栏推荐
猜你喜欢

Minitest -- applet automation testing framework
![[server data recovery] HP StorageWorks series server RAID5 offline data recovery of two disks](/img/23/4d07adcb5fb2c3b4c5090dacd02c89.jpg)
[server data recovery] HP StorageWorks series server RAID5 offline data recovery of two disks

草料二维码--在线二维码生成器

Foundation of deep learning ---- GNN spectral domain and airspace (continuous improvement, update and accumulation)

MySQL development skills - View

Career planning of Software Test Engineer

2022高处安装、维护、拆除考试题库及在线模拟考试

如何有效进行回顾会议(上)?

Metersphere -- Open Source continuous testing platform

2022年安全员-A证操作证考试题库模拟考试平台操作
随机推荐
FormData对象的使用, var formdata=new FormData()
【七夕】七夕孤寡小青蛙究极版?七夕节最终章!
2022 low voltage electrician examination questions and answers
国产数据库的红利还能“吃”多久?
3种方法解轮转数组
How did Dongguan Huawei cloud data center become a new model of green data center?
超好用的手机录屏软件推荐
Analysis of thrift serialization protocol
Foundation of deep learning ---- GNN spectral domain and airspace (continuous improvement, update and accumulation)
朗镜科技(Trax中国)“机器人+AI”开启中国零售元宇宙时代
When Xcode writes swiftui code, it is a small trap that compiles successfully but causes the preview to crash
MiniTest--小程序自动化测试框架
如何在 Core Data 中进行批量操作
(function(global,factory){
TDengine 助力西门子轻量级数字化解决方案
分集技术简略
Why is it reverse to convert from other formats to BMP
What is gossip (E-Net gossip)
[Tanabata] Tanabata lonely little frog research edition? The final chapter of Tanabata Festival!
Super resolution reconstruction based on deep learning