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.

How to create a smooth transition effect between multiple textures?

Home Forums General Questions How to create a smooth transition effect between multiple textures?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #68434
    guoyong0318
    Participant

    I can use Mix node, but it only supports 2 textures

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

    Use Mix Shader or Mix Colors (it doesn’t much matter)

    You just need to animate Fac from 0 to 1 or from 1 to 0 after replacing one of two textures. The point is to replace the “invisible” texture and animate the mix factor from the current texture to the new one.

    Something like that https://v3d.net/q0m

    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.

    #68443
    guoyong0318
    Participant

    Thanks for your reply, but I have more than 2 textures and I want to change textures in the runtime, for example, when animating mix from 0 to 1, texture01 will be covered by texture02 then I want to replace texture01 with texture03, so I can animate mix from 1 to 0 to show texture03.

    #68444
    guoyong0318
    Participant

    BTW, I can’t use multiple mix nodes in Blender because I want to change and extend texture libs without re-exporting the glb file.

    #68445
    kdv
    Participant

    when animating mix from 0 to 1, texture01 will be covered by texture02 then I want to replace texture01 with texture03, so I can animate mix from 1 to 0 to show texture03.

    So, what’s the problem? Read Value, use logic and animate Valueaccording to its current state. If 0 – replace the second texture and animate Value from 0 to 1, else replace the first texture and animate Value from 1 to 0.

    BTW, I can’t use multiple mix nodes in Blender

    There’s no need in it. It’s possible to cycle through several textures using only one Mix node (in that demo I used a list of three textures).

    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.

    #68456
    guoyong0318
    Participant

    yes, I can replace texture01 with texture03, but it looks like the texture01 in the replace texture node is not a variable, so I can‘t replace texture03 with texture05 :unsure:

    #68458
    kdv
    Participant

    Names of textures in your material won’t change. It will be always “texture01” and “texture02” after each replacing. Only image data is changed, names remain the same.

    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.

    #68465
    guoyong0318
    Participant

    I’ll try it,thank you very much!

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