POV-Ray : Newsgroups : povray.binaries.images : Scene in 15 min (69k) : Re: Scene in 15 min (69k) Server Time
19 Aug 2024 16:13:49 EDT (-0400)
  Re: Scene in 15 min (69k)  
From: Ben Birdsey
Date: 8 Nov 2000 21:17:33
Message: <3A0A0986.10DA189E@mail.com>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.