Talk:High-dynamic-range rendering: Difference between revisions

Content deleted Content added
Line 576:
::Also we may want, that during weak lighting in scene, when 1/255=0.0039, would look like 16/255=0.0627, so then we do not subtract anything:
::<math>final.rgb=(color.rgb)^{1/k_g}=(color.rgb)^{1/(2-average)};</math> 0<color.rgb<1; 0<average<1.
::But if we do not subtract, then contrast ratio from 1:16 will become 16:64=1:4, will become very small. And if we subtract, then contrast ratio will increase 3 times, because before algorithm if is 1:16, then after (17-16):(64-16)=1:48. But unfortunately subtraction changing normal colours balance. So better use normal algorithm "<math>final.rgb=color.rgb/average</math>". Or to use correction, which don't brings distortion of natural colors balance:
::<math>final.rgb=((color.rgb)^{1/(2-average)})/average;</math> 0<color.rgb<1; 0<average<1.
::This way you will get weakest colour rised by 16 and more and in proper colors natural balance. For example if average=16/255=0.062745, then color=1/255=0.00392 is rised to:
Line 592:
::1) <math>final.rgb=(1/255)^{1/(2-0.5)}/0.5=0.00392^{1/1.5}/0.5=0.02487/0.5=0.049735887;</math> or 12.68=13;
::2) <math>final.rgb=(1/255)/0.5=0.00392/0.5=0.007843137;</math> or 2.
::2.1) <math>final.rgb=(1/255)/0.2=0.00392/0.2=1.009607843;</math> or 5. <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Versatranitsonlywaytofly|Versatranitsonlywaytofly]] ([[User talk:Versatranitsonlywaytofly|talk]] • [[Special:Contributions/Versatranitsonlywaytofly|contribs]]) 21:57, 12 December 2011 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->
::2.1) <math>final.rgb=(1/255)/0.2=0.00392/0.2=1.009607843;</math> or 5.
<small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Versatranitsonlywaytofly|Versatranitsonlywaytofly]] ([[User talk:Versatranitsonlywaytofly|talk]] • [[Special:Contributions/Versatranitsonlywaytofly|contribs]]) 21:57, 12 December 2011 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->