[x3d-public] start timer at fraction 0 after scene loading

Andreas Plesch andreasplesch at gmail.com
Thu Sep 7 13:42:58 PDT 2023


Here is an initial count down after loading the scene using the same
autostart method, and a sequencer:

https://andreasplesch.github.io/Library/Viewer/dev.html?url=https://gist.githubusercontent.com/andreasplesch/3f7ea30b9860b6399c797c51e3235459/raw/d17f9d2a0a258569ac5a474c36a68208674d535e/countdown.x3d
https://create3000.github.io/x_ite/playground/?url=https://gist.githubusercontent.com/andreasplesch/3f7ea30b9860b6399c797c51e3235459/raw/d17f9d2a0a258569ac5a474c36a68208674d535e/countdown.x3d

-Andreas

On Thu, Sep 7, 2023 at 1:01 AM Andreas Plesch <andreasplesch at gmail.com> wrote:
>
> Another method apart from a ProximitySensor to start a timer without
> user interaction after scene loading is to use two TimeSensors. The
> first has loop=true and its only purpose is to trigger the second by
> routing its cycleTime to the startTime of the second TimeSensor. The
> first also stops itself by routing its cycleTime to its own stopTime.
>
> Here is an example modified from the cycleTime NIST example:
>
> https://rentry.co/x3d-startTimer
>
> https://andreasplesch.github.io/Library/Viewer/dev.html?url=https://gist.githubusercontent.com/andreasplesch/3f7ea30b9860b6399c797c51e3235459/raw/118d65438f9cfdc152c01fc5a24a8eccec705511/startTimer.x3d
>
> --
> Andreas Plesch
> Waltham, MA 02453



-- 
Andreas Plesch
Waltham, MA 02453



More information about the x3d-public mailing list