Hello, I just started out using babylon.js today and I’ve mainly been using the desktop application.
I have a very simple scene with a few primitive meshes and attached a material to them which has a diffuse made from a png I imported.
In the editor, when using run and debug and running a server on localhost the texture displays just fine and there are no issues.
However when I push the project up to heroku with a simple node.js web server the textures don’t display and there’s a placeholder checkerboard instead.
I also get an error message in the dev tools saying that the textures cannot be found.
The project is live here: https://babylon-test-complex.herokuapp.com/
I’ve had a really hard time finding any information on how to properly host a babylon project, so I assume the issue is somehow related to my folder structure.
I basically just added express to the package.json and made a simple express server.
In the Protoc file I make sure to first run npm install, npm run build and only then start up the server.
When I build the game there is no materials/ folder, but the pictures are correctly located in scene/, so the issue might also be related to that.
Any help would be greatly appreciated!
I also have an additional question regarding the way textures are displayed.
In engines I used to you can select point(no filter) or nearest for texture filtering to properly display pixel art. I haven’t found an option in babylon though for that and pixel art is being displayed really blurry.