POV-Ray : Newsgroups : povray.off-topic : Random vector through a hemisphere? : Re: Random vector through a hemisphere? Server Time
10 Oct 2024 21:17:00 EDT (-0400)
  Re: Random vector through a hemisphere?  
From: scott
Date: 18 Feb 2008 03:10:13
Message: <47b93d65$1@news.povray.org>
> Another way is to generate a random vector:
>
> #local vResult=vrotate(x,<rand(Seed),rand(Seed),rand(Seed)>*360);

vResult is not uniformly distributed over the sphere with this approach 
though...


Post a reply to this message

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