Форум

Сообщения, созданные пользователем Юрий Ковеленов
10 августа 2017 08:59
Blend4Web somehow cases this. Leaving it here for further investigation
https://developer.blender.org/T52316

UPD fixed
Руководитель проекта | VK | Twitter | Facebook | Linkedin
08 августа 2017 17:16
Руководитель проекта | VK | Twitter | Facebook | Linkedin
08 августа 2017 16:55
Руководитель проекта | VK | Twitter | Facebook | Linkedin
07 августа 2017 17:39
Hi Tom,
Within the display there is a text link which allows the opening of a page in a new window.
This appears to be made with standard HTML means. In short, the information window is implemented as a <div> element with text description and a link on it. This <div> element is shown upon mouse click on an annotation (rounded icon with "i" on it). I guess the authors used so called custom annotations in this case.

An annotation itself is a <div> element which you can make clickable with JavaScript. Here is more.

[UPD]
In turn, hiding/unhiding can be easily implemented as explained here.
Руководитель проекта | VK | Twitter | Facebook | Linkedin
07 августа 2017 16:03
Hi Tom,

Thanks for your suggestion. We didn't implement this feature for a reason: the browsers are blocking pop-up windows generated by JavaScript code (which is still executed behind the logic nodes).
Руководитель проекта | VK | Twitter | Facebook | Linkedin
07 августа 2017 15:43
Is there a way to replace or assign an object's material at runtime?
you can use the inherit_material() method for this
check out this code snippet: link
Руководитель проекта | VK | Twitter | Facebook | Linkedin
07 августа 2017 14:37
Hi!
That worked but all the bolts fade at once. I need a way to fade out only a single group of bolts.
Off the top of my head, you can assign a different material for each group of bolts - BoltMaterial1, BoltMaterial2, etc
And as a side question, is animating the material the only way to fade these objects out?
Yes, I guess this is the only method currently available in Blend4Web.
Руководитель проекта | VK | Twitter | Facebook | Linkedin
03 августа 2017 11:54
Hi Lukasz!

WebGL apps normally cannot be run without a web server (local or on the web) - this is a security restriction imposed by the browsers. See more here: https://en.wikipedia.org/wiki/Same-origin_policy
So the Project Manager is not relevant here.

Still, you can work around this problem in the following ways:

1. Use Blend4Web HTML format based on the standard web player

2. If it is not enough, extend the functionality of the standard web player (basically, create your own application packed in a standalone HTML file). The Project Manager can help you a lot here, as you can use it for compilation of the modified Web Player app, which in turn, is used as a template by the Blender/Blend4Web HTML exporter. There was a dedicated topic somewhere on this forum on how to do that.

3. Bundle the web server with your JS app to form a desktop application. See here, here or here for example.

Hope this helps!
Руководитель проекта | VK | Twitter | Facebook | Linkedin
28 июля 2017 18:14
It leaves tracks in the dirt!
Yeah, this blows my mind the most.
Руководитель проекта | VK | Twitter | Facebook | Linkedin
27 июля 2017 17:05
Приложение получило серьезный апдейт и теперь выглядит даже еще круче. Автору респект и поздравления!
https://sungreen.github.io/projects/veterbot/veterbot.html
Исходный код здесь.
Информация о самом роботе здесь.
Прочитал об этом здесь.
Руководитель проекта | VK | Twitter | Facebook | Linkedin