Форум

Сообщения, созданные пользователем Константин Хомяков
19 мая 2017 11:55
Hi Guys, I am following this as above but it is not working and I keep getting this message in my console:

TypeError: m_logic_n is undefined[Learn More]

I am sure I have done something wrong somewhere but I can not figure it out and it is driving me nuts.

Thank you in advance for any help you can offer.
Hello,

could you please attach exported example project reproducing the issue
Команда Blend4Web - разработчик
Twitter
LinkedIn
17 мая 2017 10:35
A new version came out (17.04) that supports Cycles World Material nodes and even equirectangular images, so I'm using them from now on.
Glad that this feature was useful for you
Stay tuned, many new interesting features are just around the corner
Команда Blend4Web - разработчик
Twitter
LinkedIn
11 мая 2017 12:30
Im looking for a simple way to inquire if an object is hidden or visible. Initially, obects can be hidden by setting the hidden flag in blender. Can i inquire the visibility state of objects with a API function?
Hello and welcome to the forum

For dynamic objects you can use:
m_scenes.is_hidden
m_scenes.is_visible
Команда Blend4Web - разработчик
Twitter
LinkedIn
11 мая 2017 12:27
I have a project with many speaker objects, each playing a different audio file, when clicked. I used a switch select and play sound nodes for that. How could I stop all other audio files when I start playing a new one, so that they don't play together?
Hello,

for now there is now way to stop all sounds at once so you need to stop other Speakers manually via Stop Sound node
Команда Blend4Web - разработчик
Twitter
LinkedIn
11 мая 2017 12:03
I am null knowledge of programming.
Any help how to add drag & drop in simple way?
Hello,

fully without programming - no (https://www.blend4web.com/en/forums/topic/1955/?page=1#post-15537)
Команда Blend4Web - разработчик
Twitter
LinkedIn
11 мая 2017 11:58
Hi,

Is it possible to embed one iframe into a cube? The iframe will show an external web page data/charts.

So in one side of the cube - it will show some charts which will be dynamically changing
Hi and welcome to our forum!

There is no embedded mechanism in the engine to solve your task. But it can be done via CSS3D scripting.

I've found an old demo suitable for your purposes. You need to import it with Project Manager. It will create a project folder blend4web/apps_dev/html3d

I would suggest to pay attention to several points in the following files:

1. html3d.html
- Add iframe/another html element you want to have in 3D

2. html3d.js
- SIZE_MULT variable.
You can use it to change pixel size in virtual space
1 pixel of html element = 1 virtual cm by default.
- load_cb function.
Here we attach the HTML element to the "Plane" object.
Команда Blend4Web - разработчик
Twitter
LinkedIn
03 мая 2017 18:56
Там совершенно дефолтный файл, вот видео, что я делаю
Ссылка на видео. google-drive
Прошу прощения, забыл совсем. В настрйоках мира в режиме Blend4Web галку Render Sky необходимо выставить (единственное доп. действие).
Команда Blend4Web - разработчик
Twitter
LinkedIn
03 мая 2017 17:17
Добрый вечер. Скачал последний аддон (сдк не стоит), создал стандартный проект с кубиком, включил в world ноду background, поставил картинку, экспортнул html, а кубик просто на стандартном фоне. Может еще нужны какие нибудь манипуляции ?
Добрый вечер,

кроме включения опции Use Nodes на материале мира допольнительных манипуляций ненужно. Только что проверил экспорт в HTML - вроде бы все корректно. Можете, пожалуйста, blend файл прикрепить, на котором воспроизводится?
Команда Blend4Web - разработчик
Twitter
LinkedIn
02 мая 2017 16:18
Единственное, я не понял, для того что бы использовать ноды суслика нужно обязательно переключаться на рендер cycles, настраивать материал/окружение а потом опять переключаться на b4w? Очень не удобно. Или я не догнал, как правильно это использовать?
Пока что необходимо переключаться в Cycles, да. Но мы работаем над этим + Кнопка Fast Preview продублирована на нижней панели инструментов вьюпорта и для Cycles, чтобы чуть облегчить жизнь)

Еще вопрос, получиться ли достучаться до окружения, настроенного в cycles посредством API? Сменить картинку например.
Да, получится. Изображение для энвайронмент текстуры Cycles мира можно менять аналогично другим текстурам
Команда Blend4Web - разработчик
Twitter
LinkedIn
27 апреля 2017 15:28
Thanks Konstantin, that helps to confirm what I was attempting. It seems I had wrong expectations for how this feature would work and that I'll still need to do appropriate texture set-up to simulate image-based lighting. I'm still learning.

My expectation was that there would be some lighting going on, similar to Cycles (top left.) On an object with ~0.8 roughness I wouldn't expect so much reflection (top right.)
support of roughness for reflections is still experimental and in developing, for now roughness only affects direct lighting, not environment. But we are working hard on it

I will make a presentation on our pbr/cycles plans which will also address this theme in the upcoming b4w conference
Команда Blend4Web - разработчик
Twitter
LinkedIn