POV-Ray : Newsgroups : povray.binaries.images : Experimental tonemapping tests : Re: Experimental tonemapping tests Server Time
7 Nov 2024 09:25:08 EST (-0500)
  Re: Experimental tonemapping tests  
From: Jaime Vives Piqueres
Date: 11 Apr 2016 16:26:05
Message: <570c085d@news.povray.org>
Old film via image_map:

   #declare vintage_amount=0.9;
   #declare f_old_film=
   function{
     pigment{
       image_map{jpeg "old-film"}
     }
   }
   tonemapping{
     parameters{red,green,blue,x,y}
 
function(r,g,b,x,y){r*(1-vintage_amount)+r*f_old_film(x,y,0).red*vintage_amount}
 
function(r,g,b,x,y){g*(1-vintage_amount)+g*f_old_film(x,y,0).green*vintage_amount}
 
function(r,g,b,x,y){b*(1-vintage_amount)+b*f_old_film(x,y,0).blue*vintage_amount}
   }

--
jaime


Post a reply to this message


Attachments:
Download 'hourglass-02-tonemapping-old-film-img2.jpg' (93 KB)

Preview of image 'hourglass-02-tonemapping-old-film-img2.jpg'
hourglass-02-tonemapping-old-film-img2.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.