aws-samples / amazon-sumerian-hosts

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).
MIT No Attribution
189 stars 82 forks source link

Running BabylonJS Demos Without Using DevServer #135

Open GeneUNCG opened 2 years ago

GeneUNCG commented 2 years ago

Hello all,

I am currently experimenting with this repo, the BabylonJS demos work really well and are very nice. Though, I was wondering how I would access these without the use of the web-dev-server. I haven't seen much documentation relating to this topic, if any documentation at all.

I have tried changing the npm build settings but nothing has been working. When I try to access any of the BabylonJS demos without going through port 8080, it will simply just not load. My ultimate goal is to get the demos working perfectly in production mode so I can run them on ports 80/443.

Any ideas? Any tips would be appreciated.

runpiw commented 2 years ago

Hi @GeneUNCG, have you check out our amplify publisher plugin for babylon? This will allow you to easily create a hosting solution for a single-page web application using AWS Amplify within BabylonJS editor.

GeneUNCG commented 2 years ago

Hi @GeneUNCG, have you check out our amplify publisher plugin for babylon? This will allow you to easily create a hosting solution for a single-page web application using AWS Amplify within BabylonJS editor.

I have not seen it yet, but I will go ahead and read it now! I made major modifications to one of the demo projects, would I be able to import it into the Babylon.JS Editor?

Krxtopher commented 2 years ago

Unfortunately, the demos in this repository are not compatible with the BabylonJS Editor. It should be possible to do a distribution build of these demos, though, and just deploy those files to any web server (including AWS Amplify). But I just tried it myself and noticed our build script isn't working - at least not intuitively. Let me dig in a bit more.

GeneUNCG commented 2 years ago

@Krxtopher Perfect. That is exactly what I am looking for. Please keep me updated on the way to build the demos for release/distribution.

GeneUNCG commented 2 years ago

Hello @Krxtopher, just wanted to check in an see if there was anything that was found? Any clues on how to get the build scripts working for this project would be greatly appreciated!

Krxtopher commented 2 years ago

@GeneUNCG, sorry it's taken so long to get you a solution for deploying our demos. Although we haven't made updates to the demos in the main repository, yet, I did create a temporary repository in my personal account that contains updated versions of the Babylon.js demos that are now easily deployable to any web server. Give it a try and let me know if you run into any problems: https://github.com/Krxtopher/sumerian-host-demos-babylonjs

I'll continue working to ensure these updates get ported to the official repository in the future.