|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Is there a way to call the present system time into a pov file? So that I
can use it to show the correct angles of the sun and moon? I think I can do
it using a text program which has a time stamp, but I wonder if POV does
it...
I don't find a reference to it in the help file, and none of the options in
the editor look like it.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Bill DeWitt wrote:
>
> Is there a way to call the present system time into a pov file? So that I
> can use it to show the correct angles of the sun and moon? I think I can do
> it using a text program which has a time stamp, but I wonder if POV does
> it...
>
> I don't find a reference to it in the help file, and none of the options in
> the editor look like it.
There currently is no way to access the systems clock. I have thought about
using it to randomize the seed value in a rand statement but it doesn't make
sense to use if unless you want no control over repeatability of a pattern.
You trying to make a scene you can distribute to others that will match the
time in their time zone ? Otherwise why not just type the time in ?
--
Ken Tyler
See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Too bad, but I will try to automate my text editing program.
Ken <tyl### [at] pacbellnet> wrote :
>
>Otherwise why not just type the time in ?
>
I was thinking about having my file run minimized on a regular basis and
then updating my wallpaper with the output. I download satellite images all
day and can map them on a globe with Sun and Moon info...
...waiting for Dennis in Florida...
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Bill DeWitt wrote:
>
> Is there a way to call the present system time into a pov file? So that I
> can use it to show the correct angles of the sun and moon? I think I can do
> it using a text program which has a time stamp, but I wonder if POV does
> it...
>
> I don't find a reference to it in the help file, and none of the options in
> the editor look like it.
If you, or someone else, can do some C (or whatever) programming, you
could
use the "Shell-out to Operating System" command in the .ini file, to
call
a program that will write the time info into a file that you will #read
inside
povray script.
Fabien.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Fabien Mosen wrote:
>
> Bill DeWitt wrote:
> >
> > Is there a way to call the present system time into a pov file? So that I
> > can use it to show the correct angles of the sun and moon? I think I can do
> > it using a text program which has a time stamp, but I wonder if POV does
> > it...
> >
> > I don't find a reference to it in the help file, and none of the options in
> > the editor look like it.
>
> If you, or someone else, can do some C (or whatever) programming, you
> could
> use the "Shell-out to Operating System" command in the .ini file, to
> call
> a program that will write the time info into a file that you will #read
> inside
> povray script.
>
> Fabien.
Er. how about something like 'time > time.txt' in DOS/Windoze or 'date >
time.txt' in *n*x.
It won't be very portable though.
Cheers, PoD.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
PoD wrote:
> Er. how about something like 'time > time.txt' in DOS/Windoze or 'date >
> time.txt' in *n*x.
> It won't be very portable though.
I tought of that, but, afaik, Pov needs comma-separated data, so
the standard dos time output would be unreadable. (but I may
be wrong...)
Fabien.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Use a substr function on the read input. Extract the first two digits
for the hour, next two for minutes.
#declare Time=str(01:23:45am)
#declare H=substr(Time,0,2)
#declare M=substr(Time,2,2)
#declare Hours=strval(H)
#declare Minutes=strval(M)
Something like that anyhow. I'm not sure since I haven't done it,
yet....
Bob
Fabien Mosen <fab### [at] skynetbe> wrote in message
news:37C81C13.5C2798B8@skynet.be...
> PoD wrote:
>
> > Er. how about something like 'time > time.txt' in DOS/Windoze or
'date >
> > time.txt' in *n*x.
> > It won't be very portable though.
>
> I tought of that, but, afaik, Pov needs comma-separated data, so
> the standard dos time output would be unreadable. (but I may
> be wrong...)
>
> Fabien.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
This is what I was thinking I would use. The standard notepad in Win98 has a
F5 time stamp that I can automate with one of those shortcut macro programs.
Now if I can just figure out how to get it to do that, then run a specific
POV file and then change wall papers for me.....
Looks like we are taking a miss with Dennis, I am a little
disappointed...
Bob Hughes <inv### [at] aolcom> wrote in message
news:37c85008@news.povray.org...
> Use a substr function on the read input. Extract the first two digits
> for the hour, next two for minutes.
>
> #declare Time=str(01:23:45am)
> #declare H=substr(Time,0,2)
> #declare M=substr(Time,2,2)
> #declare Hours=strval(H)
> #declare Minutes=strval(M)
>
> Something like that anyhow. I'm not sure since I haven't done it,
> yet....
>
> Bob
>
> Fabien Mosen <fab### [at] skynetbe> wrote in message
> news:37C81C13.5C2798B8@skynet.be...
> > PoD wrote:
> >
> > > Er. how about something like 'time > time.txt' in DOS/Windoze or
> 'date >
> > > time.txt' in *n*x.
> > > It won't be very portable though.
> >
> > I tought of that, but, afaik, Pov needs comma-separated data, so
> > the standard dos time output would be unreadable. (but I may
> > be wrong...)
> >
> > Fabien.
>
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Sounds like you also need POV-Ray to start up on it's own. So I guess
that means setting up the Pov file type to be rendered when "run"
somehow. Wish I knew the whole answer myself as it would be
interesting to do.
About Dennis (the hurricane), when I was a kid and lived there near
where you do (Merritt Island and Satellite Beach) it was great to
experience those things but mighty fearful stuff too. I'll never
forget the howling air and turbulent ocean. One time we almost never
got the front door shut after having it open and our neighbors got a
large corrugated pipe slammed into the front of their house. Great
stuff to see, even the "eye", if it weren't for the bad side.
Bob
Bill DeWitt <the### [at] earthlinknet> wrote in message
news:37c86135@news.povray.org...
> This is what I was thinking I would use. The standard notepad in
Win98 has a
> F5 time stamp that I can automate with one of those shortcut macro
programs.
> Now if I can just figure out how to get it to do that, then run a
specific
> POV file and then change wall papers for me.....
>
> Looks like we are taking a miss with Dennis, I am a little
> disappointed...
>
> Bob Hughes <inv### [at] aolcom> wrote in message
> news:37c85008@news.povray.org...
> > Use a substr function on the read input. Extract the first two
digits
> > for the hour, next two for minutes.
> >
> > #declare Time=str(01:23:45am)
> > #declare H=substr(Time,0,2)
> > #declare M=substr(Time,2,2)
> > #declare Hours=strval(H)
> > #declare Minutes=strval(M)
> >
> > Something like that anyhow. I'm not sure since I haven't done it,
> > yet....
> >
> > Bob
> >
> > Fabien Mosen <fab### [at] skynetbe> wrote in message
> > news:37C81C13.5C2798B8@skynet.be...
> > > PoD wrote:
> > >
> > > > Er. how about something like 'time > time.txt' in DOS/Windoze
or
> > 'date >
> > > > time.txt' in *n*x.
> > > > It won't be very portable though.
> > >
> > > I tought of that, but, afaik, Pov needs comma-separated data, so
> > > the standard dos time output would be unreadable. (but I may
> > > be wrong...)
> > >
> > > Fabien.
> >
> >
>
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Sun, 29 Aug 1999 02:40:12 +0930, PoD <pod### [at] merlinnetau> wrote:
>Er. how about something like 'time > time.txt' in DOS/Windoze or 'date >
>time.txt' in *n*x.
>It won't be very portable though.
>
>Cheers, PoD.
This was the first thing that I tried the first time this question was
brought up. Unfortunately the time command expects stdin input. A
simple echo. > time won't work :(
Try this (in a batch file), but first create a file called quote.txt
and only put a " in it. This is untested but should be in the right
direction (the help command won't work for me and I am not sure of the
exact syntax used to concatenate files with the copy command)
@echo off
c:\
cd\
copy command.com temp.tmp
dir temp.tmp > temp.dir
find /i "temp.tmp" temp.dir > temp.tim
copy /a temp.txt /a quote.txt + temp.tim /a + quote.txt /a
del temp.tmp
del temp.dir
del temp.tim
^Z
Then read this temp.txt file in POV and extract the time using the
substr function, as Bob suggests.
Peter Popov
ICQ: 15002700
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |