[x3d-public] BooleanTrigger example

Andreas Plesch andreasplesch at gmail.com
Thu Sep 21 15:03:56 PDT 2017


I added an BooleanTrigger example from the archives :

X3dForWebAuthors BooleanTrigger:
https://x3dom-booleantrigger.glitch.me/BooleanTriggerPumpHouseX3dom.xhtml

This example requires the touchTime field to TouchSensor. It turned out it
was straightforward to put it in x3dom, so I also added

Nist conformance touchtime:
https://x3dom-booleantrigger.glitch.me/touchtimeX3dom.xhtml

and posted a x3dom issue: https://github.com/x3dom/x3dom/issues/771

Plan to let it sit for while and then submit PRs.

-Andreas



On Thu, Sep 21, 2017 at 8:02 AM, Andreas Plesch <andreasplesch at gmail.com>
wrote:

> http://x3dom-booleantrigger.glitch.me/BooleanTrigger_test.x3d is the
> BooleanTrigger example as a x3d file (still missing the xml declaration).
> It works as expected in Octaga 5.0 and view3dscene 3.17 but not in freeWrl
> 3.0. In freeWrl, the sphere is shown but the light never starts to blink.
> -Andreas
>
>
> On Wed, Sep 20, 2017 at 5:06 PM, Andreas Plesch <andreasplesch at gmail.com>
> wrote:
>
>> Here is the simplest, non-interactive BooleanTrigger example I could
>> think of to test an implementation:
>>
>> https://glitch.com/edit/#!/x3dom-booleantrigger?path=index.html:22:1
>>
>> https://x3dom-booleantrigger.glitch.me/
>>
>> and the x3dom implementation which is tested:
>>
>> https://glitch.com/edit/#!/x3dom-booleantrigger?path=Boolean
>> Trigger.js:32:57
>>
>> The perhaps most interesting part of the code is the commented
>> this.addField call for the triggerTrue field. While the field could be
>> added, I believe it is not necessary since it is output only and could not
>> be accessed anyways. However, x3dom should probably use actual node fields
>> for generating output events.
>>
>> Another way to produce a blinking light is by using BooleanSequencer
>> which would reduce nodes and routes. Admittedly, the example is somewhat
>> contrived. Most (all?) potential time event sources for the trigger also
>> produce a boolean event in the first place. So where would BooleanTrigger
>> be typically used ?
>>
>> -Andreas
>>
>> --
>> Andreas Plesch
>> Waltham, MA 02453
>>
>
>
>
> --
> Andreas Plesch
> Waltham, MA 02453
>



-- 
Andreas Plesch
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170921/0e949d42/attachment.html>


More information about the x3d-public mailing list