1 / 25

Eighty-color-channel lighting

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. Overview. What’s wrong with the 3 color channel methods ? Methods for lighting simulations

norm
Download Presentation

Eighty-color-channel lighting

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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. Overview • What’s wrong with the 3 color channel methods? • Methods for lightingsimulations • Lighting in today's games • Colorimetrybasics • Phong shading • Eighty-color-channel lighting • Comparing with today’s real-time computer graphics

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

  4. Methods for lightingsimulations • Global Illumination • Ray trace/Photon trace

  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. Colorimetrybasics

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

  8. Eighty-color-channel lighting • We have to use: • Phong shading • The approximation shown in the colorimetry basics • Colorspace transformation • Overlit detection to avoid the distortion of the colors

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

  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. Phong shading + remaining 4 textures Phong shading + first 16 textures in the colorimetry calculation Textureno blendings with write to Z-Buffer enabled Textureadditive blending with write to Z-Buffer disabled Transform to RGB and over lit detection Pass 1 Pass 2 Post processing Eighty-color-channel lightingdataflow

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

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

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

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

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

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

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

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

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

  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. 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. Thanks for listening!

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

More Related