Amazon Sumerian Hosts (Hosts) is an experimental open source project that aims to make it easy to create interactive animated 3D characters for Babylon.js, three.js, and other web 3D frameworks. It leverages AWS services including Amazon Polly (text-to-speech) and Amazon Lex (chatbot).
The first is to fix an issue seen with the BabylonJS editor (which uses require() and pulls in the minified version of the repo) where certain functionality in the HostObject utility scripts rely on class names not being mangled (as they're used to dynamically form and then call function names.) This involves changes to the webpack config to configure the minimization to no longer mangle class names.
HostObject.loadAssets has been separated into loadCharacterModel and loadAnimations. This is because the plugin needs the former workflow in the editor (to render the model to the currently open scene), and the latter only during runtime.
HostObject.getAvailableCharacters() has been added as a utility function so that the UX can render the available hosts.
Related Issue \
Reviewer Testing Instructions
I am using this in conjunction with the BabylonJS editor plugin to manually test functionality.
Submission Checklist
I confirm that I have...
[x] removed hard-coded Cognito IDs
[x] manually smoke-tested the BabylonJS integration tests
[x] manually smoke-tested the BabylonJS demos
[x] manually smoke-tested the Three.js integration tests
[x] manually smoke-tested the Three.js demo
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Description
This PR adds 3 bits of functionality:
HostObject.loadAssets
has been separated intoloadCharacterModel
andloadAnimations
. This is because the plugin needs the former workflow in the editor (to render the model to the currently open scene), and the latter only during runtime.HostObject.getAvailableCharacters()
has been added as a utility function so that the UX can render the available hosts.Related Issue \
Reviewer Testing Instructions
I am using this in conjunction with the BabylonJS editor plugin to manually test functionality.
Submission Checklist
I confirm that I have...
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.