|
![](/i/fill.gif) |
> 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
|
![](/i/fill.gif) |