<div dir="ltr">Here is a x3d file for the BooleanFilter test scene:<br><div><br><a href="http://x3dom-booleanfilter.glitch.me/BooleanFilter_test.x3d">http://x3dom-booleanfilter.glitch.me/BooleanFilter_test.x3d</a><br></div><div><br></div><div>It is unmodified from the x3dom html page.<br></div><div><br></div><div>It works in freeWrl, view3dscene (v.3.15.0) and InstantPlayer.</div><div><br></div><div> InstantPlayer recognizes the non-standard 'render' field, the other players ignore it. <br></div><div><br></div><div>The lighting in x3dom seems to be a bit off: the red is too bright and the text should stay red.<br></div><div><br></div><div>Andreas<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 16, 2017 at 12:14 PM, Andreas Plesch <span dir="ltr"><<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Michalis,<br><br></div>thanks, that's great. I guess it is just necessary to use a few more nodes and routes.<br></div><div><br></div><div>Once IntegerTrigger becomes available for x3dom, I will adjust the test scene.<br></div><div><br></div>Since three browsers (castle, x3dom, instantreality) implement the 'render' field for Shape, it may become a candidate for the spec. ?<br><br></div>-Andreas<br><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 16, 2017 at 11:13 AM, Michalis Kamburelis <span dir="ltr"><<a href="mailto:michalis.kambi@gmail.com" target="_blank">michalis.kambi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2017-09-16 1:34 GMT+02:00 Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>>:<br>
> This is pretty standard x3d except for use of the x3dom 'render' SFBool<br>
> field which can be used to control rendering of a shape node. Is there a<br>
> standard conforming way to use a SFBool event to control rendering ?<br>
> 'render' is certainly convenient.<br>
<br>
The standard way to use SFBool to control rendering:<br>
<br>
- use 1 BooleanFilter, and connect it's inputFalse and inputTrue to 2<br>
different IntegerTrigger nodes,<br>
- each IntegerTrigger generates different integer value (they ignore<br>
their input boolean value),<br>
- both IntegerTrigger nodes connect to a single Switch.whichChoice.<br>
<br>
A working example in the attachment, tested on view3dscene, in classic<br>
and XML encoding for convenience.<br>
<br>
Caveats:<br>
<br>
- This switches not only visibility, but also collisions of your<br>
object, unlike the "render" field. You have to use Collision node if<br>
you want to tweak it.<br>
- It uses the BooleanFilter node, which is the very node you're trying<br>
to test :)<br>
<br>
I agree that "render" is useful, that's why view3dscene also<br>
implements it :)<br>
<a href="https://castle-engine.sourceforge.io/x3d_implementation_shape_extensions.php" rel="noreferrer" target="_blank">https://castle-engine.sourcefo<wbr>rge.io/x3d_implementation_<wbr>shape_extensions.php</a><br>
<br>
Regards,<br>
Michalis<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div class="m_-4412671991974111766gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>
</font></span></div></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>
</div>