Need Bar Animation Gradient Fixed





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1












$begingroup$


I have searched all over the Internet and here, but no success. I am relatively new to Blender, only used it a few months so far.



The project I'm working on is a Bar Chart. In the scene the bars are cubes with their top faces Hooked to an Empty that is animated via Python.



What I need is a way to fix the gradient position across all bars. As they grow taller, they reveal more of that gradient.



This image I made in illustrator to give you a better idea.
Illustrated Bar Example










share|improve this question







New contributor




rlee3dcad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$



















    1












    $begingroup$


    I have searched all over the Internet and here, but no success. I am relatively new to Blender, only used it a few months so far.



    The project I'm working on is a Bar Chart. In the scene the bars are cubes with their top faces Hooked to an Empty that is animated via Python.



    What I need is a way to fix the gradient position across all bars. As they grow taller, they reveal more of that gradient.



    This image I made in illustrator to give you a better idea.
    Illustrated Bar Example










    share|improve this question







    New contributor




    rlee3dcad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$















      1












      1








      1





      $begingroup$


      I have searched all over the Internet and here, but no success. I am relatively new to Blender, only used it a few months so far.



      The project I'm working on is a Bar Chart. In the scene the bars are cubes with their top faces Hooked to an Empty that is animated via Python.



      What I need is a way to fix the gradient position across all bars. As they grow taller, they reveal more of that gradient.



      This image I made in illustrator to give you a better idea.
      Illustrated Bar Example










      share|improve this question







      New contributor




      rlee3dcad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      I have searched all over the Internet and here, but no success. I am relatively new to Blender, only used it a few months so far.



      The project I'm working on is a Bar Chart. In the scene the bars are cubes with their top faces Hooked to an Empty that is animated via Python.



      What I need is a way to fix the gradient position across all bars. As they grow taller, they reveal more of that gradient.



      This image I made in illustrator to give you a better idea.
      Illustrated Bar Example







      animation mesh shaders






      share|improve this question







      New contributor




      rlee3dcad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      rlee3dcad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      rlee3dcad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked yesterday









      rlee3dcadrlee3dcad

      82




      82




      New contributor




      rlee3dcad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      rlee3dcad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      rlee3dcad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          2 Answers
          2






          active

          oldest

          votes


















          3












          $begingroup$

          Maybe try using a texture coordinate that is constant like Camera or Window -here I just did a rough try at it for illustration purposes.
          enter image description here






          share|improve this answer









          $endgroup$









          • 1




            $begingroup$
            Wow. That's exactly what I needed. I set it to Text. Coords. as Window and then animated the bars. The gradient stays fixed as I wanted. Thank you so much!
            $endgroup$
            – rlee3dcad
            yesterday



















          4












          $begingroup$

          This is a solution based on the world position in relation to the object. You can adjust the height by changing the denominator on the math-divide node.



          enter image description here






          share|improve this answer









          $endgroup$













          • $begingroup$
            Thank you for the suggestion. It makes sense, however unfortunately I can't recreate that scenario. I'm using Blender version 2.79 at work and cannot install the newer one yet. :P
            $endgroup$
            – rlee3dcad
            yesterday






          • 1




            $begingroup$
            You should be able to do the same with cycles in 2.79. The nodes used are not 2.80 specific.
            $endgroup$
            – Jackdaw
            yesterday












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "502"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          rlee3dcad is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fblender.stackexchange.com%2fquestions%2f137311%2fneed-bar-animation-gradient-fixed%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3












          $begingroup$

          Maybe try using a texture coordinate that is constant like Camera or Window -here I just did a rough try at it for illustration purposes.
          enter image description here






          share|improve this answer









          $endgroup$









          • 1




            $begingroup$
            Wow. That's exactly what I needed. I set it to Text. Coords. as Window and then animated the bars. The gradient stays fixed as I wanted. Thank you so much!
            $endgroup$
            – rlee3dcad
            yesterday
















          3












          $begingroup$

          Maybe try using a texture coordinate that is constant like Camera or Window -here I just did a rough try at it for illustration purposes.
          enter image description here






          share|improve this answer









          $endgroup$









          • 1




            $begingroup$
            Wow. That's exactly what I needed. I set it to Text. Coords. as Window and then animated the bars. The gradient stays fixed as I wanted. Thank you so much!
            $endgroup$
            – rlee3dcad
            yesterday














          3












          3








          3





          $begingroup$

          Maybe try using a texture coordinate that is constant like Camera or Window -here I just did a rough try at it for illustration purposes.
          enter image description here






          share|improve this answer









          $endgroup$



          Maybe try using a texture coordinate that is constant like Camera or Window -here I just did a rough try at it for illustration purposes.
          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          Craig D JonesCraig D Jones

          5,81611028




          5,81611028








          • 1




            $begingroup$
            Wow. That's exactly what I needed. I set it to Text. Coords. as Window and then animated the bars. The gradient stays fixed as I wanted. Thank you so much!
            $endgroup$
            – rlee3dcad
            yesterday














          • 1




            $begingroup$
            Wow. That's exactly what I needed. I set it to Text. Coords. as Window and then animated the bars. The gradient stays fixed as I wanted. Thank you so much!
            $endgroup$
            – rlee3dcad
            yesterday








          1




          1




          $begingroup$
          Wow. That's exactly what I needed. I set it to Text. Coords. as Window and then animated the bars. The gradient stays fixed as I wanted. Thank you so much!
          $endgroup$
          – rlee3dcad
          yesterday




          $begingroup$
          Wow. That's exactly what I needed. I set it to Text. Coords. as Window and then animated the bars. The gradient stays fixed as I wanted. Thank you so much!
          $endgroup$
          – rlee3dcad
          yesterday













          4












          $begingroup$

          This is a solution based on the world position in relation to the object. You can adjust the height by changing the denominator on the math-divide node.



          enter image description here






          share|improve this answer









          $endgroup$













          • $begingroup$
            Thank you for the suggestion. It makes sense, however unfortunately I can't recreate that scenario. I'm using Blender version 2.79 at work and cannot install the newer one yet. :P
            $endgroup$
            – rlee3dcad
            yesterday






          • 1




            $begingroup$
            You should be able to do the same with cycles in 2.79. The nodes used are not 2.80 specific.
            $endgroup$
            – Jackdaw
            yesterday
















          4












          $begingroup$

          This is a solution based on the world position in relation to the object. You can adjust the height by changing the denominator on the math-divide node.



          enter image description here






          share|improve this answer









          $endgroup$













          • $begingroup$
            Thank you for the suggestion. It makes sense, however unfortunately I can't recreate that scenario. I'm using Blender version 2.79 at work and cannot install the newer one yet. :P
            $endgroup$
            – rlee3dcad
            yesterday






          • 1




            $begingroup$
            You should be able to do the same with cycles in 2.79. The nodes used are not 2.80 specific.
            $endgroup$
            – Jackdaw
            yesterday














          4












          4








          4





          $begingroup$

          This is a solution based on the world position in relation to the object. You can adjust the height by changing the denominator on the math-divide node.



          enter image description here






          share|improve this answer









          $endgroup$



          This is a solution based on the world position in relation to the object. You can adjust the height by changing the denominator on the math-divide node.



          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          JackdawJackdaw

          1,386213




          1,386213












          • $begingroup$
            Thank you for the suggestion. It makes sense, however unfortunately I can't recreate that scenario. I'm using Blender version 2.79 at work and cannot install the newer one yet. :P
            $endgroup$
            – rlee3dcad
            yesterday






          • 1




            $begingroup$
            You should be able to do the same with cycles in 2.79. The nodes used are not 2.80 specific.
            $endgroup$
            – Jackdaw
            yesterday


















          • $begingroup$
            Thank you for the suggestion. It makes sense, however unfortunately I can't recreate that scenario. I'm using Blender version 2.79 at work and cannot install the newer one yet. :P
            $endgroup$
            – rlee3dcad
            yesterday






          • 1




            $begingroup$
            You should be able to do the same with cycles in 2.79. The nodes used are not 2.80 specific.
            $endgroup$
            – Jackdaw
            yesterday
















          $begingroup$
          Thank you for the suggestion. It makes sense, however unfortunately I can't recreate that scenario. I'm using Blender version 2.79 at work and cannot install the newer one yet. :P
          $endgroup$
          – rlee3dcad
          yesterday




          $begingroup$
          Thank you for the suggestion. It makes sense, however unfortunately I can't recreate that scenario. I'm using Blender version 2.79 at work and cannot install the newer one yet. :P
          $endgroup$
          – rlee3dcad
          yesterday




          1




          1




          $begingroup$
          You should be able to do the same with cycles in 2.79. The nodes used are not 2.80 specific.
          $endgroup$
          – Jackdaw
          yesterday




          $begingroup$
          You should be able to do the same with cycles in 2.79. The nodes used are not 2.80 specific.
          $endgroup$
          – Jackdaw
          yesterday










          rlee3dcad is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          rlee3dcad is a new contributor. Be nice, and check out our Code of Conduct.













          rlee3dcad is a new contributor. Be nice, and check out our Code of Conduct.












          rlee3dcad is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Blender Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fblender.stackexchange.com%2fquestions%2f137311%2fneed-bar-animation-gradient-fixed%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          數位音樂下載

          When can things happen in Etherscan, such as the picture below?

          格利澤436b