POV-Ray : Newsgroups : povray.binaries.images : WIP mini planet [81 Ko] Server Time
12 Aug 2024 23:13:55 EDT (-0400)
  WIP mini planet [81 Ko] (Message 11 to 11 of 11)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Nigel Stewart
Subject: Re: WIP mini planet [81 Ko]
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

<<< Previous 10 Messages Goto Initial 10 Messages

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