I am trying to make a load screen to fit my scene.

This has a custom load screen to fit the scene:

This is the API:

But I can't find how to apply or use the API. How do I apply a Blend4Web module?

  • $\begingroup$ I don't have my computer in front of me to play around with this at the moment (on my iPhone now), but looking at the documentation I have an idea of where you could start looking: inside preloader.js there is some CSS that appears to define the appearance of the preloader. $\endgroup$ – Mentalist Feb 7 '16 at 7:47
  • $\begingroup$ Here's what I've learned... within the SDK the files/folders you'll probably want to examine are: (1) /src/addons/preloader.js (2) /blender/flight_over_island (3) /apps_dev/flight/ (4) /deploy/apps/flight/ (5) /deploy/assets/flight_over_island/flight_over_island.json When you make your project I would recommend doing so using the Project Manager, and creating it as a Bundled Project, because that will simplify your file structure. The .html file references the .js and .css files. The .js file references the .json file. You might consider asking this over at www.blend4web.com/en/forums/ $\endgroup$ – Mentalist Feb 7 '16 at 18:47

Please take a look at the source files of the Island demo you mentioned.


Search for create_advanced_preloader in the flight.js file.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.