[x3d-public] highlighting on isOver, freeWrl
Andreas Plesch
andreasplesch at gmail.com
Wed May 27 12:24:04 PDT 2020
https://gist.github.com/andreasplesch/b3ad601a0d1d8adc3eba5308603772b5#file-touchtest2-x3d
https://gist.githubusercontent.com/andreasplesch/b3ad601a0d1d8adc3eba5308603772b5/raw/f11a1b3b931420316d44f4ae231f4d48a2a66c9c/touchTest2.x3d
is an example of how highlighting a geometry which is
sensed/influenced by a TouchSensor can be accomplished, by using
routing from event utilities.
It is a straightforward approach which requires three utility nodes
for logic and five routes, per sensed geometry.
It works fine with all tested browsers (view3dscene, Instant, octaga)
except for freeWrl 4.0. Here with x3dom and x_ite:
https://gist.githack.com/andreasplesch/b3ad601a0d1d8adc3eba5308603772b5/raw/f11a1b3b931420316d44f4ae231f4d48a2a66c9c/touchtest_x3dom.html
https://gist.githack.com/andreasplesch/b3ad601a0d1d8adc3eba5308603772b5/raw/f11a1b3b931420316d44f4ae231f4d48a2a66c9c/touchtest_x_ite.html
Is this a known behaviour of freeWrl ?
The other question is if there is a less verbose way to do this ?
The background is improving the Step to X3D conversion to include
highlighting. Here is an example: (scroll to bottom, press A)
https://nbviewer.jupyter.org/github/andreasplesch/OCCToX3D/blob/ac9a7335639a209e6ce9d39b193b8fa32c4af8b9/notebooks/doc_to_scenegraph2-pick2.ipynb
--
Andreas Plesch
Waltham, MA 02453
More information about the x3d-public
mailing list