On Tue, 2009-05-26 at 12:36 -0700, chickenmcboy wrote:
> Hello everyone,
> I've been working on a project using the ARToolkit example which uses
> openVRML, however I seem unable to control when the animations start.
> Is there a way to reset the timers on call? Or perhaps is another method to
> achieve the same goal?
> I asked this question in the ARToolkit forum, and they suggested that I try
> this mailing list instead. If anyone can help, I would be greatly
> appreciative.
You can start an animation by sending the current time to the associated
TimeSensor's set_startTime. In OpenVRML, that would look something
like:
openvrml::sftime_listener starttime_listener =
n->event_listener<openvrml::sftime>("startTime");
openvrml::sftime now(current_time);
starttime_listener.process_event(now, now.value());
--
Braden McDaniel <br...@en...>
|