POV-Ray : Newsgroups : povray.binaries.images : WIP mini planet [81 Ko] : Re: WIP mini planet [81 Ko] Server Time
13 Aug 2024 01:21:02 EDT (-0400)
  Re: WIP mini planet [81 Ko]  
From: Nigel Stewart
Date: 18 Jul 2003 13:27:43
Message: <3f182e0f@news.povray.org>
> I take 3 random angles and I rotate my point around all 3 axes with 
> these angles.
> 
>     #local a1=360*rand(MySeed);
>     #local a2=360*rand(MySeed);
>     #local a3=360*rand(MySeed);
>     #local InitPos = vrotate (<10,0,0>, <a1,a2,a3>);
>     #local Pos=trace (Terrain, 0, InitPos, Norm);

	This link may help:
	http://www.math.niu.edu/~rusin/known-math/96/sph.rand

	Methods for generating uniformly-distributed points on
	a unit sphere


Post a reply to this message

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