POV-Ray : Newsgroups : povray.advanced-users : Getting the current date and time for POV-Ray Server Time
23 Dec 2024 12:11:04 EST (-0500)
  Getting the current date and time for POV-Ray (Message 1 to 4 of 4)  
From: Kene
Subject: Getting the current date and time for POV-Ray
Date: 17 Mar 2010 22:10:00
Message: <web.4ba18a0c947d7739772dd76f0@news.povray.org>
I am trying to use the sunpos include file in an interface I am building to use
POV-Ray for designing buildings. I want a situation where the user enters one of
a set of predefined locations and times for example: Daylight( West, Afternoon )

The interface will access the current date and time, with all the other
necessary information for sunpos in order to correctly render the scene.

My question is: how can I get the current date and time for POV-Ray via the SDL?


Post a reply to this message

From: Kene
Subject: Re: Getting the current date and time for POV-Ray
Date: 18 Mar 2010 11:20:00
Message: <web.4ba243e18a2b3e1e772dd76f0@news.povray.org>
Actually, it seems a better idea is to allow the user to enter a desired date
and time as part of the settings for the scene.


Post a reply to this message

From: clipka
Subject: Re: Getting the current date and time for POV-Ray
Date: 18 Mar 2010 17:46:39
Message: <4ba29f3f$1@news.povray.org>
Kene schrieb:
> Actually, it seems a better idea is to allow the user to enter a desired date
> and time as part of the settings for the scene.

... especially since you have no other way to get the current time & 
date from SDL anyway, unless you use a patched version (such as MegaPOV 
for instance) ;-)


Post a reply to this message

From: Leroy Whetstone
Subject: Re: Getting the current date and time for POV-Ray
Date: 26 Mar 2010 23:44:31
Message: <4BAD8D6F.4040409@joplin.com>
clipka wrote:
> Kene schrieb:
> 
>> Actually, it seems a better idea is to allow the user to enter a 
>> desired date
>> and time as part of the settings for the scene.
> 
> 
> ... especially since you have no other way to get the current time & 
> date from SDL anyway, unless you use a patched version (such as MegaPOV 
> for instance) ;-)

I wrote a little C++ program that would write the time and date in to a 
text file. I've tried to use the Pre_Scene_Command or Pre_Frame_Command 
in the ini to run the program then let the pov file read that file. But
I never did get it to work.


Post a reply to this message

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