This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > December 2003 > How to trigger a VRML event from EAI?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to trigger a VRML event from EAI?
Koutsi

2003-12-04, 1:01 pm

I would appreciate your help on this.

I have a vrml file (the well known baxter), in short:
_____________________________________________________
#VRML V2.0 utf8
..
DEF hanim_BodyTouch TouchSensor { }
..
EXTERNPROTO Behaviour_essai [
eventIn SFTime LaunchAnim
exposedField SFTime set_startTime
exposedField SFTime set_stopTime
field MFNode HumansList
]
"out.wrl"

DEF essai Behaviour_essai {
HumansList [
USE Bob
]
}
ROUTE hanim_BodyTouch.touchTime TO essai.LaunchAnim
_____________________________________________________

The "out.wrl" file in short:

_____________________________________________________
PROTO Behaviour_thanx [
eventIn SFTime LaunchAnim
exposedField SFTime set_startTime 0
exposedField SFTime set_stopTime 0
field MFNode HumansList []
eventOut SFTime RealStopTime
]
{
DEF thanx_Group Group {
children [
DEF thanx_Time TimeSensor {
cycleInterval 2.000000
loop FALSE
startTime 0
startTime IS set_startTime
stopTime 0
stopTime IS set_stopTime
}
....
}
_____________________________________________________

The first file creates an object. When clicked, it triggers a
timesensor which performs animations with vrmlscripting.

I want to trigger this animation from a Windowed application using
Blaxxun's cc3d ActiveX control (EAI-COM). How is it possible to do
something like this with EAI and cc3d? How can i "set" the eventIn of
the time or touch sensors from my code? Please help me. I am really in
need of any hints right now.

Best Regards.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews