View Single Post
Old 18th August 2004, 07:17   #6
Junior Member
vanderphunck's Avatar
Join Date: Jul 2004
Location: Finland
Posts: 47
for a simple tunnel effect you'd want to do something like this:

x=f(angle relative to center)
y=g(distance from center)

Where f and g are 2 appropriate functions. Below is an example that works:

x=abs(r*4/$pi); //could also just be r but this looks better...

Then to avoid the aliasing noise near the center you might want to set alpha to some function of d.
vanderphunck is offline   Reply With Quote