I'm using a volume scatter shader to render an atmosphere for a planet. To save on time I used a spherical gradient and ran it through a color ramp to get white only on the rims of the sphere. This was then fed into the density value of the volume scatter. When rendered it is behaving as if there are more, smaller spheres of volume inside of it. I'll attach images of my nodes and the results. Note: The atmosphere and planet are on separate render layers so I can apply a blur to the atmosphere without affecting the planet.

enter image description here here is the artifact across the entire planet

enter image description here here is the artifact up close

enter image description here here is the artifact without the planet

enter image description here here is the node setup for my atmosphere

enter image description here here is my compositor node setup

Solution found: Including my directional light in my atmosphere render layer fixed the issue, although I still don't know why. Does anyone know why having them separate would result in that artifact?


The artifact is probably due to the Color Ramp transition method Ease and the fact that your ramp control points are really close to each other. Even though this is inside the planet, it impacts your final render because of the 2 step compositing. I suggest trying B-Spline which should produce smoother transition.

enter image description here

An alternative is to use RGB Curve and play with the curve shape which may give you more control than the ramp for this purpose. Note the Vector Handle vs Auto Handle which impact the shape of the control point, respectively sharp and smooth.

enter image description here

  • $\begingroup$ I switched the lights off the render layer to test your suggestion in the same environment as my ease color ramp and the effect is still there. It seems to be tied to the lights being on a separate render layer. The B-spline ramp does make a much nicer looking falloff though, thank you for that insight. $\endgroup$ – Sudoadmin Mar 24 '18 at 14:54
  • $\begingroup$ OK good to know. Thx. $\endgroup$ – Bruno Mar 24 '18 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.