[x3d-public] Using Switch Node in X3DOM
cbullard at hiwaay.net
cbullard at hiwaay.net
Mon Feb 18 14:03:32 PST 2019
Thank you, Andreas. I am using Firefox and MS Edge to test the
nodes. I tried the onoutputchange of the position interpolator to a
script as shown in the examples but didn't get the results I need.
Probably a matter of more trial and error. The online docs are a bit
puzzling with regard to which objects issue which events. I will keep
looking.
cheers,
len
Quoting Andreas Plesch <andreasplesch at gmail.com>:
> Len, the x3dom dev version has all the Event Utilities, including
> IntegerSequencer.
>
> In x3dom you could alternatively use the nonstandard outputchange DOM event
> to trigger direct changes to the image url.
>
> Hope this helps,
>
> Andreas
>
>
>> Date: Mon, 18 Feb 2019 11:05:13 -0600
>> From: cbullard at hiwaay.net
>> To: X3D Graphics public mailing list <x3d-public at web3d.org>
>> Subject: [x3d-public] Using Switch Node in X3DOM
>> Message-ID:
>> <20190218110513.Horde.7jktM0IIa4X8U52mp66Bceq at webmail.hiwaay.net>
>> Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
>>
>>
>> I am creating a simple animation using a switch node to change the
>> image on an animated box. In VRML97
>> I used a PROTO to manage this. In X3D I might have used an
>> integerSequencer to provide the SFInts to the
>> whichChoice field. In X3DOM according to the literature there is no
>> IntegerSequencer. I found the example
>> that uses an HTML input slider to set the state. However, I hoped to
>> do this without such a control on
>> the page and have not located any means to route sfInts to the
>> whichchoice field.
>>
>> Is there a common solution?
>>
>> len
>>
>>
More information about the x3d-public
mailing list