Сообщения, созданные пользователем Will Welker
13 июня 2017 09:26
There is a way to render an HTML surface over your 3D object:
https://www.blend4web.com/en/forums/topic/3295/
This sort of fakes the 3D element so it is not actually in the 3D scene. You can't move other objects in front of it but it works pretty good. Small video attached.
https://www.blend4web.com/en/forums/topic/3295/
This sort of fakes the 3D element so it is not actually in the 3D scene. You can't move other objects in front of it but it works pretty good. Small video attached.
13 июня 2017 09:21
13 июня 2017 09:19
"can i do it through api/dynamically?"
Yup: https://www.blend4web.com/api_doc/module-constraints.html#.append_stiff
Yup: https://www.blend4web.com/api_doc/module-constraints.html#.append_stiff
13 июня 2017 09:17
Here is a basic video on creating text in Blender:
https://youtu.be/4tVC4nN3-fU
Once you have created your text, place it on or near the object you want it attached to (it can be far away to if you want). In Object mode, select your text first then Shift-select your object. Use CTRL-P to bring up the Set Parent menu, select Object. Now when you move your main object around, the text will be stuck to it.
https://youtu.be/4tVC4nN3-fU
Once you have created your text, place it on or near the object you want it attached to (it can be far away to if you want). In Object mode, select your text first then Shift-select your object. Use CTRL-P to bring up the Set Parent menu, select Object. Now when you move your main object around, the text will be stuck to it.
13 июня 2017 09:01
12 июня 2017 20:20
12 июня 2017 20:15
In this thread, we were talking about a shooting ball demo.
What happens is the ball shoots and starts rotating as it hits the ground or other things. Once physics are disabled and the ball is reset, the rotation is somehow 'remembered' by the ball so when you shoot again, it rotates according to the last physics simulation.
This is a logic node + JavaScript project. Project attached.
What happens is the ball shoots and starts rotating as it hits the ground or other things. Once physics are disabled and the ball is reset, the rotation is somehow 'remembered' by the ball so when you shoot again, it rotates according to the last physics simulation.
function throwBall(inParams,outParams) {
m_constr.remove(inParams[0]);
m_physics.enable_simulation(inParams[0]);
m_physics.apply_velocity(inParams[0],0,20,0);
}
function resetBall(inParams,outParams) {
m_physics.disable_simulation(inParams[0]);
m_trans.set_rotation_v(inParams[0],m_quat.create());
m_trans.set_translation_v(inParams[0],m_trans.get_translation(inParams[1]));
m_constr.append_stiff_trans_rot(inParams[0], inParams[1], m_vec3.create());
}
This is a logic node + JavaScript project. Project attached.
12 июня 2017 20:01