Blog

Blend4Web 16.01 Released

2016-01-28

We are glad to announce the release of a new version of Blend4Web - an open source platform for creating 3D web applications. Although the month was short, we were able to implement lots of useful functions including API for line rendering and new nodes for the logic editor. In addition, we simplified the SDK installation and improved the Head-Mounted Display support.

Line Rendering

Starting with today's release, Blend4Web has new API functions for high-quality line rendering in 3D space. We have prepared an example which is included in the Code Snippets.

Procedural line rendering.

To draw a line, you need to add an empty object with the option Line Renderer enabled to a Blender scene. This object can be animated too.

Option for turning an empty object into a procedural line.

In the application, lines are drawn with the draw_line method:

var line1 = m_scenes.get_object_by_name("Line1");
m_geometry.draw_line(line1, [x0, y0, z0, x1, y1, z1...]);

It is also possible to set thickness, color and alpha for lines.

Logic Editor

This month we have continued to add new functions to the logic node editor. Now that there are quite a few logic nodes, we decided to separate them into semantic categories.

Logic node editor categories.

Two new nodes have been added. Transform Object allows you to move an object in the world, parent or local coordinate space. String Operation performs operations with string constants and variables, similar to the Math Operation node.

The cube moves and rotates and finally "Hello World!" is printed to the console.

An option to switch the variable type between the Number and String types has been added to the Variable Store node. Also, an option to use string variables to save the entire body of the server's request and response has been added to the Send Request node.

Material Library Start

The library of high-quality materials can shorten content creation time significantly. During the next few months, we are planning to implement basic material classes (glass, metals, wood, plastic and so on). As the first step, we have created a model and the environment for demonstrating materials that you can see below.

Other Improvements

Heads up! Installing the SDK has been made easier: now you only need to specify the path to the SDK root directory in the File->Scripts field in the User Preferences menu (until now, you had to specify the path to the script directory inside the SDK folder).

SDK installation - specifying the path to the root directory.

An option to disable social network buttons has been added to the Web Player: to do that, you need to use the no_social attribute in the browser's address bar.

Using the no_social URL attribute to disable social network buttons.

Work on support for virtual reality devices has continued: mechanics to correct the distortion and remove the chromatic aberration has been added. To specify user settings for correction you need to use the set_hmd_params() function.

Two-finger rotation gesture support for touch devices has been implemented. The new Touch Rotate sensor has been added to the controls module for this.

We have optimized the node tree update algorithm which solves the performance issues for huge logic node trees.

In Closing

The presented Blend4Web release is compatible with Blender 2.76. Blend files of all examples mentioned in this article are included in the Blend4Web SDK. The full list of changes and fixed errors can be found in the release notes.

Comments
10 nov. 2022 14:24
I have been using Blend4Web for a while now and I have to say it is one of the best web design software I have ever used. It is so easy to use and has such a great interface that even someone like me who is not very tech savvy can make professional looking websites with it. Go to Cyber Security Tampa for more unique ideas. I have used other tools like DFX studio, but they are not as powerful as Blend4Web. It's important to keep up with the competition and the latest features. I think that it is a good idea to release this new version. It is important to keep improving the product, so that you can make it more stable and reliable.
Please register or log in to leave a reply.