Forum

User posts Yuri Kovelenov
19 February 2016 18:14
So maybe i'm on the wrong way, my purpose is to change an object color by javascript (color given by a colorpicker HTML).
Any advice?
See this code example to get an idea how to change material params in runtime:
https://www.blend4web.com/apps/code_snippets/code_snippets.html?scene=material_api
The Founder | Twitter | Facebook | Linkedin
19 February 2016 18:00
Example of 3D web design
The Founder | Twitter | Facebook | Linkedin
19 February 2016 17:58
The Founder | Twitter | Facebook | Linkedin
19 February 2016 17:27
Hi and welcome to this forum!

The engine looks whether the built_in_data module exists and will load data from this module automatically.

I copied this from webplayer.js:
var module_name = m_cfg.get("built_in_module_name");
var bd = require(module_name);
var file = bd["data"]["main_file"];
m_data.load(file, loaded_callback, preloader_callback, false);
The Founder | Twitter | Facebook | Linkedin
19 February 2016 16:43
Hi,

I run these demos on my Samsung S6 Edge in Chrome and they look fine for me. In the stock "Internet" browser both demos do not show textures though as it was reported before.

Please note that canvas_resolution_factor is intended for getting the best quality at the expense of performance, to be used for making screenshos mostly.
Prefer using ULTRA quality setting instead. Also try changing anti-aliasing quality in blender.
The Founder | Twitter | Facebook | Linkedin
19 February 2016 15:29
19 February 2016 15:28
19 February 2016 08:44
18 February 2016 18:55
I see. Perhaps this can be achieved by using an absolutely positioned iframe element with its z-index set to a value lowest among all other elements.

HTML code:
<iframe style="position: absolute; width: 100%; height: 100%; z-index: 0;" 
src="https://www.blend4web.com/apps/webplayer/webplayer.html?load=../../assets/capri/vehicles/mi_34s1/mi_34s1_demo_scene.json"></iframe>

The Founder | Twitter | Facebook | Linkedin
18 February 2016 18:11
Hi and welcome to our forum!

This nice tutorial by Will Welker may be useful for you.
The Founder | Twitter | Facebook | Linkedin