Форум

Сообщения, созданные пользователем Константин Хомяков
29 января 2018 14:22
here attached the test file. link
Something went wrong) Please try again (using attach button under the new message text field)
Команда Blend4Web - разработчик
Twitter
LinkedIn
29 января 2018 13:49
Reply to post of user AndreasResch
Hooray - it worked. I wish all issues were that easy to solve.

Thanks, Konstantin.
Glad it helps! You are welcome
Команда Blend4Web - разработчик
Twitter
LinkedIn
29 января 2018 13:47
I've try in all 2 ways, but unfortunately no reflection on BSFD material. also i've tried to increase the IOR but nothing.
Oh I see, Transmission and IOR parameters are not supported for now (probably will in the next release).
Could you please attach example blend file?
Команда Blend4Web - разработчик
Twitter
LinkedIn
29 января 2018 13:19
my question is, how can i use this with cubemap for reflections ? at the moment i've only a blank environment and a cubemap that make reflections for seome objects.

Thanks in advance for your best support guys !
Hi,

you can setup world material (which is used for environment lighting) via Cycles nodes utilizing equirectangular environment textures or via Blender Internal pipeline using cubemaps.
Команда Blend4Web - разработчик
Twitter
LinkedIn
29 января 2018 13:12
Hello,

I have created a scene, that shows thin cards on a table. When zooming out with the camera, the thin cards start to flicker when I move/rotate the camera. When I zoom in, the flickering gets better and when I'm close enough, it's gone.

As an intermediate solution I have move the table down slightly. Is there a way to get rid of the flickering?
Hello and welcome to the forum!

You can try to enlarge camera Clipping Start parameter as much as possible for your scene to prevent flickering caused by z-fighting.
Команда Blend4Web - разработчик
Twitter
LinkedIn
29 января 2018 11:16
Hello! I don't know if this is maybe a stupid question, but is it possible to use multiple JS files to control b4w functions? Because usually you have to type everything b4w-related in the "place your code here" section of the default JS file, otherwise it won't work. I'm imagining having the default file and then multiple other sub-files "linked" into it, that just contain the specific code, without having to register all b4w modules first and so on. I can't really believe that studios like VisCircle can handle their large configurator data by just typing in everything into the default file, so I thought I might ask here if and how this would be possible.
Sorry, I'm quite new to Javascript at all …
Working with blend4web JS API of course has no difference from other JS libraries.
So you can use multiple JS files as usual and, what is more, since the 17.12 release you can use
ES6 modules in your app which makes creating and managing complex apps with lots of js files/modules even simpler.

"Place your code here" just marks the place in your app logic where b4w app finishes initialization and scene loading so you can safely interact with the scene via API
Команда Blend4Web - разработчик
Twitter
LinkedIn
24 января 2018 15:16
Hello!

I'm kinda stumped by this, in three.js you can use a function update(), whereas in blend4web it doesn't seem to be that simple…

How would I go about making a Unity like Update function?
I need it to rotate an object when I click and drag it, amongst other things.

Thanks! :)
Hello!

The simplest way to add mouse events interactivity to your scene could be found for example in this code snippet or in this tutorial.
For more complex logic blend4web utilizes sensor manifolds.
Команда Blend4Web - разработчик
Twitter
LinkedIn
24 января 2018 14:45
When you create 3 or 4 lights in a scene, the ambient occlusion stops working.
Hi,

thanks for the report. There is a limit of shadows casting lamps for the scene. But ssao should work fine with 3 lamps, we'll investigate the issue
Команда Blend4Web - разработчик
Twitter
LinkedIn
24 января 2018 14:41
I'm pretty new to blender. I want to make three-sided pyramid rotate on top of my page, every side has to have different picture representing different pruduct. I can create it in blender-render render option but when I export it to html it takes position not even close to my camera view also every picture is reversed as it is looked in mirror. I want to give no controls over it to the visitor and want pyramid ratate on page load. As I said I'm pretty new and must miss some steps. Anyone can help with links to useful video tutorials ? PS. Thanks in andvance.
Hello and welcome to the forum!
Could you please attach example blend file?
There are plenty of tutorials on the dedicated website section. Also there are great video tutorials on YouTube made by our users
Команда Blend4Web - разработчик
Twitter
LinkedIn
19 января 2018 18:42
У меня есть сцена с таргет камерой. Мне требуется поворачивать камеру плавно с анимацией в четырёх направлениях (вверх, вниз, влево, вправо). Используя функцию m_camera_anim.rotate_camera() мне удаётся поворачивать камеру только вверх и влево. Предполагаю, чтобы повернуть камеру вниз и вправо требуется передать в функцию угол в виде отрицательного числа (например -0.02 радиана), но это не работает.

Как поворачивать камеру вниз и вправо?
Добрый вечер!
Это бажок.

Чтобы не ждать след. релиза можно вылечить так:
В SDK файл src/addons/camera_anim.js заменить
Эту строчку на
if (_is_camera_stop_rotating || Math.abs(e) >= Math.abs(angle_phi)) {

а эту строчку на
if (_is_camera_stop_rotating ||  Math.abs(e) >= Math.abs(angle_theta)) {
Команда Blend4Web - разработчик
Twitter
LinkedIn