当前位置:网站首页>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 .
边栏推荐
- Leetcode 40: combined sum II
- 【VHDL 并行语句执行】
- C语言二叉树与建堆
- Custom class loader loads network class
- Redis technology leak detection and filling (II) - expired deletion strategy
- Linux server development, MySQL process control statement
- Pytest+allure+jenkins installation problem: pytest: error: unrecognized arguments: --alluredir
- 探索干货篇!Apifox 建设思路
- [guess-ctf2019] fake compressed packets
- @component(““)
猜你喜欢

Few shot Learning & meta learning: small sample learning principle and Siamese network structure (I)

图解GPT3的工作原理

Mysql高低版本切换需要修改的配置5-8(此处以aicode为例)
![[matlab] when matrix multiplication in Simulink user-defined function does not work properly, matrix multiplication module in module library can be used instead](/img/e3/cceede6babae3c8a24336c81d98aa7.jpg)
[matlab] when matrix multiplication in Simulink user-defined function does not work properly, matrix multiplication module in module library can be used instead

Wechat applet data binding multiple data

【数字IC验证快速入门】17、SystemVerilog学习之基本语法4(随机化Randomization)

2022茶艺师(初级)考试题模拟考试题库及在线模拟考试
![[quickstart to Digital IC Validation] 15. Basic syntax for SystemVerilog Learning 2 (operator, type conversion, loop, Task / Function... Including practical exercises)](/img/e1/9a047ef13299b94b5314ee6865ba26.png)
[quickstart to Digital IC Validation] 15. Basic syntax for SystemVerilog Learning 2 (operator, type conversion, loop, Task / Function... Including practical exercises)

2022 Inner Mongolia latest advanced fire facility operator simulation examination question bank and answers
![[SUCTF 2019]Game](/img/9c/362117a4bf3a1435ececa288112dfc.png)
[SUCTF 2019]Game
随机推荐
What is the interval in gatk4??
Few shot Learning & meta learning: small sample learning principle and Siamese network structure (I)
Live online system source code, using valueanimator to achieve view zoom in and out animation effect
Common validation comments
Problem solving: unable to connect to redis
Detailed explanation of Kalman filter for motion state estimation
Info | webrtc M97 update
The charm of SQL optimization! From 30248s to 0.001s
[guess-ctf2019] fake compressed packets
Content of string
Leetcode 40: combined sum II
Es FAQ summary
Implementation of replacement function of shell script
Explore dry goods! Apifox construction ideas
Linux server development, redis protocol and asynchronous mode
芯片 設計資料下載
JSON data flattening pd json_ normalize
pytest+allure+jenkins环境--填坑完毕
Ansible
LeetCode 90:子集 II