当前位置:网站首页>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 .
边栏推荐
- [Matlab] Simulink 自定义函数中的矩阵乘法工作不正常时可以使用模块库中的矩阵乘法模块代替
- Chip design data download
- Li Kou interview question 04.01 Path between nodes
- [Stanford Jiwang cs144 project] lab3: tcpsender
- LeetCode 90:子集 II
- [P2P] local packet capturing
- Content of string
- 【数字IC验证快速入门】15、SystemVerilog学习之基本语法2(操作符、类型转换、循环、Task/Function...内含实践练习)
- Ansible
- PHP exports millions of data
猜你喜欢
图解GPT3的工作原理
Leetcode 90: subset II
Linux server development, redis source code storage principle and data model
numpy中dot函数使用与解析
2022 simulated examination question bank and online simulated examination of tea master (primary) examination questions
QT learning 26 integrated example of layout management
探索Cassandra的去中心化分布式架构
Who has docker to install MySQL locally?
Technology cloud report: from robot to Cobot, human-computer integration is creating an era
[CV] Wu Enda machine learning course notes | Chapter 8
随机推荐
numpy中dot函数使用与解析
2022 simulated examination question bank and online simulated examination of tea master (primary) examination questions
[UVM basics] summary of important knowledge points of "UVM practice" (continuous update...)
Pytest+allure+jenkins installation problem: pytest: error: unrecognized arguments: --alluredir
2022年茶艺师(中级)考试试题及模拟考试
[Stanford Jiwang cs144 project] lab4: tcpconnection
C language queue
即刻报名|飞桨黑客马拉松第三期等你挑战
2022 recurrent training question bank and answers of refrigeration and air conditioning equipment operation
Rust versus go (which is my preferred language?)
Common method signatures and meanings of Iterable, collection and list
[2022 ciscn] replay of preliminary web topics
[VHDL parallel statement execution]
这5个摸鱼神器太火了!程序员:知道了快删!
A bit of knowledge - about Apple Certified MFI
Quickly use Jacobo code coverage statistics
CTF daily question day43 rsa5
The configuration that needs to be modified when switching between high and low versions of MySQL 5-8 (take aicode as an example here)
What is the interval in gatk4??
Detailed explanation of Kalman filter for motion state estimation