Home

hersto:  A Time Server for VRML

 

Rant to the author:

    

Check for a response

A Time Server for VRML
  – Make your VRML world independend of the users clock setting.

Want to make your VRML worlds show the same time for every user visiting it? Regardless on the acuracy of each users computer clock and its time zone setting? One such world would be some model of a real place on earch that also simulates the position of the sun. It's dark in that model when it's also dark at the real place.

The VRML features timestamp and Date object don't allow you to do that. Therefore i have written the ServerClock ExternProto. Just include it in your world and tell it the offset to GMT that you want. It then outputs the current time on various eventOuts. Internally this ExternProto connects to the server on www.hersto.de on world startup and asks for the current time there. Then it generates time events every second based on that information. Only on midnight it connects to the server again for resynchronization.

If you don't want to install the server side script on your own web server, it doesn't need to interest you. Just use the ExternProto like any other ExternProto in your world. Nevertheless, if you are not happy with the acuracy of the clock of this server, or you want to be independend of others web servers, you should (and are encouraged to) download the server side PHP script and install it on your own server. You can pass the URL to the new location to the ScriptURL field of the ExternProto.

find the ExternProto, the server side script and its source code at:

__.-.__
end of document