Real Time Render 4

1、Radiometry(辐射测试) deals with the measurement of electromagnetic(电磁) radiation(辐射). Such radiation consists of a flow of photons(光子).

  Photons behave as either particles or waves, depending on circumstance. 

  光子可以表现为粒子或波。

  One wave-related property of photons that cannot be disregarded is the fact that each has an associated frequency or wavelength.  The energy of each photon is proportional to its frequency. Different frequencies of photons are perceived as light of different colors.

  波有频率、波长属性, 能量正比于频率。不同频率的光子对应不同的颜色。

2、The relationships between a photon’s wavelength λ (in meters), frequency ν (in Hertz, or cycles per second) and energy Q (in joules) are:

    

  where c is the speed of light (2.998×108 meters/second) and h is Planck’s constant (6.62620 × 10−34 joule-seconds).

  

3、In radiometry, the basic unit is energy or radiant energy Q, measured in joules (abbreviated “J”).

  能量单位是焦耳(joule),简写为 J。

  The radiant flux(辐射流) or radiant power(辐射能量), Φ or P, of a light source is equalto the number of joules per second emitted (i.e., dQ/dt).  The watt (W) is another term for joules per second.

  辐射流等于每秒的joules。简称为watt(瓦)。

  Irradiance (辐照度) is the density of radiant flux with respect to area.dΦ/dA.  irradiance E is used to measure light flowing into a surface and exitance M (also called radiosity or radiant exitance) is used to measure light flowing out of a surface.

  辐照度是单位面积的辐射强度。

  

  I, is called intensity or radiant intensity.  If the distance r equals 1, then intensity is the same as irradiance—in other words, intensity is flux density with respect to area on an enclosing radius-1 sphere.

  辐射强度,等于半径为1时的辐照度。

  

  

  A solid angle is a three-dimensional extension of the concept—a continuous set of directions, measured with steradians (弧度)(abbreviated sr”).  intensity is actually flux density with respect to solid angle (dΦ/dω), unlike irradiance, which is flux density with respect to area.  Intensity is measured in watts per steradian.

  强度单位是 w/sr。

  "five-times" rule of thumb.   If the distance from the light source is five times or more that of the light's width, then the inverse square law is a reasonable approximation and so can be used.

  五倍定律,到光源的距离大于光源宽度时,上述Intesity公式可以使用。

4、In two dimensions, an angle of 2π radians covers the whole unit circle. Extending this to three dimensions, a solid angle of steradians would cover the whole area of the unit sphere.

  球的表面积是4πr2,所以,整个球面有4π球面度。

    

5、Radiance measures the illumination in a single ray of light—it is flux density with respect to both area and solid angle.

    

    

  对于上图:

    This irradiance is the flux density per area at a surface point— it represents photons hitting that point from all parts of the light bulb, covering a range of directions represented by the solid angle ω.

  An important property of radiance is that it is not affected by distance.

6、Light from a given direction consists of a set of photons in some distribution of wavelengths. This distribution is called the light’s spectrum.

  光由一群不同波长的光子组成,这些不同波长的光子的分布叫作 spectrum。

  So for a given spectrum, the brain itself then receives only three different signals from these receptors. This is why just three numbers can be used to precisely represent any spectrum seen.

  对于给定的 spectrum,大脑只会接收3种不同的信号。所以只要3种颜色就能表示任意的 spectrum。

  不同的光强可以组成任意的颜色。在 645、526、444上,分别是单色。

    

7、Given an arbitrary spectrum, these curves can be multiplied by the spectrum and the area under each resulting curve (i.e., the integral) gives the relative amounts to set the colored lights to match the perceived color produced by the spectrum.

  对于任意的光(spectrum),分别用上图中的 r、g、b 乘以 spectrum。各个面积的值就是各RGB值。

    The three weighted r, g, and b values cannot directly represent all visible colors, as their color matching curves have negative weights for various wavelengths.

    RGB无法代表所有颜色,因为有负数。

        The CIE proposed three different hypothetical light sources that did not use monochromatic light.

     

    Given a surface reflectance and light source, the product of these two defines a color function C(λ), i.e., a spectrum. By again multiplying this spectrum by a color matching curve and integrating a single value is computed for each curve:

      

    让 X+Y+Z=1,则可以省略Z轴。

      

    从而得到CIE色彩图:

      

    The curvedline in the diagram shows where the colors of the spectrum lie, and the straight line connecting the ends of the spectrum is called the purple line.

    曲线是 spectrum。

    白色是 1/3,1/3,1/3。

    

    Given a color point (x,y), draw a line from the white point through this point to the spectral line. The relative distance of the color point compared to the distance to the edge of the region is the saturation of the color.

    饱和度。指颜色的纯度。

    The point on the region edge defines the hue of the color.

    色调。指颜色。

    The third dimension needed to fully describe a color is the Y value, luminance. These then define what is called the xyY coordinate system.

    亮度。最右侧图中,竖轴表示亮度。指黑白程度。

      

    参考:https://blog.csdn.net/u011399342/article/details/79656855  

    The triangle in the chromaticity diagram represents the gamut of a typical computer monitor.

8、Conversion from XY Z to RGB space is linear and can be done with a matrix.

    

  The inverse RGB to XYZ conversion is:

    

  A common conversion is to transform an RGB color to a grayscale luminance value, which is simply the middle row of the previous equation:

    

  Photometric curve  multiplied by the spectra of the three phosphors,  The three resulting weights are what form the luminance equation above.

9、 Multiplying two RGB colors to obtain an RGB result is not the same as multiplying two spectra together and then converting the resulting spectrum to RGB.

  

  Other color systems common in computer graphics include HSB (hue, saturation, brightness)。

  计算机图形也常用 HSB来表示颜色。即前文所述,Hue色调,Saturation饱和度,Brightness亮度。

  CMYK (cyan, magenta, yellow, black) is for the inks used in standard four-color printing.

  CMYK用在四色印刷行业。

10、Omni Lights(常量点光源)

  Point lights are defined by their position pL and intensity IL. Point lights with a constant value for IL are known as omni lights.

  

   It is often preferable to use a different function to describe how EL decreases with distance. Such functions are called distance falloff function.

   

    A much simpler distance falloff function is often used in games and graphical modeling applications:

    

11、Spotlight

  IL varies with direction. The spotlight function used in the OpenGL fixed-function pipeline is:

    

    

    We call θu the umbra angle, the angle at which the intensity reaches 0. 

    The exponent and cutoff behavior in the DirectX fixed-function pipeline is more flexible:

      

    The angle θp defines the penumbra angle of the spotlight, or the angle at which its intensity starts to decrease.

12、Textured Lights

    For lights that are not limited to a frustum but illuminate in all directionsa cube map can be used to modulate the intensity, instead of a two-dimensional projective texture. 

Real Time Render 4的更多相关文章

  1. React.render和reactDom.render的区别

    刚开始学习react.js.发现网上的资料,有些是写着react.render,有些写着reactDom.render.觉得很奇怪就查阅了一下资料.解释如下: 这个是react最新版api,也就是0. ...

  2. XF custom render 各平台实现类

    目前的XF还是非常简陋的,所以存在大量的自定义工作.一般情况下我们只是要需要派生原生的XF控件,然后在各平台下修改其呈现方法. 所以了解每个XF控件在不同平台上呈现使用的控件类是有所必须要的.以下别人 ...

  3. 塞翁失马,焉知非福:由 Styles.Render 所引发 runAllManagedModulesForAllRequests="true" 的思考

    最近在使用 MVC 开发的时候,遇到一个对我来说"奇怪的问题",就是使用 BundleTable 进行 CSS.JS 文件绑定,然后使用 Styles.Render.Scripts ...

  4. ReactJS分析之入口函数render

    前言 在使用React进行构建应用时,我们总会有一个步骤将组建或者虚拟DOM元素渲染到真实的DOM上,将任务交给浏览器,进而进行layout和paint等步骤,这个函数就是React.render() ...

  5. Cesium原理篇:6 Render模块(3: Shader)

    在介绍Renderer的第一篇,我就提到WebGL1.0对应的是OpenGL ES2.0,也就是可编程渲染管线.之所以单独强调这一点,算是为本篇埋下一个伏笔.通过前两篇,我们介绍了VBO和Textur ...

  6. Cesium原理篇:6 Render模块(4: FBO)

    Cesium不仅仅提供了FBO,也就是Framebuffer类,而且整个渲染过程都是在FBO中进行的.FBO,中文就是帧缓冲区,通常都属于高级用法,但其实,如果你了解了它的基本原理后,用起来还是很简单 ...

  7. Cesium原理篇:6 Render模块(5: VAO&RenderState&Command)

    VAO VAO(Vertext Array Object),中文是顶点数组对象.之前在<Buffer>一文中,我们介绍了Cesium如何创建VBO的过程,而VAO可以简单的认为是基于VBO ...

  8. render :template 和 render :parital

    1 .这两个都可以在controller和view中使用,而且好像可以替换,只是用:template,rails不会自动加下划线,用:partial,rails会自动添加下划线.而且规范的做法,:te ...

  9. AngularJs中,如何在render完成之后,执行Js脚本

    AngularJs是Google开源的前端JS框架.使用AngularJs, 我们能够容易地.健壮的开发出类似于Gmail一样的单页Web应用.AngularJs这个新兴的MVC前端框架,具有以下特点 ...

  10. 利用Render Texture实现游戏的小雷达效果(摄影机分屏)

    最近游戏蛮牛在举办一个活动,就是要做出这样的效果: 题目:实现游戏分屏效果 要求:1.        分屏,且分割线不规则(即非水平或垂直):2.        各屏可单独操作(移动.缩放),操作指该 ...

随机推荐

  1. Ubuntu安装MyEclise16 过程差不多

    选择好安装路径,和workpace路径,可能会因为工作空间放的位置不太对,导致myeclipse出现问题. 1.Ubuntu安装MyEclise10 不知道为什么网上会有那么多安装过程,还有配置目录和 ...

  2. 在eclipse中安装go编辑器阅读fabric代码

    参考资料 由于fabric采用go语言编写,故需要安装go环境. 安装要求: Java VM version 8 or later. Eclipse 4.6 (Neon) or later. 1. J ...

  3. oracle 表或视图不存在

    导入导出时,会自动表名自动加上了““双引号需要将表名改一下就可以了 alter table "oldtablename" rename to newtableName;

  4. 20.纯 CSS 为母亲节创作一颗像素画风格的爱心

    原文地址:https://segmentfault.com/a/1190000014837536 感想: 网格grid 又来了: fr : (剩余空间长度)单位, 1.当(50px,nfr),nfr代 ...

  5. Mybatis五(一级二级缓存、第三方缓存)

    一级缓存 Mybatis对缓存提供支持,但是在没有配置的默认情况下,它只开启一级缓存,一级缓存只是相对于同一个SqlSession而言.所以在参数和SQL完全一样的情况下,我们使用同一个SqlSess ...

  6. 07.linux系统管理命令

    1.图形界面管理: 如想从图形界面切换至字符界面 输入 init 3 如想字符界面切换至图形界面 init 5 2.进程管理: kill 杀死一个进程 Kill -9 强制杀死一个进程   ›stat ...

  7. CKEditor 5

    1.官网 https://ckeditor.com/ckeditor-5/download/ 2.

  8. Set原理

    一.HashSet判断重读值的原理 1. 哈希表的存储结构: ==>数组+链表,数组的每个元素以链表的形式存储 2.如何把对象存储到哈希表中 ==>先计算对象的hashcod值,再对数组的 ...

  9. sql server 字符串字节长度

    SQL Server 字符个数,字节长度,len不是你想要的字节数,datalength才能得到字节数 select len('娜娜123') ,datalength('娜娜123') 5       ...

  10. DotNet菜鸟入门之无限极分类(一)设计篇

    写这个教程的原因,是因为,无限极分类,在许多项目中,都用得到.而对于新手来说,不是很好理解,同时,操作上也有一些误区或者不当之处.所以我就斗胆,抛砖引玉一下,已一个常见的后台左侧频道树为例子,讲解一下 ...