折射矢量(光线追踪) [英] Refraction Vector (Ray tracing)

查看:32
本文介绍了折射矢量(光线追踪)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在进行光线追踪,并使用以下关系进行光线的折射(我从名为光线追踪中的反射和折射"的 PDF 中得到它):

I am doing ray tracing and I do the refraction of the ray using the following relation (I got it from PDF called "Reflections and Refractions in Ray Tracing"):

但我在另一个 PDF 中看到它如下:

But I have seen it in another PDF as follows:

你能解释一下为什么吗?

Could you please explain for me why?

我如何确定我计算的折射矢量是正确的?

And how can I reassure that my refraction vector that I calculated is correct?

谢谢

推荐答案

最新的Ray Tracing Gems 2"中有一个确定的(而且写得很好!)介绍性章节,介绍了反射和折射公式;书;在 https://link.springer.com/上免费提供book/10.1007/978-1-4842-7185-8 - 见第 8 章,Eric Haines.

There's a decidated (and nicely written!) introductory chapter to reflection and refraction formulas in the latest "Ray Tracing Gems 2" book; available for free on https://link.springer.com/book/10.1007/978-1-4842-7185-8 - see Chapter 8, by Eric Haines.

这篇关于折射矢量(光线追踪)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆