Hi,
I would like to know the time during viewing a VRML world, because I want to
change the intensity and color of light to simulate the sunlight. Can anyone
help me to do this task?
I tried the javascript function Date() but it doesn't work. May be I used it
in the wrong way.
Thanks a lot
Ludovico.
--
---------------------------------------
< " Don't expect, suggest". The Edge, U2 >
***************************************
e-mail lugenco@libero.it
***************************************
Ludovico wrote:
> I would like to know the time during viewing a VRML world, because I want
to
> change the intensity and color of light to simulate the sunlight. Can anyo
ne
> help me to do this task?
> I tried the javascript function Date() but it doesn't work. May be I used
it
> in the wrong way.
I've done this stuff sucessfully using Date() and it's helper functions,
getDate() etc. Take a look at:
http://www.mayfieldiow.freewire.co.uk/sun_sim.wrl
That should do pretty much everything you might need - it produces a
simulated sun that moves around the sky with time just as the real one
does, seasons and all. You need to tell it where on the earth your model
is, i.e. it's latitude and longitude, it will then do everything else,
it'll even turn on lights at twilight if you need. It should be
inlinable from your world. It's part of
http:\\www.allsaintsgodshil.free-online.co.uk\allsaints.wrl
which was something I was working on a while back.
bye,
Chris.
ok, that's exactly what I was looking for.
Thanks a lot
Bye
Ludovico
"Chris Boyce" <chris@mayfieldiow.freewire.co.uk> ha scritto nel messaggio
news:435c00e8$0$133$7b0f0fd3@mistral.news.newnet.co.uk...
> Ludovico wrote:
want to
anyone
used it
>
> I've done this stuff sucessfully using Date() and it's helper functions,
> getDate() etc. Take a look at:
>
> http://www.mayfieldiow.freewire.co.uk/sun_sim.wrl
>
> That should do pretty much everything you might need - it produces a
> simulated sun that moves around the sky with time just as the real one
> does, seasons and all. You need to tell it where on the earth your model
> is, i.e. it's latitude and longitude, it will then do everything else,
> it'll even turn on lights at twilight if you need. It should be
> inlinable from your world. It's part of
>
> http:\\www.allsaintsgodshil.free-online.co.uk\allsaints.wrl
>
> which was something I was working on a while back.
>
> bye,
> Chris.
>
>