POV-Ray : Newsgroups : povray.programming : >1600 radiosity samples: right costheta distribution? Server Time
4 Oct 2024 23:16:34 EDT (-0400)
  >1600 radiosity samples: right costheta distribution? (Message 15 to 24 of 34)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Christoph Hormann
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 4 Jan 2003 13:17:44
Message: <3E172548.FE1C1706@gmx.de>
Apache wrote:
> 
> The set that POV-Ray uses currently doesn't look like that either. (see my
> post, pbi "Re: >1600 radiosity samples: right costheta distribution?").

You are obviously doing something wrong, i just rendered it and it look
totally different here (it looks indeed uniform although not extremly high
quality).

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 31 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Apache
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 4 Jan 2003 13:19:05
Message: <3e172599@news.povray.org>
I'm nuts .......    I rerendered it and it turned out to be some perspective
distortion :-)


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 4 Jan 2003 15:02:01
Message: <Xns92F9D5BC2523raf256com@204.213.191.226>
"Apache" <apa### [at] yahoocom> wrote in
news:3e16ad01$1@news.povray.org 

[...]

Maybe just make a scene that needs >1600 samples, build i.e. 5000 samples 
array, re-compile POV and make few renders involwing old and new 
distribution

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 4 Jan 2003 15:10:53
Message: <Xns92F9D73CB1C79raf256com@204.213.191.226>
"Nathan Kopp" <pov### [at] nkoppmailshellcom> wrote in
news:3e1714cf$1@news.povray.org 

> If it realy is O(n), which would be great, couldn't you simply
> generate an appropriate distribution each time, removing the need to
> order them.  If the algorithm produces evenly spaced samples for small
> counts, this would also ensure that small sample counts look their
> best. 

Why not generate array of arrays ?
array for count=3, count=4, count=5 etc... ?

taht would be much faster then generating in real-time, and will not use to 
much memory


-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Anders K 
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 4 Jan 2003 15:31:31
Message: <3e1744a3$1@news.povray.org>
Rafal 'Raf256' Maj wrote:
> Why not generate array of arrays ?
> array for count=3, count=4, count=5 etc... ?
>
> taht would be much faster then generating in real-time, and will not use
to
> much memory

Uh, it won't? Just the tables for up to 1600 samples would require 3.7 MB in
packed format, and we want to go well beyond that!

Anders

--
#macro E(D)(#if(D<2)D#else#declare I=I+1;mod(pow(.5mod(I 6))*asc(substr(
"X0(1X([\\&Q@TV'YDGU`3F(-V[6Y4aL4XFUTD#N#F8\\A+F1BFO4`#bJN61EM8PFSbFA?C"
I/6 1))2)<1#end)#end#macro R(D,I,T,X,Y)#if(E(D))R(D-1I,T,Y/2X)R(D-1I,T+Y
/2Y/2X)#else box{T T+X+Y pigment{rgb E(2)*9}}#end#end R(10,5z*3-1v*2u*2)


Post a reply to this message

From: Apache
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 4 Jan 2003 17:54:02
Message: <3e17660a$1@news.povray.org>
And that's exactly what I'm planning on.


Post a reply to this message

From: Thies Heidecke
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 5 Jan 2003 00:28:53
Message: <3e17c295@news.povray.org>
That's exactly what came to my mind, too.

I tweaked my old sunflower-testscene to generate the points on
a hemisphere like Mael described in his post.

I quite like how it came out. It looks evenly distributed when viewed
from above with orthographic view and it scales good with increasing
number of points.

I posted the anims in p.b.a
comments are welcome,

Thies


Post a reply to this message

From: Apache
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 5 Jan 2003 06:14:02
Message: <3e18137a$1@news.povray.org>
My box is currently calculating a set of 6400 samples. It seems it will take
quite some time, but whenever it's finished, I'll let you know.

The ordering is very good, so with very low samples the distribution is very
good. If the count is set to 6400, the distribution is equal to the golden
ration distribution. (See Thies Heidecke's post in this conversation.)


Regards,
Apache


Post a reply to this message

From: Christoph Hormann
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 5 Jan 2003 06:29:22
Message: <3E181712.681F60D1@gmx.de>
Apache wrote:
> 
> My box is currently calculating a set of 6400 samples. It seems it will take
> quite some time, but whenever it's finished, I'll let you know.
> 
> The ordering is very good, so with very low samples the distribution is very
> good. If the count is set to 6400, the distribution is equal to the golden
> ration distribution. (See Thies Heidecke's post in this conversation.)

You should note that this is a regular distribution, therefore will be
likely to generate regular artefacts under certain circumstances.  Using
regular distributions has been tried before, see for example:

http://perso.wanadoo.fr/albedo/patchedpov.html

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 31 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Apache
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 5 Jan 2003 08:34:21
Message: <3e18345d$1@news.povray.org>
I found out the distribution isn't as good as I thought. I think the problem
is in the ordering, which is more complicated than I had expected  ;-)


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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