I've created a torus function for my 3D flame raytracer.
This flame has 2 transforms placed carefully both equally weighted to show the workings of the function
This flame has 2 transforms placed carefully both equally weighted to show the workings of the function
:origin()/pre00/b947/th/pre/i/2006/310/c/3/torusfn_001_by_casteeld.jpg)
- I like how you can see through the red torus to the shadow below it.
- It looks just a little like a 3D projection of a quaternion julia set.
Thanks for your comments
I recommend implementing a port of "spherical" of course:
R = x^2 + y^2 + z^2 + 1e-8 // to prevent div-by-zero
x' = x / R
y' = y / R
z' = z / R
. . . yeah, I know you know the math already . . . just putting it to make 100% clear
Thanks