Blend4Web 16.11 Released
2016-11-30
We are glad to present a new release of Blend4Web, a complete open source solution for creating interactive 3D web experiences. The most prominent features of this release are: support for material nodes of the Cycles non-real-time renderer, new API module for facilitating first-person controls, the upgraded Petigor's Quest with source files and the text editor introduced in the Project Manager.
Embracing Cycles
Cycles, a high-quality path-tracing renderer available in Blender, is widely used by Blender artists for creating still images and videos. Materials for Cycles are constructed using a separate set of nodes, which are very different from GLSL nodes used to make real-time materials for the Blender viewport and Blend4Web. Nevertheless, taking into account the huge amount of already existing Cycles content and persistent requests from the community wishing to share their models on the Web, we have decided to initiate work on supporting Cycles materials in Blend4Web.
Due to inevitable performance constraints inherent to real-time renderers, it is only possible to implement approximate algorithms to mimic Cycles materials in WebGL. We started with the most vital and widely employed nodes, such as Material Output, BSDF Diffuse, BSDF Glossy and others, checking real models uploaded by the Blender community to BlendSwap (a popular collection of free .blend files, thanks Albin and gregzaal for the models). For convenience, the Fast Preview button has been added to the Cycles render profile so that you can export your models without the need to switch to Blend4Web.
The exclusive list of supported nodes, sockets and options made available for this release can be seen here. We welcome you feedback and suggestions regarding further development of this exciting feature!
Petigor's Quest
Today we are releasing what can be called a continuation of Petigor's adventures - a little browser point-and-click game first introduced a month ago at Blender Conference 2016 held in Amsterdam. Since then we have added some new possibilities for the character, improved the story line and supplemented the game with audio and more FX.
The rules are somewhat simple: try to escape the troll's prison with the help of the items available, without getting caught!
Contrary to its prequel, this quest has been authored with almost no programmer efforts: here lies the power of the logic editor. You are welcome to study the source files which are present in both CE and PRO Blend4Web SDK distributions. Join the quest now!
First Person Controls
Good news for developers of applications with first person view - games and beyond. We have introduced the module called fps.js which makes creating such controls much easier. Furthermore, by using this module you can ensure consistent user experience across desktop and mobile platforms, including support for gamepads, touchscreens and even VR devices.
Check out the new controls in the reworked Jungle Outpost aka Kick the Bucket, to which a rifle has been added as a bonus (thanks zehmx for the model!).
Project Manager
You can now conveniently edit source files of your apps (HTML, CSS, JavaScript and project configs) with the embedded text editor right in the PM. Although this editor is minimalistic, it is web-friendly, supports line numbering and syntax highlighting and correctly works with Unicode on different systems such as Windows. It is well suited to quickly edit your projects without the need to search through the SDK hierarchy, even remotely.
Other Features
The pathfinding algorithm introduced in the previous release, has been upgraded to support volumetric navigation meshes. Also, navmeshes are now prepared faster which results in faster loading.
Important usability improvement: you no longer need to explicitly specify the path to the SDK folder, as it is now determined automatically through the installation procedure.
The API method for creating screenshots has been made more robust so that it can now generate images of any size (particularly, overcoming the 2MB restriction of Chromium-based browsers). The issue has been discovered thanks to the winner of the Retro Car contest whose amazing work included this functionality.
The list of steps, required to make both the procedural sky and dynamic water work, is now shorter. The procedural sky will be displayed even if there is no light source of Sun type in your scene, while the water waves will appear even if your forgot to add the wind source.
In Closing
As usual, you can find the source files of the examples presented in this article inside the SDK. For the complete list of changes and bugfixes see the release notes. In case you missed the latest, take a moment and check out the most recent posts in our blog for new tutorials, results of the Retro Car contest and the newest featured Blend4Web-powered projects.