论坛

由用户创建的信息 Roman_Sementsov
08 February 2017 15:24
Hello.

Currently you can compress the data size only using server gzip compression. We already use optimization to reduce the size of files (we use the 8bit data). The complex data processing can load CPU and loading will become longer, but we will discuss the new compressing methods.

Thanks
08 February 2017 15:14
Hello.

Sorry for the delay. I couldn't reproduce the issue. Could you tell us how to reproduce it?
I've tested the set_velocities method using 16.12.1 SDK version.
08 February 2017 14:45
Also you can renew your technical support subscription and our CSS specialist can answer your question in more detail.
08 February 2017 14:29
Он в составе SDK лежит, можно найти его в списке проектов Менеджера Проектов. Его исходники будут лежать в SDK/apps_dev/webplayer/

Там будет так же лежать шаблон HTML-файла, который тоже надо будет поменять, он будет использоваться при HTML-экспорте из Блендера. После изменений надо будет в Менеджере Проектов нажать на кнопку compile напротив приложения
08 February 2017 14:26
Добрый день.

Скорее всего дело в том, что в Edge имеются проблемы с воркерами, можно попробовать запустить физику в том же потоке, что и графика. Для этого надо передать в m_app.init
physics_use_workers : false,

Возможно это поможет, но это точно приведёт к падению fps
08 February 2017 14:16
Извиняюсь, не обратил внимание, что вы уже используете переменную-состояние загруженной модели.
function button_index() {
    var file_loaded = true;
    var scenes_load_cb = function(data_id, success) {
        file_loaded = true;
    }
    if(file_loaded){
        file_loaded = false;
        if(_current_model == null){
            _current_model = m_data.load(_file_names[this.id], scenes_load_cb, stageload_cb, true);     
        }else{
            m_data.unload(_current_model);
            _current_model = m_data.load(_file_names[this.id], scenes_load_cb, stageload_cb, true);
        }
        var description_text = document.getElementById("description_text");
        description_text.textContent = _btn_description[this.id]
    }
}


Проверил на двойной быстрый клик - работает, дайте знать если будет что-то не так
08 February 2017 12:25
Слегка модифицировал функцию смены сцены:
function button_index() {
    var interface_is_active = true;
    var scenes_load_cb = function(data_id, success) {
        interface_is_active = true;
    }
    if(_file_loaded == true && interface_is_active){
        _file_loaded = false;
        interface_is_active = false;
        if(_current_model == null){
            _current_model = m_data.load(_file_names[this.id], scenes_load_cb, stageload_cb, true);     
        }else{
            m_data.unload(_current_model);
            _current_model = m_data.load(_file_names[this.id], scenes_load_cb, stageload_cb, true);
        }
        var description_text = document.getElementById("description_text");
        description_text.textContent = _btn_description[this.id]
        _file_loaded = true;
    }
}

Добавил блокировку интерфейса до завершения загруки сцены
08 February 2017 11:51
Hello!

They use their own scroollbar which uses this library. But it's too difficult to write it - there are about 500 JavaScript code lines.
08 February 2017 11:44
Добрый день.

Надо будет переверстать приложение Webplayer, но не забывайте об условиях изменения этого приложения
08 February 2017 11:38
Добрый день.

Сцены выгружаются по своему идентификатору, выгрузить все, кроме одной, можно из приложения, запоминая id загруженных сцен.

Я как-то делал подобное приложение, могу дать вам пару советов. На время загрузки модели лучше блокировать интерфейсную кнопку загрузки, чтобы нельзя было загрузить несколько одинаковым моделей. И разблокировать её по завершению загрузки. В таком случае не будет лишней путанницы с идентификаторами.

Вообще, если у вас есть простой пример приложения, можете скинуть, я могу посмотреть более детально