Using the node editor and Cycles, how can I define a material that looks like a torus? This is useful in order to render a really smooth torus, without needing to a bazillion vertices.


This can be achieved by using the following node setup:

enter image description here

The formula which I implemented in order to achieve this can be found in the Wikipedia article for Torus. Note that this only works for tori whose big radius is greater than or equal to it's small radius.

| improve this answer | |
  • $\begingroup$ I don't see how this renders a smooth torus? If I add scatter and really small step size I don't get a smooth torus. What is the advantage of this? Is this somehow better than torus from verts? $\endgroup$ – Jaroslav Jerryno Novotny Feb 15 '15 at 22:20
  • $\begingroup$ @Jerryno Mainly, it's more fun :D What do you mean? it looks fine with an emission shader... Also, I think you get a lower memory usage as well... $\endgroup$ – someonewithpc Feb 15 '15 at 22:23
  • $\begingroup$ Well with emission its fine but I was looking forward to make a volumetric smooth shaded torus, no luck yet still fiddling with this.. $\endgroup$ – Jaroslav Jerryno Novotny Feb 15 '15 at 22:28
  • $\begingroup$ Wait, it works fine for me! How are you connecting the setup? $\endgroup$ – someonewithpc Feb 15 '15 at 22:30
  • $\begingroup$ Yup, and also multiplied it a lot to get a solid surface, then set step size to 0.001 $\endgroup$ – Jaroslav Jerryno Novotny Feb 15 '15 at 22:32

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.