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
    doehlma
    Customer

    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
    GLiFTeK
    Customer

    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-)

    #25604
    doehlma
    Customer

    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
    doehlma
    Customer

    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:

    #25638

    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.

    Chief 3D Verger | LinkedIn | Twitter

    #25641
    doehlma
    Customer

    Hello Yuri,

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

    #25652
    doehlma
    Customer

    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

    #25666

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

    Chief 3D Verger | LinkedIn | Twitter

    #25701
    GLiFTeK
    Customer

    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

    #25708
    doehlma
    Customer

    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
    doehlma
    Customer

    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

    #25730

    glad you worked it out! :good:

    Chief 3D Verger | LinkedIn | Twitter

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