Forum

[semi-solved with hacks...] Is possible hidden 100% tags when is not visible (Detect Vsibility)?

08 April 2016 15:42
in blend4web_sdk_free/src/anchors.js in line 487 you can change this feature too

element.style.opacity = 0.1;
to
element.style.opacity = 0;

or in b4w.simple.min.js
K.style.opacity=.1
to
K.style.opacity=0
29 December 2016 21:40
Reply to post of user Nils Austa
I modified the source webplayer.min.js
Replace that file in your Blend4web 16.03 install folder and you will get nontransparent hidden anchors when you export from blender.

Hi, i tried to replace the modified source webplayer.min.js in "blend4web_ce\deploy\apps\webplayer" but i have an mistake.

It's not working with the v16.12.1
The .html export work, but i can't load the .html file in the navigator.
Anyway, it's not working too in the fast preview from the Blender software too…

Anyone tried ? Or have another simple solution to hidden anchors from 0.1 to 0 opacity ?

EDIT 1 :
I finnaly changed the "\blend4web_ce\src\anchors" file
element.style.opacity = 0.1; to element.style.opacity = 0;
It only work for the preview, not the .html export !

EDIT 2 :
Found the solution with the post of Nils Austa !

Just only :
- Edit "\blend4web_ce\deploy\apps\webplayer\webplayer.min" ;
- Search line "opacity=.1"
- Replace by the opcity you want : "opacity=.0"
- Save & Enjoy
30 December 2016 10:25
It only work for the preview, not the .html export !
You need to re-compile the web player. You can use the Project Manager for this: just find "webplayer" at the bottom of the app list and click "compile project".
The Founder | Twitter | Facebook | Linkedin
23 January 2017 08:27
It's still okay for the opactity.

But i have troubles when i "rebuilt / compile" the project background color of anchors.
They still back to the initial black color..

(i'm trying to put them in white background + black text)

Thanks
23 January 2017 12:18
But i have troubles when i "rebuilt / compile" the project background color of anchors.
They still back to the initial black color..
These styles are defined here: src/anchors.js. The "add_title_wrap_style" function is for the title style and the "add_descr_style" is for the description style.
 
Please register or log in to leave a reply.