0
$\begingroup$

Is there a way to create procedural stars using nodes? I learnt a few days ago, how to make stars for the background using nodes set up, but what I'd like to know is if it's possible to make scattered stars from a mesh.

$\endgroup$

1 Answer 1

4
$\begingroup$

You can create the stars with icosphere and this kind of material (mix between Emission and Transparent nodes with a Layer Weight as factor, remember to choose Alpha Blend in the Material Settings > Blend Mode):

enter image description here

Then create a cube, give it a Particle System / Hair, Emit From > Volume, with the icosphere as render object, give it scale randomness, disable the Show Emitter option, or give your cube a transparent shader.

enter image description here

At last, give it a glare effect in the Compositor:

enter image description here

$\endgroup$
8
  • $\begingroup$ Worked well, but how did you get your cube opaque? I can still see my one. ibb.co/KwfX8WW $\endgroup$ Commented Jun 30, 2021 at 11:23
  • $\begingroup$ you can either disable Show Emitter in the Particle panel, or choose a transparent material (don't forget to choose Alpha Blend in the Material Settings, like for the stars) $\endgroup$
    – moonboots
    Commented Jun 30, 2021 at 11:26
  • $\begingroup$ Unchecking the shower Emitter didn't fully work, until I googled this here as well: blender.stackexchange.com/questions/129173/… $\endgroup$ Commented Jun 30, 2021 at 11:32
  • $\begingroup$ mmh ok, it works for me though, I don't know what's happening $\endgroup$
    – moonboots
    Commented Jun 30, 2021 at 11:35
  • 1
    $\begingroup$ In regards to moonboots answer - to make the cube transparent, make sure you uncheck show emitter in both render and view port tabs $\endgroup$ Commented Mar 9, 2023 at 20:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .