POV-Ray : Newsgroups : povray.windows : Using calls to rand() : Re: Using calls to rand() Server Time
28 Jul 2024 12:28:11 EDT (-0400)
  Re: Using calls to rand()  
From: bassompierre laurent
Date: 1 Mar 1999 04:18:28
Message: <36da5b64.0@news.povray.org>
Some code to help you. Parsing time can be long if use a large number of
stars !!


>Hi - I'm trying to create a "space" scene containing (obviously) stars.
What I am trying to do is to set up all the individual stars using calls to
rand() Eg: sphere { <rand(r1),80,rand(r2)>, 0.1 } where r1 and r2 are two
different seeded values.  Unfortunately, Pov-ray isn't being very
cooperative, and I don't know any formulas offhand which can give me a nice
random starfield between x:(-8;26) and z(-18;2), y probably constant at 80.
If anyone could mail me any hints or fragments of code to try out, I wwould
be much obliged.  If this is the wrong place to post this, please tell me
and I'll post it somewhere else :-) Jeremy
>


Post a reply to this message


Attachments:
Download 'stars.pov.txt' (2 KB)

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