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.

Ramp colour change of object

Home Forums Puzzles Ramp colour change of object

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #25575
    Avatardoehlma
    Licensee

    Hello,

    I created Blender and also Verge3D File with condition ->

    2 Cubes (1 white / 1 blue)

    I defined in Puzzles that when the blue cube is moving in x-direction
    a defined value -> the white cube change to the colour from the blue

    But that is for me to digital..

    What I have to define in Puzzles that the colour change will be
    in a kind of colour ramp ?? :unsure:

    #25593
    GlifTekGlifTek
    Licensee

    use the animation puzzle with the set color puzzle

    you can use numbers puzzles to change the R G B values..

    also, back in blender, you can plug a value node into the “fac” input of a mix rgb or mix shader node, name it it’s NAME field (right panel in node editor).
    then you can use that NAME in animation puzzles using “updated value puzzle” (very important puzzle) IN whatever’s animating.

    here’s the user manual for animating materials etc…

    then under that, next step up, procedural animation

    if you want to activate those animations on input…
    then.. put those animation puzzles in a procedure puzzle (use these for everything they are “functions”, the “blocks” javascript scripts are made of mostly.

    … then put procedure link (right click procedure to get it) in the “then” (empty space inside of) “if logic puzzles”

    or when clicked puzzles..

    or you can put those animations just inside the if/ then logic puzzle. (better in procedure for control and future use/re-use)

    (lol k done editing my mistakes a million times)
    ENJOY! B-)

    • This reply was modified 1 month, 3 weeks ago by GlifTekGlifTek.
    #25604
    Avatardoehlma
    Licensee

    First of all many thanks for quick response and detailed hints :good:

    Looks like you have a lot of more experience as myself, about which I´m very happy.
    Is it possible for you adn your time to create and send me a example puzzle as guideline for my next project steps ?

    That would be a very big help for me…

    Thanks id advance for your support.. :bye:

    #25631
    Avatardoehlma
    Licensee

    Hello once again,

    you can see in my attachments my actual project status.

    When you move the blue cube right or left over x coordinate 6 the
    white cube change his colour also to blue like the moving cube.(but digital)

    GlifTek tried to explain and show me the way hoew I can solve in puzzels to
    get a steady transition of colors..

    But I´m beginner, sorry, and maybe is somebody who can define me the puzzle for my target ?

    All your inputs and ideas are welcome :bye:

    Attachments:
    You must be logged in to view attached files.
    #25638
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    you almost did it. Now you just need to set your ‘mixer’ node value using this puzzle, depending on the X coordinate of the cube.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #25641
    Avatardoehlma
    Licensee

    Hello Yuri,

    this I thought also.. but see in attachment.. there is no “mixer” node
    selectable ?
    :unsure:

    Attachments:
    You must be logged in to view attached files.
    #25652
    Avatardoehlma
    Licensee

    Hello Yuri,

    I think I solved the problem myself…
    Now after I unmarked in Blender material Verge3D settings the buttons like in attachment .. I got the node “Farbmix” in my puzzle…

    Only one question at last.. HOW and WHAT I have to define in puzzles, that
    I get a increasing or decreasing color change at x-coordinate +/- 6 ???

    Actual it is digital..

    Best regards

    Attachments:
    You must be logged in to view attached files.
    #25666
    Yuri KovelenovYuri Kovelenov
    Developer

    you should convert the current X coordinate of your cube to the mix factor, using some simple math

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #25701
    GlifTekGlifTek
    Licensee

    Use the animation puzzle, animate the Farbmix node’s value with the cube x value

    Very simple, once you get the hang of it.

    I’ll try to find an example I have

    • This reply was modified 1 month, 2 weeks ago by GlifTekGlifTek.
    #25708
    Avatardoehlma
    Licensee

    Hello GlifTek,

    please excuse my maybe for you simple questions.. but I´m absolut beginner

    I will try to combine the animation puzzle..

    But if you will find additional example.. I would be happy :-)

    #25711
    Avatardoehlma
    Licensee

    Hello my helpers,

    after cleaning my brain and come down .. I got the solution .. Hooray :yahoo:

    Thanks to Yuri and GlifTek for your instantly support.. :good:

    .. and still happy Easter

    Attachments:
    You must be logged in to view attached files.
    #25730
    Yuri KovelenovYuri Kovelenov
    Developer

    glad you worked it out! :good:

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.