Decreasing star sizeHow do I repeat a gradient color ramp?Is there really a way to make a true toon shader...

Can two figures have the same area, perimeter, and same number of segments have different shape?

Spoken encryption

How can I stop myself from micromanaging other PCs' actions?

Why are all my history books dividing Chinese history after the Han dynasty?

Assuring luggage isn't lost with short layover

Does the Intel 8086 CPU have user mode and kernel mode?

Problem in styling a monochrome plot

Convert every file from JPEG to GIF in terminal

Is it legal to use cash pulled from a credit card to pay the monthly payment on that credit card?

What is AM-CM inequality?

Does academia have a lazy work culture?

Send a single HTML email from Thunderbird, overriding the default "plain text" setting

Character is called by their first initial. How do I write it?

Iterate over non-const variables in C++

Why isn't there a ";" after "do" in sh loops?

How can I prevent corporations from growing their own workforce?

Why are so many countries still in the Commonwealth?

How to avoid unconsciously copying the style of my favorite writer?

Is dd if=/dev/urandom of=/dev/mem safe?

Is a fighting a fallen friend with the help of a redeemed villain story too much for one book

Why does RPM for a fixed-pitch propeller change with an aircraft's pitch?

Unethical behavior : should I report it?

Integral of the integral using NIntegrate

Piece-drop Mate #2



Decreasing star size


How do I repeat a gradient color ramp?Is there really a way to make a true toon shader material in Cycles?Is there a way to separate colors from chained mix rgb nodes?Distance from the surface as an input node for use with volumetric materialsProcedural square shape in Cycles (with similar effect to Gaussian blur)Cycles: Apply gradient to light cone setup with spotlight lampColor ramp to bump mapIrregular shapes textureCycles Renderer: ColorRamp ignores previous Set Alpha nodeBrick texture with multiple colors






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







2












$begingroup$


I am creating a completely procedural space with some stars, nebula, etc. The stars are generated by a Voronoi texture hooked up to a Color ramp - a pretty usual approach as far as I know. I would like to decrease the amount of stars in the scene.



The Color ramp connected to the Voronoi texture has three colors inside it as follows:




  1. Black at position 0

  2. White at 0.001

  3. Black at 0.002


I have tried decreasing the amount of stars by setting the positions within the color ramp to lower values like 0, 0.0001 and 0.0002, but the amount of stars seems to stay the same.



I am fine with the size of the stars, I would like to just make fewer of them. Sadly, even after several hours of trying, I seem to be unable to achieve it. With that, I would be very grateful if anyone could give me some advice how to achieve this.



The node setup is below, the scene preview can be seen here Scene preview and the blend file is here Blender file. Using blender 2.8 with Cycles.



The node setup is pasted below:



enter image description here










share|improve this question









$endgroup$












  • $begingroup$
    A (noise texture + "less than") for the fac corresponding to the first add rgb which is at top center on the setting (the one receiving its inputs from the top left frame)
    $endgroup$
    – lemon
    8 hours ago






  • 2




    $begingroup$
    A noise texture which fac is clamped by a less than reduces the influence of the first input of the add rgb. i.stack.imgur.com/WanlH.jpg
    $endgroup$
    – lemon
    8 hours ago










  • $begingroup$
    Thank you! Just what I was trying to do! If you don't mind, post this as an answer so that I can mark it as the solution.
    $endgroup$
    – Ondrej
    8 hours ago


















2












$begingroup$


I am creating a completely procedural space with some stars, nebula, etc. The stars are generated by a Voronoi texture hooked up to a Color ramp - a pretty usual approach as far as I know. I would like to decrease the amount of stars in the scene.



The Color ramp connected to the Voronoi texture has three colors inside it as follows:




  1. Black at position 0

  2. White at 0.001

  3. Black at 0.002


I have tried decreasing the amount of stars by setting the positions within the color ramp to lower values like 0, 0.0001 and 0.0002, but the amount of stars seems to stay the same.



I am fine with the size of the stars, I would like to just make fewer of them. Sadly, even after several hours of trying, I seem to be unable to achieve it. With that, I would be very grateful if anyone could give me some advice how to achieve this.



The node setup is below, the scene preview can be seen here Scene preview and the blend file is here Blender file. Using blender 2.8 with Cycles.



The node setup is pasted below:



enter image description here










share|improve this question









$endgroup$












  • $begingroup$
    A (noise texture + "less than") for the fac corresponding to the first add rgb which is at top center on the setting (the one receiving its inputs from the top left frame)
    $endgroup$
    – lemon
    8 hours ago






  • 2




    $begingroup$
    A noise texture which fac is clamped by a less than reduces the influence of the first input of the add rgb. i.stack.imgur.com/WanlH.jpg
    $endgroup$
    – lemon
    8 hours ago










  • $begingroup$
    Thank you! Just what I was trying to do! If you don't mind, post this as an answer so that I can mark it as the solution.
    $endgroup$
    – Ondrej
    8 hours ago














2












2








2


1



$begingroup$


I am creating a completely procedural space with some stars, nebula, etc. The stars are generated by a Voronoi texture hooked up to a Color ramp - a pretty usual approach as far as I know. I would like to decrease the amount of stars in the scene.



The Color ramp connected to the Voronoi texture has three colors inside it as follows:




  1. Black at position 0

  2. White at 0.001

  3. Black at 0.002


I have tried decreasing the amount of stars by setting the positions within the color ramp to lower values like 0, 0.0001 and 0.0002, but the amount of stars seems to stay the same.



I am fine with the size of the stars, I would like to just make fewer of them. Sadly, even after several hours of trying, I seem to be unable to achieve it. With that, I would be very grateful if anyone could give me some advice how to achieve this.



The node setup is below, the scene preview can be seen here Scene preview and the blend file is here Blender file. Using blender 2.8 with Cycles.



The node setup is pasted below:



enter image description here










share|improve this question









$endgroup$




I am creating a completely procedural space with some stars, nebula, etc. The stars are generated by a Voronoi texture hooked up to a Color ramp - a pretty usual approach as far as I know. I would like to decrease the amount of stars in the scene.



The Color ramp connected to the Voronoi texture has three colors inside it as follows:




  1. Black at position 0

  2. White at 0.001

  3. Black at 0.002


I have tried decreasing the amount of stars by setting the positions within the color ramp to lower values like 0, 0.0001 and 0.0002, but the amount of stars seems to stay the same.



I am fine with the size of the stars, I would like to just make fewer of them. Sadly, even after several hours of trying, I seem to be unable to achieve it. With that, I would be very grateful if anyone could give me some advice how to achieve this.



The node setup is below, the scene preview can be seen here Scene preview and the blend file is here Blender file. Using blender 2.8 with Cycles.



The node setup is pasted below:



enter image description here







cycles nodes world






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 9 hours ago









OndrejOndrej

1186 bronze badges




1186 bronze badges












  • $begingroup$
    A (noise texture + "less than") for the fac corresponding to the first add rgb which is at top center on the setting (the one receiving its inputs from the top left frame)
    $endgroup$
    – lemon
    8 hours ago






  • 2




    $begingroup$
    A noise texture which fac is clamped by a less than reduces the influence of the first input of the add rgb. i.stack.imgur.com/WanlH.jpg
    $endgroup$
    – lemon
    8 hours ago










  • $begingroup$
    Thank you! Just what I was trying to do! If you don't mind, post this as an answer so that I can mark it as the solution.
    $endgroup$
    – Ondrej
    8 hours ago


















  • $begingroup$
    A (noise texture + "less than") for the fac corresponding to the first add rgb which is at top center on the setting (the one receiving its inputs from the top left frame)
    $endgroup$
    – lemon
    8 hours ago






  • 2




    $begingroup$
    A noise texture which fac is clamped by a less than reduces the influence of the first input of the add rgb. i.stack.imgur.com/WanlH.jpg
    $endgroup$
    – lemon
    8 hours ago










  • $begingroup$
    Thank you! Just what I was trying to do! If you don't mind, post this as an answer so that I can mark it as the solution.
    $endgroup$
    – Ondrej
    8 hours ago
















$begingroup$
A (noise texture + "less than") for the fac corresponding to the first add rgb which is at top center on the setting (the one receiving its inputs from the top left frame)
$endgroup$
– lemon
8 hours ago




$begingroup$
A (noise texture + "less than") for the fac corresponding to the first add rgb which is at top center on the setting (the one receiving its inputs from the top left frame)
$endgroup$
– lemon
8 hours ago




2




2




$begingroup$
A noise texture which fac is clamped by a less than reduces the influence of the first input of the add rgb. i.stack.imgur.com/WanlH.jpg
$endgroup$
– lemon
8 hours ago




$begingroup$
A noise texture which fac is clamped by a less than reduces the influence of the first input of the add rgb. i.stack.imgur.com/WanlH.jpg
$endgroup$
– lemon
8 hours ago












$begingroup$
Thank you! Just what I was trying to do! If you don't mind, post this as an answer so that I can mark it as the solution.
$endgroup$
– Ondrej
8 hours ago




$begingroup$
Thank you! Just what I was trying to do! If you don't mind, post this as an answer so that I can mark it as the solution.
$endgroup$
– Ondrej
8 hours ago










2 Answers
2






active

oldest

votes


















3












$begingroup$

A noise texture which fac is clamped by a less than reduces the influence of the second input of the add rgb.



enter image description here



More generally:



A noise texture is kind of random pixels, specially at high scale. From that, if we clamp its result by a less than or greater than (or colorramp), then you will pick a partial amount of this randomness.



In particular here, that gives us less stars.






share|improve this answer









$endgroup$





















    2












    $begingroup$

    I'm not sure I can justify every node here mathematically.. top row power node, adjusts variance in star size, multiply node maps into the threshold given by the color ramp... they all interact, but I've found it quite controllable...



    enter image description here



    ...but it's the bottom row, which colors the stars and multiplies the color with the greyscale generated by the top row that gives control over making stars appear or disappear randomly, according to how many of them you color black.



    The color of the stars, before mapping, is provided by the random color/factor provided by Voronoi cells, each of which contains 1 star, so long as the texture space of the Cells and Distance Voronoi textures is the same.



    With a lot mapped to black:



    enter image description here



    With fewer mapped to black:



    enter image description here



    Which does the job without changing the star size or position.



    enter image description here






    share|improve this answer











    $endgroup$
















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


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fblender.stackexchange.com%2fquestions%2f146565%2fdecreasing-star-size%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$

      A noise texture which fac is clamped by a less than reduces the influence of the second input of the add rgb.



      enter image description here



      More generally:



      A noise texture is kind of random pixels, specially at high scale. From that, if we clamp its result by a less than or greater than (or colorramp), then you will pick a partial amount of this randomness.



      In particular here, that gives us less stars.






      share|improve this answer









      $endgroup$


















        3












        $begingroup$

        A noise texture which fac is clamped by a less than reduces the influence of the second input of the add rgb.



        enter image description here



        More generally:



        A noise texture is kind of random pixels, specially at high scale. From that, if we clamp its result by a less than or greater than (or colorramp), then you will pick a partial amount of this randomness.



        In particular here, that gives us less stars.






        share|improve this answer









        $endgroup$
















          3












          3








          3





          $begingroup$

          A noise texture which fac is clamped by a less than reduces the influence of the second input of the add rgb.



          enter image description here



          More generally:



          A noise texture is kind of random pixels, specially at high scale. From that, if we clamp its result by a less than or greater than (or colorramp), then you will pick a partial amount of this randomness.



          In particular here, that gives us less stars.






          share|improve this answer









          $endgroup$



          A noise texture which fac is clamped by a less than reduces the influence of the second input of the add rgb.



          enter image description here



          More generally:



          A noise texture is kind of random pixels, specially at high scale. From that, if we clamp its result by a less than or greater than (or colorramp), then you will pick a partial amount of this randomness.



          In particular here, that gives us less stars.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 8 hours ago









          lemonlemon

          18.6k1 gold badge19 silver badges55 bronze badges




          18.6k1 gold badge19 silver badges55 bronze badges

























              2












              $begingroup$

              I'm not sure I can justify every node here mathematically.. top row power node, adjusts variance in star size, multiply node maps into the threshold given by the color ramp... they all interact, but I've found it quite controllable...



              enter image description here



              ...but it's the bottom row, which colors the stars and multiplies the color with the greyscale generated by the top row that gives control over making stars appear or disappear randomly, according to how many of them you color black.



              The color of the stars, before mapping, is provided by the random color/factor provided by Voronoi cells, each of which contains 1 star, so long as the texture space of the Cells and Distance Voronoi textures is the same.



              With a lot mapped to black:



              enter image description here



              With fewer mapped to black:



              enter image description here



              Which does the job without changing the star size or position.



              enter image description here






              share|improve this answer











              $endgroup$


















                2












                $begingroup$

                I'm not sure I can justify every node here mathematically.. top row power node, adjusts variance in star size, multiply node maps into the threshold given by the color ramp... they all interact, but I've found it quite controllable...



                enter image description here



                ...but it's the bottom row, which colors the stars and multiplies the color with the greyscale generated by the top row that gives control over making stars appear or disappear randomly, according to how many of them you color black.



                The color of the stars, before mapping, is provided by the random color/factor provided by Voronoi cells, each of which contains 1 star, so long as the texture space of the Cells and Distance Voronoi textures is the same.



                With a lot mapped to black:



                enter image description here



                With fewer mapped to black:



                enter image description here



                Which does the job without changing the star size or position.



                enter image description here






                share|improve this answer











                $endgroup$
















                  2












                  2








                  2





                  $begingroup$

                  I'm not sure I can justify every node here mathematically.. top row power node, adjusts variance in star size, multiply node maps into the threshold given by the color ramp... they all interact, but I've found it quite controllable...



                  enter image description here



                  ...but it's the bottom row, which colors the stars and multiplies the color with the greyscale generated by the top row that gives control over making stars appear or disappear randomly, according to how many of them you color black.



                  The color of the stars, before mapping, is provided by the random color/factor provided by Voronoi cells, each of which contains 1 star, so long as the texture space of the Cells and Distance Voronoi textures is the same.



                  With a lot mapped to black:



                  enter image description here



                  With fewer mapped to black:



                  enter image description here



                  Which does the job without changing the star size or position.



                  enter image description here






                  share|improve this answer











                  $endgroup$



                  I'm not sure I can justify every node here mathematically.. top row power node, adjusts variance in star size, multiply node maps into the threshold given by the color ramp... they all interact, but I've found it quite controllable...



                  enter image description here



                  ...but it's the bottom row, which colors the stars and multiplies the color with the greyscale generated by the top row that gives control over making stars appear or disappear randomly, according to how many of them you color black.



                  The color of the stars, before mapping, is provided by the random color/factor provided by Voronoi cells, each of which contains 1 star, so long as the texture space of the Cells and Distance Voronoi textures is the same.



                  With a lot mapped to black:



                  enter image description here



                  With fewer mapped to black:



                  enter image description here



                  Which does the job without changing the star size or position.



                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 6 hours ago

























                  answered 7 hours ago









                  Robin BettsRobin Betts

                  11.3k1 gold badge12 silver badges40 bronze badges




                  11.3k1 gold badge12 silver badges40 bronze badges






























                      draft saved

                      draft discarded




















































                      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%2f146565%2fdecreasing-star-size%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

                      Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                      Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                      Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...