Open hchou-godaddy opened 1 year ago
@hchou-godaddy I just tried this myself and didn't experience any problems. Let's see if we can figure out what's different on your system.
What operating system are you using? (I'm on MacOS.)
Give this a try...
From the root folder of the repository, run git clean -xfd
to remove all old build files.
From the root folder of the repository, run npm install
. Confirm that you don't see any errors or warnings in the output.
From the root folder of the repository, run npm run start-babylon
. Confirm that you don't see any errors in the output. Leave this terminal window open and running.
In the browser tab for the demos, see if you can successfully run the "Hello World" demo. If the demo gets stuck on the "loading" screen, open the browser console and look for errors. (If this happens it's usually because you've failed to add your Cognito Identity Pool ID to the application's code.)
Hello! You can try this branch which removed build tools, and runs all examples as plain JavaScript right in the browser:
This is simpler for end users so they don't encounter issues, plus will be easier for maintainers without having to worry about build tools breaking.
Furthermore, TypeScript support is improved in this branch that is continued from the previous one, in case you need type support for the Babylon host code.
https://github.com/aws-samples/amazon-sumerian-hosts/pull/190
I am currently investigating the Babylon 5/6 bug, then we can merge these changes. If you are using Three.js, no issues.
Followed the instructions for the babylon demo folder. it says go to root folder to run
npm install
and thennpm run start-babylon
. Two browser tabs open up, but when clicking on any of the demo links get lots of compile error like this:ERROR in ./packages/amazon-sumerian-hosts-babylon/src/Babylon.js/HostObject.js 8:0-64
Module not found: Error: Can't resolve '@babylonjs/core/Loading/sceneLoader' in '/Users/username/pp/amazon-sumerian-hosts/packages/amazon-sumerian-hosts-babylon/src/Babylon.js'
Are there some missing instructions?