|
 |
I think it would be really cool to use a hyperbolic conic section
instead of a cone for the "wormhole" effect.
Try using a quartic is oriented along the z-axis. It has maximum
radius Rmax and a minimum radius at z = -Infinity of Rmin. Making Zmin
approach 0 makes the "bell" shape look more like a flat plate with a
tiny wormhole, and making it bigger makes a wormhole that is more like a
gently tapering tube.
I hope this works for you!
Ben
<><
/*****************************************************************/
#declare Zmin = 4.0;
#declare Rmin = 0.2;
#declare Rmax = 2.0;
#declare Hfactor = (Rmax*Rmax - Rmin*Rmin) * Zmin*Zmin;
#declare xxzz = 1;
#declare yyzz = 1;
#declare zz = -Rmin*Rmin;
#declare const = -Hfactor;
quartic{
< 0, 0, 0, 0, 0, 0, 0,
xxzz, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0,
0, 0, yyzz, 0, 0, 0, 0,
0, 0, 0, 0, zz, 0, const >
sturm
translate<0,0,Zmin>
bounded_by { cylinder{<0,0,Zmin>,<0,0,-100-Zmin>,Rmax } }
clipped_by { bounded_by }
texture{ MyTexture }
}
Post a reply to this message
|
 |