[x3d-public] Turning on and off simultaneous animations individually
Andreas Plesch
andreasplesch at gmail.com
Sun Dec 8 05:47:00 PST 2024
You can use the links from the web3d.org domain which has CORS enabled:
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/BooleanToggleExampleIndex.html
https://andreasplesch.github.io/Library/Viewer/index.html?url=https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/BooleanToggleExample.x3d
-Andreas
On Sat, Dec 7, 2024 at 3:15 PM John Carlson <yottzumm at gmail.com> wrote:
>
> The non-editor one works great!
>
> https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/BooleanToggleExampleX3dom.xhtml
>
>
> On Sat, Dec 7, 2024 at 2:13 PM John Carlson <yottzumm at gmail.com> wrote:
>>
>> Here’s one for X3DOM Editor that’s not working:
>>
>> https://andreasplesch.github.io/Library/Viewer/index.html?url=https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/BooleanToggleExample.x3d
>>
>> Okay, this is just getting freaky!
>>
>> John
>>
>>
>> On Sat, Dec 7, 2024 at 2:03 PM John Carlson <yottzumm at gmail.com> wrote:
>>>
>>> This one does work!
>>>
>>> http://www.x3dgraphics.com/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/BooleanToggleExampleIndex.html
>>>
>>>
>>> Weird, I guess.
>>>
>>> John
>>>
>>> On Sat, Dec 7, 2024 at 1:56 PM John Carlson <yottzumm at gmail.com> wrote:
>>>>
>>>> This might be the start of something, but it’s not working in X_ITE?
>>>>
>>>> http://www.x3dgraphics.com/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/BooleanToggleIndex.html
>>>>
>>>> No, I don’t know how I do it. I did see an X3DOM example that worked.
>>>>
>>>> John
>>>>
>>>> On Sat, Dec 7, 2024 at 1:43 PM John Carlson <yottzumm at gmail.com> wrote:
>>>>>
>>>>> We are dealing with multiple facial animations. The thing we want to do is combine animations using HAnimDisplacers. Currently, our animations go from key = 0 to key = 1, (weight = 0 to weight = 1) and each animation is controlled by a single TimeSensor that we enable or disable. What we want to do is enable multiple facial animations, yet retain a single TimeSensor. I have done something with enabling multiple time sensors all at the same time. So, ideally, we could toggle each facial animation individually.
>>>>>
>>>>> Note that one can have multiple simultaneous HAnimDisplacer animations on a single Coordinate, they all add up just fine. There’s no single animation per body part requirement as there is in other places in X3D (according to Michalis, from my understanding).
>>>>>
>>>>> I don’t currently know how to individually toggle multiple animations without toggling multiple TimeSensors, so assistance is welcome! Indeed, a multiple toggle button X3D example would be welcome (hopefully, something we can put in a scenegraph).
>>>>>
>>>>> Here’s what we currently have
>>>>> https://github.com/coderextreme/ci2had/blob/main/resources/SingleMenuJin.x3d
>>>>>
>>>>> As you can see, lots of duplication.
>>>>>
>>>>> Viewed best in FreeWRL and Sunrize/X_ITE.
>>>>>
>>>>> John
--
Andreas Plesch
Waltham, MA 02453
More information about the x3d-public
mailing list