 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Any way to access the date or time? One application would be a
self-seeding, truly random rand based of current mins & secs.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3a4e9b41$1@news.povray.org>, "Greg M. Johnson"
<"gregj;-)56590\""@aol.c;-)om> wrote:
> Any way to access the date or time? One application would be a
> self-seeding, truly random rand based of current mins & secs.
Not in the official version, but MegaPOV has functions to do this.
http://nathan.kopp.com/patched.htm
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Greg M. Johnson <"gregj;-)56590""@aol.c;-)om> wrote in message
<3a4e9b41$1@news.povray.org>...
>Any way to access the date or time? One application would be a
>self-seeding, truly random rand based of current mins & secs.
Someone came up with a method of doing this in official POV-Ray. Check in
the .text.scene-files and .binaries.scene-files groups.
--
Mark
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Greg M. Johnson" <"gregj;-)56590\""@aol.c;-)om> wrote in message
news:3a4e9b41$1@news.povray.org...
> Any way to access the date or time? One application would be a
> self-seeding, truly random rand based of current mins & secs.
>
I use something like this...
/// batch file "getinfo.bat"
@echo off
cd C:\
echo " > gottime.txt
echo | more | time | find "Current" >> gottime.txt
echo "; >> gottime.txt
/// povini
Pre_Frame_Command=C:\Command.com /c c:\getinfo.bat %s %n %k
/// pov file
#fopen MyFile "c:\gottime.txt" read
#read (MyFile,MyInfo)
#fclose MyFile
#declare Seconds = val(substr(MyInfo, 28, strlen(MyInfo)-29));
#declare Minutes = val(substr(MyInfo, 25, strlen(MyInfo)-29));
#declare R1 = seed((Minutes/Seconds)*10000) ;
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Bill Dewitt" <bde### [at] cfl rr com> wrote :
>
> /// povini
> Pre_Frame_Command=C:\Command.com /c c:\getinfo.bat %s %n %k
I should note that this command supplies more than just the time. %s %n
and %k supply info to other parts of the batch file not copied here.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |