Presentation is loading. Please wait.

Presentation is loading. Please wait.

Eighty-color-channel lighting Zoltán Márton Cecília Sik Lányi University of Pannonia Egyetem u. 10.

Similar presentations


Presentation on theme: "Eighty-color-channel lighting Zoltán Márton Cecília Sik Lányi University of Pannonia Egyetem u. 10."— Presentation transcript:

1 Eighty-color-channel lighting Zoltán Márton marton.zoltan@grandpace.com Cecília Sik Lányi lanyi@almos.uni-pannon.hu University of Pannonia Egyetem u. 10. 8200 Veszprém Hungary

2 2 Overview What’s wrong with the 3 color channel methods? Methods for lighting simulations Lighting in today's games Colorimetry basics Phong shading Eighty-color-channel lighting Comparing with today’s real-time computer graphics

3 3 What’s wrong with the 3 color channel methods? Less accurate lighting even with HDR This can create unrealistic lighting and shading

4 4 Methods for lighting simulations Global Illumination Ray trace / Photon trace

5 5 Lighting in today's games HDR Ambient Parallax Occlusion Parallax mapping Bumpmapping Specular highlight Dynamic Ambient Occlusion But all those are still in 3 color channels

6 6 Colorimetry basics

7 7 Phong shading It’s one of the most common used, and well known shading It’s the base of bump mapping N L Surface

8 8 Eighty-color-channel lighting Phong shading The approximation shown in the colorimetry basics Color space transformation Over lit detection to avoid the distortion of the colors We have to use:

9 9 Eighty-color-channel lighting To do all those calculations we need to use shaders The per-pixel based calculations run on the pixel shader units There are some setups and basic transformations which have to be done in a vertex shader program

10 10 Eighty-color-channel lighting dataflow Phong shading 80 color channel calculations Color space transformation Over lit detection Pixel Shader Basic transformations, Light vector calculation Vertex Shader Light source position XYZ coefficients Light spectrum distribution Light intensity & attenuation coefficient XYZ to RGB matrix Gamma correction coefficients...... Texture 0 Texture 1 Texture 19 Surface reflexion coefficients Post processing

11 11 Eighty-color-channel lighting On Shader Model 3.0 and Shader Model 2.0 we have 16 texture units per-pass under OpenGL. We need to split the color calculation into two parts In this case we have to use High Dynamic Range

12 12 Eighty-color-channel lighting dataflow Pass 1Pass 2 Transform to RGB and over lit detection Post processing Phong shading + first 16 textures in the colorimetry calculation Phong shading + remaining 4 textures Texture additive blending with write to Z-Buffer disabled Texture no blendings with write to Z-Buffer enabled

13 13 Comparing with today’s real-time computer graphics 3 color channel 80 color channel

14 14 Comparing with today’s real-time computer graphics 3 color channel 80 color channel

15 15 Comparing with today’s real-time computer graphics 3 color channel 80 color channel

16 16 Comparing with today’s real-time computer graphics 3 color channel 80 color channel

17 17 Comparing with today’s real-time computer graphics 3 color channel 80 color channel

18 18 Comparing with today’s real-time computer graphics 3 color channel 80 color channel

19 19 Comparing with today’s real-time computer graphics 3 color channel 80 color channel

20 20 Comparing with today’s real-time computer graphics 3 color channel 80 color channel

21 21 Comparing with today’s real-time computer graphics 3 color channel 80 color channel

22 22 Summary We have shown the method how to calculate 80 channel lighting on colorimetry base We have compared the „traditional” 3 color channel lighting with the 80 color channel lighting The program is capable to run in real-time even on older DX9 video cards

23 23 Future plan Modelling the real world: Puppet furniture: sitting- and dining room Wine-glasses and coloured boxes Comparing the real LED lights with the lighting in VR

24 24 Thanks for listening!

25 25 Contact Zoltán Márton marton.zoltan@grandpace.com Cecília Sik Lányi lanyi@almos.uni-pannon.hu


Download ppt "Eighty-color-channel lighting Zoltán Márton Cecília Sik Lányi University of Pannonia Egyetem u. 10."

Similar presentations


Ads by Google