POV-Ray : Newsgroups : povray.binaries.images : >1600 radiosity samples: right costheta distribution? Server Time
16 Nov 2024 14:22:40 EST (-0500)
  >1600 radiosity samples: right costheta distribution? (Message 1 to 6 of 6)  
From: Apache
Subject: >1600 radiosity samples: right costheta distribution?
Date: 4 Jan 2003 04:32:01
Message: <3e16aa11@news.povray.org>
this image belongs to my post at povray.programming.


Post a reply to this message


Attachments:
Download 'rd.gif' (43 KB)

Preview of image 'rd.gif'
rd.gif


 

From: Apache
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 4 Jan 2003 12:53:23
Message: <3e171f93@news.povray.org>


Post a reply to this message


Attachments:
Download 'rd2.gif' (11 KB)

Preview of image 'rd2.gif'
rd2.gif


 

From: Apache
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 4 Jan 2003 13:18:30
Message: <3e172576$1@news.povray.org>
this image has perspective and we don't want that. Please ignore it :-)


Post a reply to this message

From: Anders K 
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 4 Jan 2003 13:23:30
Message: <3e1726a2@news.povray.org>
You're probably unpacking the sample data incorrectly -- have you looked at
the VUnpack function in radiosit.cpp? Attached is the distribution that I
get. Here's the code I'm using:

#declare rad_samples = array[1600] {
  <250, 127, 71>,
  <116, 109, 251>,
  <146, 45, 191>,
  // (1596 samples omitted)
  <221, 117, 172>
}

global_settings { assumed_gamma 1 }
camera {
  orthographic
  right 2*x*image_width/image_height up 2*y direction z
  location 10*z look_at 0
}
#declare I = 0;
#while (I < 1600)
  sphere {
    (rad_samples[I] / 255) * <2, 2, 1> - <1, 1, 0>, .005
    pigment { rgb 1 }
    finish { ambient 1 }
  }
  #declare I = I + 1;
#end


Post a reply to this message


Attachments:
Download 'rad_data.gif' (15 KB)

Preview of image 'rad_data.gif'
rad_data.gif


 

From: Anders K 
Subject: Re: >1600 radiosity samples: right costheta distribution?
Date: 4 Jan 2003 13:27:10
Message: <3e17277e$1@news.povray.org>
I wrote:
>     (rad_samples[I] / 255) * <2, 2, 1> - <1, 1, 0>, .005

I forgot to vnormalize that whole vector, but it doesn't change the image by
much (the points only move by about a pixel at most).

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:00:46
Message: <3e17598e$1@news.povray.org>
It was a perspective problem. Already fixed it.


Post a reply to this message

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