Hey @Limes2018! Sorry for the delay, that’s awesome that you got it working that fast!!
I’m working hard on finalizing the Editor’s workflow and especially a kind of “packer” to pack the final production delivery file(s).
Today, no deployment tool exist in the Editor. But, if you have a server that can server files, you can manually drag’n’drop these files from the root folder of the workspace:
index.html
scenes (folder)
dist (folder)
Maybe you’ll have to drag’n’drop the cannon.js script as well (you can change the link to the cannon.js file in the index.html) because it is loaded from “node_modules” by default.
Today, the Editor as a plugins system (added thanks to @jkeys) and we can easily imagine a plugin that helps to publish on Azure, or a FTP, or whatever, automatically just by clicking on a button.
@julien-moreau
A lot thanks for your reply even though you’re busy.
I’ll try to put index.html, scene. and dist on server like GitHub pages.
I’ll write summarize post in English and workspace on GitHub. I’ll inform you of these.
Today, the Editor as a plugins system (added thanks to @jkeys) and we can easily imagine a plugin that helps to publish on Azure, or a FTP, or whatever, automatically just by clicking on a button.
Please note I only wrote the logic for glb format, although PRs are welcome. I can add support for the other formats sometime in the next week or so.
Edit: Also AWS is the only supported provider, I’m not experienced with the other cloud providers and I also have never programmatically uploaded to an FTP server so I’d have to do some research on that side (authentication, setting content type). I was kinda hoping someone on the Microsoft side would either offer the wisdom necessary to integrate the Azure provider, or submit a pull request.
Also to clarify @julien-moreau was the mastermind behind the plugins system (and literally every other aspect of the editor afaik), I just expressed a need xD
@julien-moreau what class contains the utils for serializing multi-file formats that you added a while ago?
Edit: not serialize, just reference. You made mention of some utils for referencing the generated filepaths of the textures/other files for gLTF/babylon formats but I wasn’t sure where to look for that.
I’m glad if you check the repo below. It is my ping pong game developed by Babylon.js Editor v4.0.
I’m very interested in the v4.0 editor. I’ll try to introduce other feature of the editor and provide PR.
I feel honored that you check my code.
I implemented the code with trying things around. There may be bugs or not optimized in my code.
I’ll wait for your PR. Thanks for taking your time!
It is a pure copy of the game you created, I just simplified the attached scripts and used a feature added in the beta.7: adding a script on the scene itself I think that’s what you missed using the beta.2, I’m sorry for that, I forgot the scene until the beta.7
Before running your PR version, I try to develop beta7 environment. But npm install failed because of the log.
> node scripts/install.js
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
When I developed Editor beta2, the log was not appeared.
I think it may depend on my environment, I’m trying to fix it.
Hello, I tried to drag both three files to the server (I was using Amplify) but it threw the 403 error. Does anyone successfully host the scene on a server?
Is the “scene” you mentioned the “scene” folder under “scenes” or “scene” folder under “projects” or the “scene” under “src” folder? Also, the Cannon.js (Capitalized first letter) is the one under cannon folder or the one in cannon/build/cannon.js? Thank you.
I dropped “scenes” folder which contains a scene.babylon file and the server was unable to load it.
Unable to load from ./scenes/scene/scene.babylon: importScene of scene.babylon from Babylon.JS Editor version: v4.0.5, exporter version: v4.2.0
(anonymous) @ index.ts:48