论坛

由用户创建的信息 pakirrote
04 May 2016 11:13
In Ipad when tap the screen, the canvas flick.
http://stackoverflow.com/questions/9526719/ipad-canvas-flickers-when-tapped

Anyone can help me? Thanks.
03 May 2016 13:01

Reply to post of user Yuri Kovelenov
You can do this in two ways:
1. with the logic editor
example, blend file

2. via API
code snippet


Thanks.
29 April 2016 15:23
Hello. How can change material on click in object?. Thanks.
15 April 2016 14:44
Yes.. I have 16.2.0

Nice!! :)
15 April 2016 14:21
my system is Os X
with advanced get error (but simple flag, work well)

python3 project.py -p MiProyectname compile -o advanced
 
ERROR - Cannot read: /var/folders/dc/l6r05ld14_9649b0jfh0830c0000gn/T/tmptkkiglq4.js

1 error(s), 0 warning(s)

ls -al /var/folders/dc/l6r05ld14_9649b0jfh0830c0000gn/T/tmptkkiglq4.js
ls: /var/folders/dc/l6r05ld14_9649b0jfh0830c0000gn/T/tmptkkiglq4.js: No such file or directory
15 April 2016 13:47
I have fixed one error when compile with console.

error:
Traceback (most recent call last):
  File "project.py", line 44, in <module>
    project_cli.run(sys.argv, base_dir)
  File "/Users/EDICION5/Downloads/Blend4Web/blend4web_sdk_free/scripts/lib/project_cli.py", line 192, in run
    run_compile(args[1:], proj_path)
  File "/Users/EDICION5/Downloads/Blend4Web/blend4web_sdk_free/scripts/lib/project_cli.py", line 874, in run_compile
    compile_app(**params)
  File "/Users/EDICION5/Downloads/Blend4Web/blend4web_sdk_free/scripts/lib/project_cli.py", line 1039, in compile_app
    js_paths = exist_js(parser.js, js_files, build_proj_path)
  File "/Users/EDICION5/Downloads/Blend4Web/blend4web_sdk_free/scripts/lib/project_cli.py", line 1542, in exist_js
    print(item["src"])
KeyError: 'src'



Solution in file blend4web_sdk_free/scripts/lib/project_cli.py line 1542:

 for item in included_files:
        if len(item) > 0:
            if "src" in item:
                js_src = normpath(join(app_path_name, item["src"]))


This fix for me.
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
08 April 2016 15:28

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.

Good, but this is a unofficial hack…. ^-^

But, thanks!.
08 April 2016 14:23

Reply to post of user nils.austa
As far as I can understand, useing Custom Element is not possible with single html output. Am I right?

Anyway 100% unvisibility is possible by modifying source code.
There is "opacity=.1" which must be changed to "opacity=.0" or "opacity=0"

completely_hidden.html

completely_hidden.blend

webplayer.min.js


you have edited the webplayer.min.js or minified code inside html?….
Where you edit opacity to 0?… Thanks.
07 April 2016 19:54

Reply to post of user Dmitry Zhiganov
You should use Custom Element anchor type and attach_move_cb function.
Example in the code snippets.

Thanks, I have to review it.