Specular Reflection Models

来源:互联网 发布:seo的优化 编辑:程序博客网 时间:2024/05/01 09:52

From Wiki

 

Specular Reflection Models

 A number of different models exist to predict the distribution of microfacets. Most assume that the microfacet normals are distributed evenly around the normal; these models are called ISOTROPIC. If microfacets are distributed with a preference for a certain direction along the surface, the distribution isANISOTROPIC.



1. Phong Distribution

In the Phong reflection model, the intensity of the specular highlight is calculated as:
图片

Where R is the mirror reflection of the light vector off the surface, andV is the viewpoint vector.




In the Blinn–Phong shading model, the intensity of a specular highlight is calculated as:
 图片 

Where N is the smooth surface normal andH is the half-angle direction (the direction vector midway betweenL, the vector to the light, and V, the viewpoint vector).

The number shininessis called the Phong exponent, and is a user-chosen value that controls the apparent smoothness of the surface. These equations imply that the distribution of microfacet normals is an approximately Gaussian distribution (for largeshininess), or approximately Pearson type II distribution, of the corresponding angle. While this is a useful heuristic and produces believable results, it isNOT a physically based model.

Another similar formula, but only calculated differently:
图片
where R is an eye reflection vector,E is an eye vector (view vector),N is surface normal vector. All vectors arenormalized. L is a light vector.


2. Gaussian distribution

A slightly better model of microfacet distribution can be created using a Gaussian distribution. The usual function calculates specular highlight intensity as 
图片
where m is a constant between 0 and 1 that controls the apparent smoothness of the surface.



3. Beckmann distribution
A physically based model of microfacet distribution is the Beckmann distribution:
图片
where m is the rms slope of the surface microfacets (the roughness of the material). Compare to the empirical models above, this function "gives the absolute magnitude of the reflectance without introducing arbitrary constants; the disadvantage is that it requires more computation".However, this model can be simplified since 

图片

  Also note that the product of  cos(α) and a surface distribution function is normalized over the half-sphere which is obeyed by this function.

 


4. Heidrich–Seidel anisotropic distribution 

The Heidrich–Seidel distribution is a simple anisotropic distribution, based on the Phong model. It can be used to model surfaces that have small parallel grooves or fibers, such as brushed metal, satin, and hair. The specular highlight intensity for this distribution is:
图片

where n is the anisotropic exponent,V is the viewing direction, L is the direction of incoming light, andT is the direction parallel to the grooves or fibers at this point on the surface. If you have a unit vectorD which specifies the global direction of the anisotropic distribution, you can compute the vectorT at a given point by the following:
图片

where N is the unit normal vector at that point on the surface. You can also easily compute the cosine of the angle between the vectors by using a property of the dot product and the sine of the angle by using the trigonometric identities.

The anisotropic kspec should be used in conjunction with a non-anisotropic distribution like a Phong distribution to produce the correct specular highlight.



5. Ward anisotropic distribution
图片

The specular term is 0 if N·L < 0 orN·R < 0. All vectors are unit vectors. The vectorR is the mirror reflection of the light vector off the surface,L is the direction from the surface point to the light,H is the half-angle direction, N is the surface normal, and X andY are two orthogonal vectors in the normal plane which specify the anisotropic directions.




6. Cook–Torrance model

The Cook–Torrance model uses a specular term of the form:
图片

Here D is the Beckmann distribution factor as above andF is the Fresnel term,

 图片

For performance reasons in real-time 3D graphics Schlick's approximation is often used to approximate Fresnel term.

G is the geometric attenuation term, describing selfshadowing due to the microfacets, and is of the form

 图片

In these formulas E is the vector to the camera or eye,H is the half-angle vector,L is the vector to the light source andN is the normal vector, andα is the angle between H and N.

0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 笔记本电脑打不开光盘怎么办 电脑dvd弹不出来怎么办 安卓手机浏览器有个锁退不了怎么办 华硕电脑com端口没有怎么办 淘宝子账号认证过于频繁怎么办 现在手机淘宝卖家怎么办 注册新的淘宝账户怎么办 淘宝账号被限制买东西了怎么办 淘宝账号被冻结了怎么办 淘宝买的手机坏了怎么办 淘宝账户被限制登录怎么办 美团退款申诉失败怎么办 微信申诉不回来怎么办 特岗登录名忘记了怎么办 天猫账号被限制怎么办 微信双开被限制登录怎么办 云服务显出账号已过期怎么办 全国对讲机显示账号过期怎么办 淘宝账号身份证过期了怎么办 清理垃圾软件打打不开怎么办 电脑清理后软件打不开了怎么办 手机黑屏开不了机怎么办 红米手机wifi打不开怎么办 苹果8开不开机怎么办 mac电脑打不开机怎么办 steam改密码上限了怎么办 qq加密了登不了怎么办 别人登我的淘宝怎么办 植物2被禁止登录怎么办 淘宝网东西未收到怎么办 淘宝网卖家不许退货退款怎么办 身份证以前开过淘宝店怎么办 支付宝登录名尚未激活怎么办 淘宝退货卖家不收货退款买家怎么办 淘宝账号刷得太多违规怎么办 闲鱼交易关闭了怎么办 淘宝店开了没做怎么办 微店店铺严重违规怎么办 淘宝违规扣2分怎么办 淘宝被扣6分怎么办 淘宝被扣2分怎么办