[x3d-public] TimeSensor > specs vs nist example

GPU Group gpugroup at gmail.com
Wed Aug 10 11:54:44 PDT 2022


Could relate to confusion between a) time since 1970 and b) time relative
to loadtime==0
For example
startTime = stopTime= 0, cycleTime = 5, loop=false, all browsers show the
isActive session is over when the scene loads.
startTime = stopTime = 0, cycleTime = 1660156846 (seconds since 1970 plus
some), loop=false will show isActive true on load in most browsers
Suggestion - a timesensor field saying if times are relative to load-time
== 0 or from 1970, allowing scene to be designed in loadtime relative
seconds.
-Doug

On Wed, Aug 10, 2022 at 11:47 AM GPU Group <gpugroup at gmail.com> wrote:

> When trying to do a startup delay timer, I didn't find a match in the nist
> examples
>
> https://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/index.html
>
> in the specs,
>
> https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/time.html#Timeactivation
>
> the first diagram shows loop false, stoptime less than or equal startime
> - it should ignore stoptime and use cycleInterval
> The closest match I could find in nist examples:
>
> https://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/stopltstartloopfalseIndex.html
> - nist comment for this scene:
> "The result is: Because loop is false, a red Sphere geometry should NOT
> move from right to center to left and back to center one time when the
> world is loaded."
> - and all browsers conform to nist comment that it doesn't animate on
> startup.
> ?? To me it looks like all web3d browsers are failing the first specs
> diagram (and passing the NIST test). If we honored the first diagram, then
> I could do a startup delay loop=false, stopTime=- 0, startTime=0,
> cycleInterval=2 to get a 2 second isActive on startup
> Q1. does the nist example stopeqstartloopfalse or stopltstartloopfalse
> comment 'there should be no startup animation' match Component Time >
> Activation Figure 8.1 top diagram of loop false, starttime .gt. stoptime?
> Q. how to do a delay: one-time event x seconds after scene load?
> Thanks, Doug Sanden
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220810/e1da7e26/attachment.html>


More information about the x3d-public mailing list