amazon-sumerian-hosts icon indicating copy to clipboard operation
amazon-sumerian-hosts copied to clipboard

Add support for BabylonJS v5

Open Krxtopher opened this issue 2 years ago • 13 comments

The current implementation of Hosts is only compatible with BabylonJS v4 (4.2.1). When trying to use Hosts with BabylonJS 5 and later things break - like host speech animations and gaze tracking.

Krxtopher avatar Feb 16 '23 18:02 Krxtopher

This bug is related: https://github.com/aws-samples/amazon-sumerian-hosts/issues/157

Krxtopher avatar Feb 16 '23 21:02 Krxtopher

Tracking this. May need this at some point. Babylon.js 6.0 ~will be~ released March 30, 2023, too. Thanks!

sevaseva avatar Mar 25 '23 03:03 sevaseva

Would it be possible to change this to v6.0 now that it's released? My team is hoping this happens. Faster rendering would greatly improve our load times for our web-application.

GeneUNCG avatar Jun 08 '23 18:06 GeneUNCG

What's the status on this? We have found sound is broken on iOS Safari in Babylon 4.2 which is fixed in later versions.

R1ftwarr avatar Jul 14 '23 00:07 R1ftwarr

Same breakage on Babylon v6.

like host speech animations and gaze tracking.

Also at least one character's jaw line gets deformed too (during idle no speech).

trusktr avatar Sep 01 '23 09:09 trusktr

would be great to get an upgraded / compatible version.

theVoiceMouse avatar Sep 11 '23 03:09 theVoiceMouse

@theVoiceMouse WIP :). Folks over in the Babylon forums have provided some clues as to what we need to fix:

https://forum.babylonjs.com/t/models-broken-when-updating-from-v4-to-v5/43758/2

At the moment I'm finishing up with:

  • https://github.com/aws-samples/amazon-sumerian-hosts/pull/183

and I can circle back to fixing Babylon after that. In the meantime, if you'd like to give the fix a try by branching off of #183, that'd be sweet, and I can help.

trusktr avatar Oct 05 '23 06:10 trusktr

@trusktr - amazing update. I dont do 3d modelling, so ill test your branch and upload LexV2 (working) and OpenAI support (developed, but held private incase AWS get sniffy), hopefuly you can isolate the babylon isue. Regretably board meetings next week, so will be two weeks before branch/check/commit back

theVoiceMouse avatar Oct 05 '23 09:10 theVoiceMouse

@theVoiceMouse it sounds like you may have already done similar work, but I did implement a solution for supporting LexV2 over in this copy of the Babylon Demos. Just never got around to contributing it back to the main repo.

Krxtopher avatar Oct 05 '23 22:10 Krxtopher

@theVoiceMouse it sounds like you may have already done similar work, but I did implement a solution for supporting LexV2 over in this copy of the Babylon Demos. Just never got around to contributing it back to the main repo.

@Krxtopher can raise the lex v2 issue andpush yours into main as a fix to it (our code is almost identical and I love how webpack5 forced us both to use pako), I’m going @trusktr ‘s non-webpack & Babylon 5 branch and I expect there will be a lot of people who can benefit from LexV2 on the webpack/main line.

theVoiceMouse avatar Oct 06 '23 08:10 theVoiceMouse

@theVoiceMouse Cool! The PR at

  • https://github.com/aws-samples/amazon-sumerian-hosts/pull/183

is now complete apart from the Babylon fix. Getting LexV2 onto that next would be sweet.

and OpenAI support

Curious about that!

We have a rough initial open-source-not-yet-licensed openai-connected not-yet-named concept here (no docs yet, but it is a Meteor.js app, and can be launched with the meteor CLI, see the start script in package.json, and also needs keys):

https://github.com/autonomys/unnamed-experiment

trusktr avatar Oct 12 '23 01:10 trusktr

Ok, I'm back at it!

Need to get this Babylon fix settled. I don't even know exactly what the issue is. @Krxtopher and @theVoiceMouse, do you know exactly what needs to be changed, and can provide some pointers?

In the meantime, I'm investigating, starting with the thread in the Babylon forum.

trusktr avatar Feb 16 '24 20:02 trusktr

The Babylon type definitions were not visible in the Babylon host source code. To help learn what's going on with Babylon more easily (and hence make a fix for Babylon after I understand it better), here's a change that enables the types:

  • https://github.com/aws-samples/amazon-sumerian-hosts/issues/189

trusktr avatar Feb 17 '24 06:02 trusktr