[x3d-public] highlighting on isOver, freeWrl

Andreas Plesch andreasplesch at gmail.com
Wed May 27 14:17:28 PDT 2020


Got it. It works fine. Perhaps the desktop/mouse and the mobile/touch
behaviours have to diverge more. For touch it seems necessary to have
a toggle to switch on isOver behaviour while dragging/moving but for
desktop it is more natural to just move the pointer without pressing a
button. This is probably the spec. intended behaviour to generate
isOver events. Another good UX topic !

Thinking about it, for touch it may be possible to have isOver
behaviour as long as the finger is moving. Tapping without moving
could be then a click, and tapping then moving could be dragging.

We could check how web browsers do it,

-Andreas

On Wed, May 27, 2020 at 4:05 PM GPU Group <gpugroup at gmail.com> wrote:
>
> Freewrl has a HOVER mode - on the menu bar ^ button toggle that on, then drag LMB DOWN over something, and it will do the isOver thing, and drag it off to un-do the isOver state.
> That was done to make it compatible with touch devices. Could make it desktop compatible again.
> Q. With a touch-device, how do you do isOver?
> -Doug
>
> On Wed, May 27, 2020 at 1:55 PM GPU Group <gpugroup at gmail.com> wrote:
>>
>> ISSUE CONFIRMED.
>>
>> On Wed, May 27, 2020 at 1:25 PM Andreas Plesch <andreasplesch at gmail.com> wrote:
>>>
>>> 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
>>>
>>> _______________________________________________
>>> x3d-public mailing list
>>> x3d-public at web3d.org
>>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org



-- 
Andreas Plesch
Waltham, MA 02453



More information about the x3d-public mailing list