User posts Juani
05 September 2017 21:43
05 September 2017 00:49
01 September 2017 20:35
31 August 2017 20:21
set_gravity(obj, gravity)
Set the object's gravity.
Parameters:
Name Type Description
obj Object3D Object 3D
gravity number Positive object gravity
I've been looking at the api and gravity is actually implemented.
From my point of view (I am an amateur)
Advantages of b4w: gravity can affect a single object if I want, in BGE the entire scene is affected as it applies to the world.
We can interact in real time, in bge we can not, it is a baked animation.
Cons of b4w: It is only applied to an axis, I understand that it is the z axis since the parameter is a number, not a vector. In bge you can apply the forces in the 3 axes.
Could you correct me if you did not?
I'll try to make an example with Suzanne and b4w, see if I can.
Set the object's gravity.
Parameters:
Name Type Description
obj Object3D Object 3D
gravity number Positive object gravity
I've been looking at the api and gravity is actually implemented.
From my point of view (I am an amateur)
Advantages of b4w: gravity can affect a single object if I want, in BGE the entire scene is affected as it applies to the world.
We can interact in real time, in bge we can not, it is a baked animation.
Cons of b4w: It is only applied to an axis, I understand that it is the z axis since the parameter is a number, not a vector. In bge you can apply the forces in the 3 axes.
Could you correct me if you did not?
I'll try to make an example with Suzanne and b4w, see if I can.
31 August 2017 19:52
Why you don't want to use blend4web (bullet) phisics? You also can control it using javascript code.
Hello Mikhail, for some reasons:
1. I am learning javascript.
2. In B4W we are missing (Triangle Mesh and Convex Hull), in BGE the physics is more real with more complex objects.
3. At this moment I feel more comfortable with python.
I have very clear that if the user should interact with the physical in the application I must use javascript, if it is only a visual simulation I can use python or javascript depending on the real thing I want to be the animation.
Regards.
Hello Mikhail, for some reasons:
1. I am learning javascript.
2. In B4W we are missing (Triangle Mesh and Convex Hull), in BGE the physics is more real with more complex objects.
3. At this moment I feel more comfortable with python.
I have very clear that if the user should interact with the physical in the application I must use javascript, if it is only a visual simulation I can use python or javascript depending on the real thing I want to be the animation.
Regards.
27 August 2017 13:41
27 August 2017 08:56
Hi, you can make the material in blender internal with nodes to animate transparency. The texture requires 3 additional nodes to be seen in b4w.
The Texture node with the name of the texture.
The Vector / Mapping node, you can put the values that I have put in Blend.
The Input / Geometry node, this node ensures that the texture is placed in place.
Take a look at the attached Blend, I hope it will be of your help.
Regards
Edited: I had not packed the texture.
The Texture node with the name of the texture.
The Vector / Mapping node, you can put the values that I have put in Blend.
The Input / Geometry node, this node ensures that the texture is placed in place.
Take a look at the attached Blend, I hope it will be of your help.
Regards
Edited: I had not packed the texture.