• deu
  • esp
  • fra
  • ita
  • por
  • rss-icon
  • facebook-icon
  • googleplus-icon
  • youtube-icon
  • twitter-icon

How to add stars background with Cycles in Blender [ENG]

In this tutorial, we'll talk about how to add stars to background with Cycles in Blender; in fact, especially for those who used Blender Internal the absence of the option, that once allowed to automatically create a group of stars on a black background, can be considered a lack.

internal setting 0

How to create stars with the Cycles rendering engine in order to have a similar result? As usual, the nodes help us.
If we talk about the background, we immediately think of the "World" environment; therefore we select the relative card and we create a material that will have to represent the stars, selecting "Use Nodes".
In the Node Editor bar we will then select in the bar

settings bar

and at the beginning we visualize

cycles stars settings 0

How to proceed? The distant stars are more or less like dots, then, to represent them, we immediately think about the noise on the screen of an old analog TV and then by instinct we use the Texture > Noise Texture node, to create a series of points with distribution random

cycles stars settings 1

But it is not the result we expected, both because it is a set of spots, not points, and because it is colored instead of black and white.
We therefore increase the value of Scale and change the value of Detail to derive a set of points



To filter and get the white dots, representing the stars, we use the Converter > ColorRamp node that allows both to transform a black and white image, as we can see in the example,

cycles stars photo filter 1

that to isolate the parts lighter part

cycles stars photo filter 2

then apply the node to our cloud of points and we will get our starry sky

cycles stars settings 3

adding a colorstop to the ColorRamp color band we can easily increase or decrease the number of stars present, modifying the "light intensity"

cycles stars settings 4

Some variations on the theme:
By changing the values of Scale, Detail, Distortion and the position of the cursors in the ColorRamp we can "increase" the size of the stars and "distance them", as if we had approached

cycles stars settings 5

Then remember that for the values of Noise Texture you can set keyframes (can be recalled by clicking with the right mouse button), thus allowing also animations

cycles stars settings 6

If you liked the article, share it with a friend:

Did you like the tutorial?

Vote:

Write a suggestion/comment or request a new tutorial:

Send the vote and the suggestion

Data sent, thank you for your participation!