POV-Ray : Newsgroups : povray.binaries.images : >1600 radiosity samples: right costheta distribution? : Re: >1600 radiosity samples: right costheta distribution? Server Time
14 Aug 2024 01:17:17 EDT (-0400)
  Re: >1600 radiosity samples: right costheta distribution?  
From: Anders K 
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


 

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