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
29 jan. 2016 13:22
Congratulations!
Looks awesome as usual. Can't wait to try new nodes !!!!
30 jan. 2016 03:29
You have reignited my passion for wanting to make videogames. It was always my dream to make games and now I have all of the tools I need available. I am learning Blend4 Web and Blender. I hope to make something great! Thanks. :)
30 jan. 2016 07:38
This is excellent news! I had been eagerly waiting for 16.01. Just installed it now and can't wait to try it out.
01 feb. 2016 16:54
Great to have these new features again! :)

One question: do you know if there's any performance issues when viewing blend4web-html:s in 4k monitors? I have a 4k laptop (very powerful one) and it struggles to view even basic scenes without lagging (in "high" quality). And the content doesn't look like it's actually 4k, I think it might be scaled up from 1080p.

Anyways, great stuff as usual in this new release. Keep up the good work!
02 feb. 2016 14:20
Hi,
One question: do you know if there's any performance issues when viewing blend4web-html:s in 4k monitors? I have a 4k laptop (very powerful one) and it struggles to view even basic scenes without lagging (in "high" quality). And the content doesn't look like it's actually 4k, I think it might be scaled up from 1080p.
We tested Blend4Web content on a 4k monitor but it was used as a second display. Still have to test on a 4k laptop. Could you please specify what video card is inside your laptop?
02 feb. 2016 15:44
My laptop has the Geforce GTX 960M chip inside it. (and the Intel Core i7 6700HQ CPU).
08 feb. 2016 12:18
If it is possible, I would like a 3rd download option of just the files (in their respective folders) that have been added or changed in the SDK since the previous release. This would make a much smaller download to get an updated SDK.
08 feb. 2016 13:06

If it is possible, I would like a 3rd download option of just the files (in their respective folders) that have been added or changed in the SDK since the previous release. This would make a much smaller download to get an updated SDK.
Hello!
This type of download can be performed via GitHub
09 feb. 2016 07:08
By going here

https://github.com/TriumphLLC/Blend4Web

how do I download just what has changed since the previous version?
09 feb. 2016 10:29


By going here

https://github.com/TriumphLLC/Blend4Web

how do I download just what has changed since the previous version?
Working with github need some preparations and additional routine but when you get familiar with it updating b4w sdk will be as easy as pie

These tutorial are exactly what you need:
https://help.github.com/articles/set-up-git/
https://help.github.com/articles/cloning-a-repository/
After these steps the only thing you should do for getting updates is to use "git pull" command from your local directory with sdk.
There are several github desktop clients for different platforms like https://desktop.github.com/ which may save you from using terminal.
We'll answer any questions if tutorials above are too confusing
Please register or log in to leave a reply.