Forum

User posts Mentalist
25 January 2016 16:48

Just link False output of the second Conditional Jump with already existing Switch Select input. So after returning do default shape cube will wait for click again to repeat your shape animation.
Yep, works perfectly!
Thank you once again.

25 January 2016 13:29
Thank you!
Now I just have to figure out how to make it clickable again after it returns to its rest position.
I think maybe the example .blend of the dresser drawers may provide a clue. (I'm on my smartphone at the moment - can't test it out)

This question started as a mission to animate shape keys, but thanks to you I am getting some other important questions answered too, and learning a lot about the Logic Editor!
25 January 2016 12:18
Thank you! I'm so glad this is possible.
We start working on more proper solution for shape key animation.
Awesome! I can't wait!

I have a couple of questions…

1) Why did you use a Delay node with a value of 0 and loop back to it? Does it have an effect?

2) I tried the following node setup in an attempt to get the shape key to slide back to its rest position after a moment (looking like a cube again), but it didn't work. I also tried using the R2 variable for the resetting animation but it didn't make a difference. Do you know what I have overlooked?



Thank you!
25 January 2016 08:30
I've created a simple node setup in the Logic Editor that uses the Apply Shape Key node to transition to a shape key and then back again.



At first it wasn't working at all, but then I discovered the "Export Shape Keys" option in the Object context.



Now it works but the transition is instantaneous. Instead I would like it to slowly morph between shape key values.



I thought maybe this can be done by enabling the Variable option in the node and then figuring out a way to animate the value of that variable over time. But I don't know how to do this, and don't know if it would even work.



If it is possible, how can shape keys be animated?

(I have attached my .blend in case that makes things easier.)
shape_keys_test_a02.blend

Also, it always changes my mesh to smooth shading, even if I set it to flat shading. Can this be changed?

Thank you.
25 January 2016 08:09
Thanks, Evgeny. Yes, having more consistency leaves less possibility for confusion. For now I'm just happy that it works!
I will keep in mind that tip about checking the console.
24 January 2016 08:10
Never mind - I got it!

Had to use a Geometry node's UV output to specify the UV coordinates.



24 January 2016 05:38
I created a simple material in Blend4Web that has a color texture plugged into a Material node, and finally an Output node.



For some reason this renders in the Blender Internal engine, but not in Blend4Web.
In the Blend4Web Viewer the material just renders white.



Am I using some unsupported feature I am not aware of? Is this because of a bug? Or am I doing something else wrong?

color_cycle_a07.packed.blend

Using B4W v15.12, Blender 2.76b, OS X 10.6.8, tested on Firefox 43 and Chrome 47
Thanks in advance for any help.
23 January 2016 06:40
The different colors are used to pack different image in one file.
Oh and there another image packed in the Alpha channel !
I see… Clever. So this cuts down on texture file size significantly.
You get 4 greyscale textures represented in one RGBA image file.

The B4W_SMOOTHSTEP node seems to be controlling the animation. And I just found a YouTube video demonstrating what it does. Looks like it's more of a Fresnel or Facing type of effect than what I initially thought it was. Still studying…
23 January 2016 02:56
Hey, I noticed you've fixed it! Thanks, guys!
It's great to be able to geek out on Blend4Web during my daily commute to work.
And when I get email notifications I can check the thread right away. Awesome!
22 January 2016 18:42
I am studying the file: blend4web_sdk_free/blender/misc/logo.blend

The end result is awesome, but the material node setup looks pretty complicated.

I'm hoping somebody can explain to me at least what is happening here, so that I know what I'm looking at.

My best guess is that the multicolored texture is acting as a map for cycling through the color wheel, in a way that it produces light sliding around the cube… but I could be totally wrong.





Any help appreciated!