This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > VRML > October 2005 > System time with VRML
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
System time with VRML
|
|
| Ludovico 2005-10-23, 6:20 pm |
| 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
***************************************
| |
| Chris Boyce 2005-10-23, 6:20 pm |
| 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 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.
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.
| |
| Ludovico 2005-10-24, 6:35 pm |
| 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[color=darkred]
anyone[color=darkred]
used it[color=darkred]
>
> 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.
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|