[x3d-public] How is a shader chosen in X_ITE? Looks like it works (at least at first, and then disappears?)

Holger Seelig holger.seelig at yahoo.de
Mon Jul 5 04:08:29 PDT 2021


https://localhost:3000/src/main/html/bubbles.html <https://localhost:3000/src/main/html/bubbles.html> 

has a flashing because the event order is not determined. The TimeSensor sends a fraction_changed (value 0) and a cycleTime (value currentTime) event at the same time, but you don’t know in which order. It looks like that the interpolators get the fraction_changed event earlier than the new keyValues. That means the first frame is from the old keyValues. The solution is to send an (new) fraction_changed event with value 0 in you script after the position and orientation is set. See attachment with fixed bubbles.x3d.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20210705/ce900aba/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bubbles.x3d
Type: application/octet-stream
Size: 8376 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20210705/ce900aba/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20210705/ce900aba/attachment-0003.html>


More information about the x3d-public mailing list