POV-Ray : Newsgroups : povray.binaries.images : Dome lights : Re: Dome lights Server Time
7 Aug 2024 19:24:22 EDT (-0400)
  Re: Dome lights  
From: Trevor G Quayle
Date: 20 Dec 2005 12:20:01
Message: <web.43a83cb4e93c309a6c4803960@news.povray.org>
I'm in the process of trying to implement subsampling and seeing what works
best.  Not sure whether its better to go with a random sampling or a fixed
subdivision.  I have added a type of adaptive subsampling that adds
additional lights, this is done in a fixed rectangular subdivision of each
vertex and its tributary area.  I'll post updated code when I get things a
bit more refined.

Ads a note for your routine, you may want to fix your subsamplig averaging
method (unless it's meant to work as you've made it).  The way you've done
it (ie iteratively adding a number then dividing by 2) doesn't give a true
average.  For example, for the series (7,5,3,1,224) you get 10.1, whereas
the average is 7.5.  You method gives more weighting to the numbers towrds
the end of the series. If you want to change this:

Instead of:
    #while (CNT < SSAMP)
           #local COL = (COL + PIMAGE(X+(rand(S)*SP),Y+(rand(S)*(SP)),0))/2;
           #local CNT = CNT + 1;
    #end

Try:
    #while (CNT < SSAMP)
           #local COL = (COL + PIMAGE(X+(rand(S)*SP),Y+(rand(S)*(SP)),0));
           #local CNT = CNT + 1;
    #end
    #local COL = COL/(SSAMP+1);


I'm looking forward to seeing more of your progress.

PS: I haven't tried adding photons, radiosity or AA yet as I'm not very
patient at seeing results...

-tgq


Post a reply to this message

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