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