User posts Alexander Romanov
05 March 2018 23:05
You have duplicated load_cb. And create_interface(obj) is not invoking. The second load_cb is calling. Note that it has something strange in it's body, find the closing brace.
Alexander (Blend4Web Team)
twitter
05 March 2018 22:29
Hello! And welcome to our forum!
Did you try parenting? You can set some empty object as parent (Ctrl+P) of the cube and then move this empty. In this case cube will be animated in local space and no reset will happen.
Did you try parenting? You can set some empty object as parent (Ctrl+P) of the cube and then move this empty. In this case cube will be animated in local space and no reset will happen.
Alexander (Blend4Web Team)
twitter
05 March 2018 22:12
I have one project loading correctly all the sliders, and one loading correctly all the logic nodes, but i go to the code and modify, and modify, and there is no way to get it to work all together.Could you give more details about what do you have and what do you want to acheive? Projects' sources could help very much.
What logic nodes do in the first project?
What sliders do in the second?
What should happen when you merge them?
It is difficult to help you because I have no sources of yor logic node script and information mentioned above.
Alexander (Blend4Web Team)
twitter
05 March 2018 21:54
Well, I've rebuilt it for you. See the attachment. You should merge blend4web_ce directory (find it in the archive) with your SDK directory.
If you are still interested in how to do this manually, check your logs. You can see, that python is required. So you can download python 3.5.4 from https://www.python.org/downloads/mac-osx/, install it and continue your attempts .
If you are still interested in how to do this manually, check your logs. You can see, that python is required. So you can download python 3.5.4 from https://www.python.org/downloads/mac-osx/, install it and continue your attempts .
Alexander (Blend4Web Team)
twitter
04 March 2018 13:51
Ответ на сообщение пользователя МаксЭти объекты нужны для того, чтобы унаследовать с них материал. Траблов с внезапнын появлением скрытых объектов не встречалось никогда. Объекты появятся только если их отображение включить принудительно.
Если я правильно понял. все таки объекты (по типу dummy в 3DMax) какие то остаются внутри сцены для управления? а без этих объектов никак нельзя? чтоб сцену не засорять, чтоб вдруг в каком то браузере или с каким то траблом эти объекты не появились…
Alexander (Blend4Web Team)
twitter
04 March 2018 00:54
Hello! And welcome to our forum!
See the documentation.
"Video memory indicator
Is located in the bottom right corner of the rendering area. It displays the amount of video memory used by geometry, textures, render targets, and also the total memory usage."
The textures must be prepared for GPU, they should be converted to a different format, which has bad compression. Blend4Web SDK has tools for converting your textures to more fast formats such as PVR or DDS. See corresponding section in the documentation.
See the documentation.
"Video memory indicator
Is located in the bottom right corner of the rendering area. It displays the amount of video memory used by geometry, textures, render targets, and also the total memory usage."
The textures must be prepared for GPU, they should be converted to a different format, which has bad compression. Blend4Web SDK has tools for converting your textures to more fast formats such as PVR or DDS. See corresponding section in the documentation.
Alexander (Blend4Web Team)
twitter
04 March 2018 00:30
You should create the file named as webpack.config.js in the root of the sdk and insert the content of the file from the link or from the listing bellow:
const path = require('path');
module.exports = [
{
entry: path.resolve(__dirname, './index.js'),
output: {
path: path.resolve(__dirname, "dist"),
filename: 'b4w.js'
}
},
{
entry: path.resolve(__dirname, './uranium/index.js'),
output: {
path: path.resolve(__dirname, "uranium"),
filename: 'ipc.js'
}
},
]
Alexander (Blend4Web Team)
twitter
04 March 2018 00:27
You can see the max texture size for your device here: http://webglreport.com/
World statistics: https://webglstats.com/webgl/parameter/MAX_TEXTURE_SIZE
World statistics: https://webglstats.com/webgl/parameter/MAX_TEXTURE_SIZE
Alexander (Blend4Web Team)
twitter
04 March 2018 00:11
Here are my modifications:
The fixed project is attached too. It had a syntax error: you can't use export if your js is included to html with script type="text/javascript", There should be type="module". Also, there was brackets not on their places.
diff -rupN walk/walk.html walk1/walk.html
— walk/walk.html 2018-03-03 19:20:06.000000000 +0300
+++ walk1/walk.html 2018-03-03 23:59:02.293882969 +0300
@@ -10,7 +10,7 @@
<link rel="stylesheet" href="walk.css" type="text/css">
-<script type="text/javascript" src="..\..\dist\b4w.js"></script>
+<script type="text/javascript" src="../../dist/b4w.js"></script>
<script type="text/javascript" src="walk.js"></script>
diff -rupN walk/walk.js walk1/walk.js
— walk/walk.js 2018-03-03 19:47:15.000000000 +0300
+++ walk1/walk.js 2018-03-03 23:58:31.733790857 +0300
@@ -28,14 +28,14 @@ var _vec3_tmp3 = new Float32Array(3);
var _quat_tmp = new Float32Array(4);
-var APP_ASSETS_PATH = m_cfg.get_std_assets_path() + "walk/walk/";
+var APP_ASSETS_PATH = m_cfg.get_std_assets_path("walk");
var STEP = 1.5;
var ROT_ANGLE = 3 * Math.PI / 5;
var AXIS_THRESHOLD = 0.1;
var ANIM_SPEED = 3.5;
var COLLISION_RAD = 6 * 6;
-}
-export function init() {
+
+exports.init = function() {
m_app.init({
canvas_container_id: "main_canvas_container",
callback: init_cb,
@@ -245,10 +245,6 @@ function create_interface() {
}
}
-
-}
-
-
});
// import the app module and start the app by calling the init method
The fixed project is attached too. It had a syntax error: you can't use export if your js is included to html with script type="text/javascript", There should be type="module". Also, there was brackets not on their places.
Alexander (Blend4Web Team)
twitter
03 March 2018 23:13
Спасибо, а где можно найти эти уроки?Кликните на "серией уроков по нодовой логике" из моего сообщения .
Вот тут вот список обучающих статей.
Alexander (Blend4Web Team)
twitter