We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Driver Expressions for Animations in Blender – #frame

Home Forums Graphics / Blender Driver Expressions for Animations in Blender – #frame

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #63247
    Mariusz
    Customer

    Hi guys!

    I need to use driver expression #frame in Blender shader node to achieve some infinite animation loops in shader effects. But it doesn’t work in Verge3D. Is there any way to walkaround this?

    I mean this effect: https://www.youtube.com/watch?v=9cX9GKry9ns

    #63249
    kdv
    Participant

    What do you want to get exactly and where? Infinite animation loops can be easily created without #frame

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #63250
    Mariusz
    Customer

    I need to create the “connection lines” that represent the energy flow. I have a thin cylinder mesh, and thanks to the shader from the image below I can slide the glowing effect along it. In the circled value I can type #frame and it perfectly animates the flow in Blender. But unfortunately, it doesn’t work in Verge3D. I also tried to set up this value via puzzle but it requires a number input and rejects the # symbol.

    Attachments:
    You must be logged in to view attached files.
    #63252
    kdv
    Participant

    So what’s the problem? Just animate that Value node using key frames and it will work in Verge3D.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #63259
    Mariusz
    Customer

    I know I can do that, but this solution doesn’t create a perfect loop. Also, in other shaders, I would like to use the #frame instead of keyframes, so I’m trying to figure out if it’s possible to use it in Verge.
    The problem with keyframes is that they end at some point. And even if the animation is looped, when the keyframes end and the animation is played again, there is a sudden “jump” in the visual effect (when it comes back to the first frame). I try to avoid this “jump”, so the #frame solution seems to be the best. But I guess I need to find another walkaround unless someone knows the answer on how to use “#frame” in Verge.

    #63263
    kdv
    Participant

    so the #frame solution seems to be the best

    In fact, it’s the worst solution. You’ll have to create a new exporter which will export the inner Blender’s python-based logic for drivers to glTF. And a new glTF importer to make it work in three.js/v3d.js.

    but this solution doesn’t create a perfect loop.

    It does

    there is a sudden “jump” in the visual effect

    With the correct end position you won’t even see this “jump”
    https://v3d.net/iqo

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #63278

    I know I can do that, but this solution doesn’t create a perfect loop. Also, in other shaders, I would like to use the #frame instead of keyframes, so I’m trying to figure out if it’s possible to use it in Verge.
    The problem with keyframes is that they end at some point. And even if the animation is looped, when the keyframes end and the animation is played again, there is a sudden “jump” in the visual effect (when it comes back to the first frame). I try to avoid this “jump”, so the #frame solution seems to be the best. But I guess I need to find another walkaround unless someone knows the answer on how to use “#frame” in Verge.

    Can you share the blend file? I’ll look what can be done. Unfrotunally w have no plans to support drivers, it would be too complex soluition for such basic tasks like looping animation.

    Co-founder and lead graphics specialist at Soft8Soft.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.