photon mapping reference material
play

Photon Mapping Reference Material The slides have used/adapted - PowerPoint PPT Presentation

Photon Mapping Reference Material The slides have used/adapted material from the following references: Slides on Photon Mapping by Jan Kautz (web4.cs.ucl.ac.uk/teaching/4074/archive/.../04_ photon _ maps .pdf) Slides on Photon Mapping by Bill


  1. Photon Mapping

  2. Reference Material The slides have used/adapted material from the following references: Slides on Photon Mapping by Jan Kautz (web4.cs.ucl.ac.uk/teaching/4074/archive/.../04_ photon _ maps .pdf) Slides on Photon Mapping by Bill Clark (http://penguin.ewu.edu/cscd570/2011/PDFNotes/PhotonMapping.pdf)

  3. Photon Mapping ()*+,&-+$&.*/0-/$&"#,)1#+,23)-$#+, !"#$%&'(!)&"**)+(!&)(,-&,)*",&,'./!'(.&$00$*!% 1'2$*!&$00$*!%&02)3&,'./!&!)&)45$*!&!)&$-$&6&0)2&4)!/& 1'00+%$&"(1&%7$*+,"2&,'./!'(.8 4-5&60-7#+, 0)2&1'00+%$&,'./!&+%$%&)(,-&,)*",&$00$*!%&()&.,)4",& ,'./!'(.8 0)2&%7$*+,"2&,'./!&1)$%&1)&%)3$&.,)4",&,'./!'(.&%'(*$& 2$0,$*!$1&2"-%&*"(&42'(.&4"*#&,'./!&02)3&)!/$2&)45$*!%&6& !/+%&'(&!/$&%7$*+,"2&*)37)($(!&.,)4",&,'./!'(.&'%& 72)9'1$18

  4. Photon Mapping Ray Tracing • Cast a ray from the eye through each pixel • Trace secondary rays (light, reflection, refraction)

  5. Photon Mapping ()$#*+#,- !"#$%"&!''"()#*%+"#*!#"&,)-!.-/.!#)'".01*#",)!-*021" %2)",)10%2"3,%("!.."%#*),",)10%2'" (%+).'"%2.4"+033/')".01*#021 '&)-/.!,".01*#021"-!2"5)"&,%60+)+"60!"!"*45,0+",)2+),)," #*!#"/')'"5%#*",!+0%'0#4"3%,"#*)"+033/')"#),("!2+",!4" #,!-021"3%,"#*)"'&)-/.!,"#),(7

  6. Photon Mapping The Rendering Equation (Kajiya '86) x'' x x' # L x ( ' x '' ) E x ( ' x '' ) f ( , ' , '' ) ( x x x L x x V x x G x x dx ' ) ( , ' ) ( , ' ) " = " + " r x • L(x'->x'') is the total radiance from x' • f is the BRDF

  7. � Photon Mapping � � � � - � BDICA- � DLCA-ABDMCA-ABD$3N � � n ! ! i r ><2409?/49<2$?@$ � � � 06E56>49F94@$ " i " CG8.HD$<E$476$=/0E1>6$14$AB r ./0123$123$&/4560

  8. Photon Mapping !"#$%#&%#'()*"+'(*,#-&#.(/"+(+%0+%)%#'&#.(*"1(2&.*'( )3,''%+)(,2"#.($,+&"4)(0,'*)(&#(,()3%#%(/+"5('*%( 2&.*'()"4+3%('"('*%(%6%7 8%/&#&'&"#)(9('*%($%+'&3%)("/(,(2&.*'(0,'*(3,#(:%; <(;(,(2&.*'()"4+3% =(;('*%(%6% >(;(,()0%342,+(+%/2%3'&"# 8(;(,(-&//4)%(+%/2%3'&"#

  9. Photon Mapping ! " # !"#$%&&' ("#$%&' )"#$&&%' CS

  10. Photon Mapping ()*+#,-.#),&/).-.#), !"#$%&'(#!$)*#$++,-.! .-/(/,-.0 "102!3!-.$!-#!4-#$!-5!1!$6$./+ "107!3!8$#-!-#!4-#$!-5!1$6$./+ "109!3!8$#-!-#!-.$!1!$6$./ "1:1;0!3!(!1!-#!(!1;!$6$./ <)(4*'$!3!=">:?02?<!@@!*(/A!5#-4!',%A/!B,/A!-.$!-#! 4-#$!C,55&+$!-#!+*$D&'(#!#$5'$D/,-.+!E$5-#$!E$,.%! C,55&+$'F!#$5'$D/$C!/-!/A$!$F$G

  11. Photon Mapping Caustic Reflection (<=#%&#7&(&>(.4=<& (<*%+&

  12. Photon Mapping Introduction • ! ,1%41%&JT;:&UVK&UW& • ! G*3.@($14&$"1&$2(%4)#2$&#7&*%6*P*6.(@& )"#$#%4& • ! !"#$#%4&13*X16&72#3&@*+"$&4#.2<14& • ! !"#$#%4&L#.%<1&#Y&#7&4)1<.@(2& 4.27(<14& • ! !"#$#%4&61)#4*$16&#%&6*Y.41&4.27(<14& – ! 81@6&*%&(&Z?E&4)(=(@&6($(&4$2.<$.21& – ! G.27(<14&%116&%#$&L1&)(2(31$12*/16& • ! !"#$#%4& !"##$!%$&'()'*+%,'%-+!./0' 72#3& 1A1&

  13. Photon Mapping Introduction

  14. Photon Mapping Introduction • Store photons – position + light power + incoming direction

  15. Photon Mapping Introduction • Efficiently store photons for fast access • Use hierarchical spatial structure (kd-tree)

  16. Photon Mapping Introduction • Cast primary rays • For secondary rays – reconstruct irradiance using k closest photons • Combine with irradiance caching and other techniques

  17. Photon Mapping Introduction Photon Mapping - Caustics • Special photon map for specular reflection and refraction Glass sphere

  18. Photon Mapping What is a Photon? • ! _&)"#$#%& * &*4&(&)(2=<@1&#7&@*+"$& $"($&<(22*14&S.^& !" * D ! * K& ! * H& ! p – ! !#512B& !" * &c&3(+%*$.61&D*%& :(X4H&(%6&<#@#2&#7&$"1&S.^&*$& <(22*14K&4$#216&(4&(%&;TR&$2*)@1& – ! !#4*=#%B& ! * &c&@#<(=#%&#7&$"1& )"#$#%& – ! E*21<=#%B& ! * &c&$"1&*%<*61%$& !" p 6*21<=#%& ! . &.416&$#&<#3).$1& *22(6*(%<1& • ! !"#$#%4&P4O&2(A4& x p – ! !"#$#%4&)2#)#+($1&S.^& – ! ;(A4&+($"12&2(6*(%<1&

  19. Photon Mapping Sources • ! !#*%$&4#.2<1& – ! !"#$#%4&13*X16&.%*7#23@A&*%&(@@& 6*21<=#%4& • ! !#512&#7&4#.2<1&D:H&6*4$2*L.$16& 1P1%@A&(3#%+&)"#$#%4& • ! 0@.^&#7&1(<"&)"#$#%&1M.(@&$#&4#.2<1& )#512&6*P*616&LA&$#$(@&d&#7&)"#$#%4& • ! 0#2&1^(3)@1K&(&Wb:&@*+"$&L.@L&5#.@6& 41%6&#.$&(&$#$(@&#7&ebb-&)"#$#%4K& 1(<"&<(22A*%+&(&S.^& !" &#7&bOW&3:& • ! !"#$#%4&41%$&#.$&#%<1&)12&4*3.@(=#%K& %#$&<#%=%.#.4@A&(4&*%&2(6*#4*$A&

  20. Photon Mapping Mixed Surfaces • ! '()*+,$-&.+/$&-0$,(1+)&+2%& %"3(-$&,45042$26-& – ! & ! ! &7&%"3(-$&)$8$,6+2,$& – ! & ! " &7&-0$,(1+)&)$8$,6+2,$& – ! & ! ! &9& ! " &:&;&<,42-$)/+=42&4*& $2$)>?@& ! d = 50% • ! A$6& ! &B$&+&(2"*4)5&)+2%45&/+1($& *)45&C&64&;& ! s = 30% • ! D*& ! &:& ! ! &6.$2&)$8$,6&%"3(-$& • ! E1-$&"*& ! &:& ! ! &9& ! " &6.$2&)$8$,6& Russian Roulette -0$,(1+)& • ! F6.$)G"-$&+B-4)B&

  21. Photon Mapping !"#$#%&'())*%+&*,&(&-&,$(+.&)/#0.,,1 !)%*&+,&-.#"$#/0&)1%&213)3/&45* 2'*$&)"#$#%,&3/#'&$".&4*+"$, 50($$./&)"#$#%,&*%&$".&,0.%.&6&)"#$#%&*%$./(0$*#%,& 7*$"&#89.0$, 5$#/.&)"#$#%,&*%&$".&)"#$#%&'() !)%*&',&67#/0&)1%&*13)3/&85*&#/&95:&)95;#/0&<&=#/5"& 9%/$%9#/0 :$&*%$./,.0$*#%&)#*%$,&;&*%,$.(<&#3&0(40=4($*%+&$".& <*33=,.&4*+"$*%+&0#')#%.%$&3/#'&$".&%#/'(4&>.0$#/?& $".&<*33=,.&4*+"$*%+&0#')#%.%$&0#'.,&3/#'&$".& )"#$#%&'()1

  22. Photon Mapping LTW&])$$& • ! ^"/$2&+&1+)>$&2(5B$)&4*&04"26-&0 ; N_N0 2 &"2&XW& -0+,$&G$&G+26&64&,1+--"*?&6.$5&+2%&B$&+B1$&64& 5+M$&*+-6&U($)"$-`& – ! a"2%&+11&6.$&04"26-&G"6."2&+&,(B4"%& – ! a"2%&+11&6.$&04"26-&G"6."2&+&2$">.B4().44%&4*&+& >"/$2&04"26& • ! ].$-$&04"26-&+)$&0.4642&04-"=42-&42&-()*+,$-R&

  23. Photon Mapping LTW&])$$& • ! J&LTW&6)$$&"-&b(-6&+2&+#"-&+1">2$%&c'Q&6)$$R& • ! E+,.& 24%$& 4*& 6.$& 6)$$& -64)$-& +& -$0+)+=2>& 01+2$N&%$\2$%&B?&6.$&5$%"+2&/+1($&+142>&42$& 4*&6.$&,44)%"2+6$-R&& • ! ].$&1$+/$-&4*&6.$&6)$$&,426+"2&6.$&4)">"2+1&%+6+& 04"26-R&&

  24. Photon Mapping LTW&])$$& • ! Y)"6$&0 " &d&<# ;" N&# V" N&# X" @& • ! A$6&# b e&B$&6.$&5$%"+2&4*&6.$&/+1($-&4*&6.$&b6.&,44)%"2+6$& <bd;NVNX@R& • ! '6+)6&G"6.&# ; e&G.",.&G"11&0+)==42&6.$&4)">"2+1&-$6&4*&04"26-& "264&6G4&-$6-&<%"/"%$%&+142>&6.$&f&+#"-@R& • ! Z4G&+001?&6.$&-+5$&0)4,$%()$&64&$+,.&4*&6.$&1$PT&+2%&)">.6T -$6-N&$#,$06&24G&-(B%"/"%$&42&# V e&& • ! Z4G&+001?&6.$&-+5$&0)4,$%()$&)$,()-"/$1?&64&$+,.&4*&6.$-$& -(B-$6-&$#,$06&24G&-(B%"/"%$&42&# X e&& • ! L$$0&+001?"2>&6."-&)$,()-"/$1?&(2=1&$+,.&1$+*&4*&6.$&6)$$& ,426+"2-&+&%+6+&04"26R&&

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend