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.

Cycle between 3 (or more) materials by clicking 1 button.

Home Forums Puzzles Cycle between 3 (or more) materials by clicking 1 button.

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #37752
    anigizle
    Participant

    Hi everyone,

    I am currently working on a modular apartment in Blender / Verge3D and everything works out fine! But I’m having one problem that I can’t fix…

    In my scene there stands a television. On the tv is an image displayed and I am wondering if it’s possible to cycle between the image on the tv by changing the texture/material by clicking one button.

    Conclusion:

    The tv has a pulsating button besides it and when I click the button the texture should change to “texture2”. When I click it again the textures changes to “texture3” and when you click it again it should change back to “texture1” and so on.

    Is there anybody out there who has a solution for me how I can fix this?

    Thanks you all in advance!

    Greetings Agniz.

    #37754

    You can create a list of materials and then shift an index + 1 of the list to get next the material with Get From the List puzzle.

    Co-founder and lead graphics specialist at Soft8Soft.

    #37755
    anigizle
    Participant

    Thanks a lot for your fast reply! But I’m still stucked… I am wondering if maybe you can give me a visual example?

    #37756
    hasanyluthfi
    Participant

    cycling texture between 3 image can be achieved by something like this.
    ignore the naming. the explanation is you give current state as variable “material” and mark it as 1.
    because there’s logic puzzle that’s detect what mark is assigned to the variable “material”, it will change according to what mark is assigned to that variable “material”.

    Attachments:
    You must be logged in to view attached files.
    #37759
    anigizle
    Participant

    cycling texture between 3 image can be achieved by something like this. ignore the naming. the explanation is you give current state as variable “material” and mark it as 1. because there’s logic puzzle that’s detect what mark is assigned to the variable “material”, it will change according to what mark is assigned to that variable “material”.

    Thanks hasanyluthfi. The problem that I have during this puzzle is when “TV_NorthernLights” is shown you must click the button twice and then it skips the “TV_skyscrapers”.. So the cycle isn’t completely working…

    Attachments:
    You must be logged in to view attached files.
    #37768
    hasanyluthfi
    Participant

    maybe check your material?, just in case your TV_NorthernLights have same texture as TV_skyscrapers.
    and why not use change texture puzzle instead?

    #37791
    anigizle
    Participant

    maybe check your material?, just in case your TV_NorthernLights have same texture as TV_skyscrapers. and why not use change texture puzzle instead?

    Thanks hasanyluthfi the method of replacing textures fixed it!

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