User posts liyao252
15 November 2017 21:58
Reply to post of user Alexander Romanov
Sorry, I have no time. This is not difficult, just set a breakpoint at the begining of create_annotation and inspect obj fields. Should be something like
if (obj.metatags["category"] == "your_cat") {
//apply styles

Of course you should modify engine code and rebuild it as I already mentioned above.

Yes. This is what I was looking for. Thanks!
14 November 2017 19:21
Reply to post of user Alexander Romanov
Yes, you can apply style depending on category value somewhere in create_annotation() function. Then you should compile the engine:
make compile_b4w
And build webplayer application with Project Manager.
Awesome, thanks Alexander.
How do I call the category? Do you mind sharing a simple example?
13 November 2017 20:30

I wanted to define two different anchor styles. But I do not want to add elements in each HTML individually. I was able to change the "Annotation" style in the anchor.js file. But all the anchors will use that one style. I was wondering whether there is a better way to do it so I can use it for multiple blender files that share the same HTML player.

I also noticed that there is a "Category" choice in the "Meta Tags" section. What's the function of this? Would I be able to make 2 anchor categories here?

Thank you very much!
08 November 2017 00:11

I have put some anchors on the surface of my model for annotations, However, it flicks a lot sometimes when I rotate around. I was wondering whether there is any way to set a unresponsive time or threshold, or something to prevent the flicking?

Thank you
08 August 2017 16:00
Thanks for that, this is very helpful!
FYI according to the release schedule page, Chrome 61 is planned to become stable in early September.
Oh nice! I was looking for the release schedule but didn't find it earlier.
Thanks Ivan
08 August 2017 05:07
Reply to post of user Ivan Lyubovnikov
Hi, this problem can be related with MSAA. You can try to disable it with the following code, when initializing the application:
exports.init = function() {
        quality: m_cfg.P_CUSTOM,
        msaa_samples: 1

Anyway, it will be helpful to show us the output of the "chrome://gpu" page, which contains useful hardware/software info about your machine, because we couldn't reproduce this bug on 2 different Macs.

I have reported this bug to Goolge Chrome and they have fixed it.
But it will be a while before Chrome 61 is released. He mentioned a workaround. I do need to get the viewer to work as early as possible, so I am wondering whether you can help with the workaround. Thanks!!!

btw, I emailed b4w support as well.
03 August 2017 15:13
I've got errors when opening the page on Google Chrome Macs (not all the Macs, not on PC) and the error says:

[.Offscreen-For-WebGL-0x7fb26f1ee200]GL ERROR :GL_INVALID_OPERATION : glBlitFramebufferCHROMIUM: src and dst formats differ for color

Anyone has any idea how to fix this?
13 July 2017 04:05
Reply to post of user Will Welker
Have your tried the "Detect Visibility" option?
Maybe that is what you are looking for.
omg this is exactly what I needed. How come you know everything! Thank you Will!

I guess I really should play with all the options more before I post questions.
12 July 2017 06:08

I was trying to add annotations and it was bothering me and my colleagues that the 2D annotation elements are always above the canvas, even when the structure is turned away from from the camera and covered by other structures.

I saw here that they were actually able to make the annotations more transparent when covered by 3D structures. It looks like the elements were made in 2D because they are responsive. But how did they get this effect? Is it possible to set or program this in blend4web?

12 July 2017 05:48

I wanted to render something like the leading lines in this file:
How was this acchieved? It looks like two intersecting planes.
How can I copy the material "smooth line" to another file?