4
$\begingroup$

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.

$\endgroup$

1 Answer 1

8
$\begingroup$

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.

$\endgroup$
8
  • $\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$ Commented Feb 15, 2015 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$ Commented Feb 15, 2015 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$ Commented Feb 15, 2015 at 22:28
  • $\begingroup$ Wait, it works fine for me! How are you connecting the setup? $\endgroup$ Commented Feb 15, 2015 at 22:30
  • $\begingroup$ Yup, and also multiplied it a lot to get a solid surface, then set step size to 0.001 $\endgroup$ Commented Feb 15, 2015 at 22:32

You must log in to answer this question.

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