由用户创建的信息 Roman_Sementsov
26 November 2015 12:39
The antialiasing was smoothing pixels and we didn't see all little cubes. Also, can you send me a console screenshot (press F12 keyboard button or cmd + i, if you use Mac) ? There is a WebGl extension, which allows to create meshes with < 2^32 (4294967296) vertices. Also, we should check whether your GPU supports it.
26 November 2015 12:25
Hello.
I decided to investigate in detail your first file - ville.blend
I disabled antialiasing, enabled the "force dynamic object" (it's necessary if you are planing to add even more objects) property on each scene object and exported it. Take a look at the result, please:
Blender Render result:
Browser version:
I decided to investigate in detail your first file - ville.blend
I disabled antialiasing, enabled the "force dynamic object" (it's necessary if you are planing to add even more objects) property on each scene object and exported it. Take a look at the result, please:
Blender Render result:
Browser version:
26 November 2015 10:25
The "inherit_material" function uses string material names variables, if you give integer or float type of variable - the array.indexOf cannot find it. For example:
Try to use the following code, please:
var data = ["1", "2", "3"];
var num = 1;
console.log(data.indexOf(num) == 0) // return false
console.log(data.indexOf(num.toString()) == 0) // return true
Try to use the following code, please:
var mat_name_to = 1;
var mat_name_from = 2;
if (typeof(mat_name_to) === "number")
mat_name_to = mat_name_to.toString();
if (typeof(mat_name_from) === "number")
mat_name_from = mat_name_from.toString();
m_materials.inherit_material(obj_from, mat_name_from, obj_to,mat_name_to);
26 November 2015 09:47
25 November 2015 19:02
В b4w это возможно? Я бы допустим создал себе объект, и линкуя его из другого файла в основную сцену получал бы каждый раз с немного другим оттенком (с каким настроил в материале). Например одинаковые машины, с разным цветом. Или растительность.
Ну можно загрузать .json-файл с подготовленной машиной (аналог линковки), делать ее копии через API и изменять им цвета через API модуля materials.
25 November 2015 18:53
25 November 2015 15:14
25 November 2015 13:13
25 November 2015 13:08