[x3d-public] TimeSensor resumeTime field

Andreas Plesch andreasplesch at gmail.com
Fri Dec 16 13:44:41 PST 2016


A time sensor has a concept of pausing time:

http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/time.html#PausingTime

When now reaches a pauseTime, the TimeSensor is put into a paused mode. It
then resumes to generate output events such as fraction_changed when now
reaches a resumeTIme.

My question is if when resumeTime is reached, generated fraction_changed
values should continue from where they were when the sensor was paused. To
me this behaviour seems to be the intent of the pausing concept.

"The time-dependent node then resumes generating its output events from the
paused state at the simulation tick." is the spec. language.

On the other hand, the formula given to calculate fraction_changed includes
the difference between now and the startTime. In order to keep using this
formula, startTime would need to be (internally) adjusted after resuming a
paused sensor such that fraction_changed equals fraction_changed at
pauseTime. Does adjusting the startTime constitute a change of the paused
state ?

x3dom currently does not continue fraction_changed from where it was
paused. Instead, it just continues the output as if the sensor was never
paused, eg. does not adjust startTime.

-Andreas







-- 
Andreas Plesch
39 Barbara Rd.
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20161216/5c668f2d/attachment.html>


More information about the x3d-public mailing list