Blend4Web - a 3D web framework for Blender artists

The community revealed a strong desire for visual programming feature that would work right in Blender. Blend4Web devs are now considering to implement a click-and-play feature to meet the needs of most simple web visualization scenarios.

Currently I can say that it will be based on NLA and so will playback not only animation but also sound and particles, and maybe also the values in node materials.

Thanks for the feedback that helped us to understand the importance of visual programming :wink:

Thank you!

any thought about a logic node exporter?

I have seen

node -> python

what I need is

logic nodes+python exported to ->java

or ->C++

or html5 or?

I want to use this platform, but I don’t want to lose 1.5 years of progress.

Seriously, if you’re waiting for a BGE logic nodes + Python exported to any language other than maybe Python - you’ll be waiting some time (i.e. don’t hold your breath). Honestly, if you are interested in moving away from the BGE, you’d be better rewriting whatever it is you created logic nodes for.

Logic nodes are interesting to play around with & all, just like GLSL shader nodes, but when you want performance you will need to start actually getting into real code.

Just want to say - this is an amazing initiative, I am glad this is being developed and looks so good.

That is difficult - some sort of python->javascript converter is needed. We could add a python interpreter to the engine but this would blow the code base up.

Agree about BGE logic bricks but the GLSL nodes are great for visual shader editing. All our modern demos use this feature heavily. The GLSL code behind the nodes is rewritten/optimized inside the engine.

Thanks we’ll do our best!

Here is a .blend file which, when exported to html, fails to completely load in the browser. It stops at 82% for both Chrome and IE.

I know the geometry is not the greatest but the problem seems to be related to materials. The material is a simple diffuse shader.

With the material, the load stalls. When the material is deleted, the file completely loads in the browser without a problem. Please help me resolve the issue.

Attachments

SimpleWebGLTest.blend (651 KB)

Hey,

Your blend has the image (named 399x264x1_65ad0cca-404019d8-17c73f91-44206568-18.RdBitmap.png) that cannot be loaded. That’s why your scene stops to load. That is a common gotcha so our devs are planning to implement some checks to prevent this bad behavior.
The error itself can be seen in the browser console which can be opened with F12 (Chrome and Firefox).

BTW Blend4Web does not support Cycles - only GLSL internal nodes can be used. When the engine sees some unknown nodes it just switches to the generic materials. There is the warning in the browser console about that.

Thanks for the feedback!

Edit: there is the scene viewer in the SDK which is designed to tweak and fix the scenes in the engine. It may be helpful.

“Shows errors and warnings which occurred during scene load. Red light means errors, yellow - warnings and green means that the scene was loaded successfully.”

http://www.blend4web.com/doc/en/viewer.html#id5

Thanks for the quick solution.

My pleasure :slight_smile:

Hi
I was impressed to see blend4web addon for blender and its capabilities. However I tried a simplest setup with a plane mapped with some texture and tried to export it. It gives error.
Pl. see the attachment. Am I making any mistake?

Thx.
Visualizer

Attachments


Hi,

Your question is covered in our just-out FAQ :smiley:

Specifically the error message tells that your texture has wrong coordinate type. You can find the descriptions of all possible error messages in the corresponding table of the user manual. For you case it is as follows: “For textures with images the following coordinate types are supported: UV, Normal.”

Texture settings can be changed under Texture tab. The gotcha is that the default value for the coordinate type is “Generated” which is now unsupported. We’ll think about this.

Nice that many folks are posting their first BlenderArtists post in this thread :slight_smile:

I’ve just start reading the manual and gone through some of the tutorial.

I’ve been working on 2 three.JS big project lately and I must say that B4web will replace it for me ASAP.
I’m currently working on a new webGL project and we’ve chosen, B4web.

You’ve made an insane work here, so professional.
Both your website and documentation are so exhausteve.
This forces respect :slight_smile:

Thanks Pierrick! That is very inspiring to see Blend4Web getting recognized among Blender professionals!

Hi
UFOa,
Thanks for specific highlight… I shall refer to it to fix it…! :slight_smile:

I m trying to make something like this. It should be possible in blend4web I guess.

http://www.horizonfx.net/2014/starting_circuit.swf

This is a plane ‘X’ & ‘Y’ circuit schematic, I guess it should be exciting to make the same with added ‘Z’ dimensions. Remaining all interactions as is.

Regards
Visualizer

Should be easily possible from a blend4web perspective. Still you need the models and animate them. You can then simply stop the animation at a given frame and play it again on object interaction

I see. Its very basic, but it can be very useful for clicky demos

This is an excellent initiative and will go a long way into making this an authoring tool for a wider audience, even
beyond the blender community. I look forward to using it and following it’s development !

oddbody

@UFOa: Will you have a camera mode for the basic viewer that allows the camera to walk through a scene without going through static objects (like the ground or walls)? This would be highly desirable for architectural visualization scenarios. Essentially, the camera mode used in the farm demo is needed.