Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于14章卡通渲染的两个问题 #319

Open
feng-yes opened this issue Jul 6, 2022 · 0 comments
Open

关于14章卡通渲染的两个问题 #319

feng-yes opened this issue Jul 6, 2022 · 0 comments

Comments

@feng-yes
Copy link

feng-yes commented Jul 6, 2022

  1. 背面轮廓
    画背面轮廓时,normal转换到view空间后,先将z设为-0.5,再normalize。
    初看不是很理解,在作者的早年博客中看到相关的理解:
    把顶点当成轮廓处理而不是一个真正的模型。也就是说,当我们观察背面的某一个顶点时,要把它的Z方向的值扁平化,那么描边的结果就会主要受X和Y方向的影响。
    当成轮廓处理这种理解感觉要好很多,还有没有进一步的补充?
    另外特别想知道这个方法是作者自己想出来的吗

  2. fwidth 函数的作用
    知乎上说ddx,ddy分别相邻两个像素在设备坐标系当中的距离,不是很能和书中的用法联系起来,有没有人给详细说说?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant