当前位置:网站首页>Record a stroke skin bone error of the skirt
Record a stroke skin bone error of the skirt
2022-07-07 08:02:00 【Mercury Note】

As shown in the figure , The skirt has this kind of problem , My first thought was when animating skirt swing , The back of the skirt is too close to the front , But there is no front through the back , So my first thought was to use point multiplication to judge the angle between the opposite direction of the line of sight and the normal direction , If the included angle is close 90 degree , Before the expansion , Otherwise, no outward expansion .
float3 normalWS = TransformObjectToWorldNormal(normal);
float3 positionWS = mul(unity_ObjectToWorld, input.positionOS);
float3 viewDir = normalize((_WorldSpaceCameraPos - positionWS));
float angleNormalView = dot(normalize(normalWS), normalize(viewDir));
// View direction and smooth normal direction
float isShow = angleNormalView < 0.01 ? 1 : 0;
isShow = 0;
outlineWidth *= isShow;
In fact, this method should be useful if it is tracing and adopting the way of positive outward expansion , The way to expand the back is that the direction of the back normal will not let the expanded surface penetrate the front
But at the end of the experiment, I found , Even if I set the stroke width to 0, He still has such dark spots , Then the back armor on the back has no black spots
Then in order to eliminate the problem of transparency , I also set the back armor to be transparent , There are no black spots on the back armor , Set the skirt to opaque , There are still black spots .
In fact, the skirt was not covered properly , It causes the back of the skirt to penetrate into the front .
Back culling is on by default , The penetrating part cannot be seen , But when using tracing, because it is the back tracing , So the back of it can be seen .
边栏推荐
- Ansible
- json 数据展平pd.json_normalize
- Linux server development, MySQL stored procedures, functions and triggers
- 微信小程序基本组件使用介绍
- You Li takes you to talk about C language 6 (common keywords)
- Installing postgresql11 database under centos7
- Padavan manually installs PHP
- Value sequence (subsequence contribution problem)
- Leetcode 90: subset II
- [2022 actf] Web Topic recurrence
猜你喜欢

Quickly use Jacobo code coverage statistics

Who has docker to install MySQL locally?

2022年全国最新消防设施操作员(初级消防设施操作员)模拟题及答案

Explore dry goods! Apifox construction ideas

Qt学习27 应用程序中的主窗口

Codeforces Global Round 19

Codeforce c.strange test and acwing

Linux server development, MySQL transaction principle analysis

JS quick start (I)

Visualization Document Feb 12 16:42
随机推荐
Visualization Document Feb 12 16:42
Padavan manually installs PHP
pytest+allure+jenkins環境--填坑完畢
Ansible
【数字IC验证快速入门】15、SystemVerilog学习之基本语法2(操作符、类型转换、循环、Task/Function...内含实践练习)
Ansible
Live broadcast platform source code, foldable menu bar
What are the positions of communication equipment manufacturers?
Li Kou interview question 04.01 Path between nodes
Linux server development, MySQL cache strategy
Codeforce c.strange test and acwing
[quickstart to Digital IC Validation] 15. Basic syntax for SystemVerilog Learning 2 (operator, type conversion, loop, Task / Function... Including practical exercises)
【数字IC验证快速入门】17、SystemVerilog学习之基本语法4(随机化Randomization)
Cnopendata list data of Chinese colleges and Universities
快速使用 Jacoco 代码覆盖率统计
Linux server development, MySQL process control statement
【p2p】本地抓包
Button wizard script learning - about tmall grabbing red envelopes
2022茶艺师(初级)考试题模拟考试题库及在线模拟考试
Use and analysis of dot function in numpy