Сообщения, созданные пользователем Will Welker
11 июня 2017 15:15
11 июня 2017 15:07
11 июня 2017 14:15
I have been doing some work on the diamond material. It is already pretty amazing but I am trying to make it more like your example. I still need to study more on nodes but I will show you what I have found so far.
I made a few changes to the Blend4Web stock diamond material example. It has two meshes, and inside and an outside. I deleted the inside mash (back up your original) then duplicated the outside mesh and left it in the same place. Then, in edit mode I flipped all the normals and made a simple reflective material. I activated Reflective in the Object tab.
Then, I made a change to the original diamond material.
The part shown here is in the gem_outside_material-core. Here is a video that shows you how to access the inner core materials using the TAB key:
https://youtu.be/DswQhRFo6OQ
But so far, the diamond in your example is still much nicer. I am going to spend some more time learning the material nodes and see if I can do better.
I made a few changes to the Blend4Web stock diamond material example. It has two meshes, and inside and an outside. I deleted the inside mash (back up your original) then duplicated the outside mesh and left it in the same place. Then, in edit mode I flipped all the normals and made a simple reflective material. I activated Reflective in the Object tab.
Then, I made a change to the original diamond material.
The part shown here is in the gem_outside_material-core. Here is a video that shows you how to access the inner core materials using the TAB key:
https://youtu.be/DswQhRFo6OQ
But so far, the diamond in your example is still much nicer. I am going to spend some more time learning the material nodes and see if I can do better.
11 июня 2017 11:07
It looks like your velocity is hard coded in:
When you apply velocity, can you make your X, Y, and Z into variables that depend on other factors?
Since I do not know what your application does, I can only guess but you may need to feed some kind of variable value into your apply_velocity_world() function. For example your character's rotation multiplied by some strength factor.
If you use the apply_velocity() function instead, it may move in the direction you happen to be facing(Guessing here, I haven't tried this).
m_physics.apply_velocity_world(ball,0,20,10);
When you apply velocity, can you make your X, Y, and Z into variables that depend on other factors?
Since I do not know what your application does, I can only guess but you may need to feed some kind of variable value into your apply_velocity_world() function. For example your character's rotation multiplied by some strength factor.
If you use the apply_velocity() function instead, it may move in the direction you happen to be facing(Guessing here, I haven't tried this).
11 июня 2017 10:54
11 июня 2017 04:11
It is difficult to know the answer for you. What code are you currently using?
Physics API.
Physics API.
10 июня 2017 14:11
10 июня 2017 08:14
10 июня 2017 06:55