论坛

由用户创建的信息 尤里·卡夫兰诺
18 July 2016 11:34
Hello,

I was able to run your (nice looking) project via Project Manager. I think there is a little confusion on how things work in Blend4Web.

The Fast Preview button in Blender opens your scene but doesn't run your JavaScript code, this is intended behaviour. Instead your scene is loaded into the Scene Viewer which is separate programmed app with its own code. Basically, this button is "for artists".

I'd suggest iterating your development through the Project Manager. Possible workflow can look as follows:

1. open the app JS file and change the app code using your preferred text editor
2. run your app in the browser using the link in the Project Manager (dev: guitar_presentation.html in your case). Use F5 button to reload your app in the browser for iterating
3. Edit your blend file in Blender and export the scene in JSON format. Keep reexporting each time you change something in your scene. Fast Preview button can still be useful for checking your standalone scene.

Hope this helps!
开发主管 | 新浪微博
16 July 2016 14:25
Hi Valentin and welcome!

The code snippet should work but you have to run it using the Project Manager.
开发主管 | 新浪微博
15 July 2016 18:18
Where is the javascript file that is causing the problem?
it should be located in the blend4web_ce/apps_dev/your_project folder

The other thing is why the dev:app.html link in the Project Manager loads the proper modified file and doesn't load the logic_nodes module.
can you export your project with the Project Manager and attach here for us to take a look?

blend4web project, I think it's awesome
Thanks for your kind words!
开发主管 | 新浪微博
15 July 2016 11:49
If I try to init the app from the fast preview inside blender it seems to be using and old javascript file
The Fast Preview button only exports your scenes in a tmp folder and loads it in the Scene Viewer, it doesn't touch your JS code.

if I try to import the logic_nodes module (
var m_ln = require("logic_nodes");
) the app fails to initialize and the app hangs on startup with error: Error: Module "logic_nodes" not found.
You can use command "check modules" of the Project Manager to find out missing modules. Your app can fail finding modules if you are using too old version of the Blend4Web engine.
开发主管 | 新浪微博
14 July 2016 22:40
Hi,

can be browser cache - make sure it is disabled
开发主管 | 新浪微博
08 July 2016 18:53
First, I would recommend to use the JSON format (see this tutorial, you need method #2).

Second, try to decrease the poly-count of your model.
开发主管 | 新浪微博
08 July 2016 08:08
开发主管 | 新浪微博
07 July 2016 16:26
亲爱的客户!
我们刚发布了长期支持版本的第一个更新。在观察最近16.06版本的一些 Blend4web 应用程序后,它修复了一个关键的性能退步。我们还修复了在场景视图中损坏的 Canvas Resolution Factor画布分辨率系数 滑块。用户手册中也有一些改正和添加。
请考虑下载更新后的 LTS 版本和升级您的应用程序。
开发主管 | 新浪微博
07 July 2016 15:32
Уважаемые пользователи!

Доступно для загрузки первое обновление в канале с длительным циклом поддержки (LTS). Обновление исправляет критическое падение производительности, наблюдаемое в некоторых приложениях на основе Blend4Web 16.06. Также приведен в рабочее состояние слайдер Canvas Resolution Factor в просмотрщике сцен. Кроме того, исправления и дополнения были внесены и в руководство пользователя.

Рекомендуем загрузить обновленную сборку LTS build и обновить приложения.
开发主管 | 新浪微博
07 July 2016 15:31
Dear customers!

We have just released the first update for the long-term supported version. It fixes a critical performance regression observed in some Blend4Web applications based on the recent 16.06 version. Also we fixed the broken Canvas Resolution Factor slider in the Scene Viewer. There are some corrections and additions in the User Manual as well.

Please consider downloading the updated LTS build and upgrading your applications.
开发主管 | 新浪微博