POV-Ray : Newsgroups : povray.binaries.images : Two torii: parametric texture problem? : Re: Two torii: parametric texture problem? Server Time
14 Aug 2024 20:22:36 EDT (-0400)
  Re: Two torii: parametric texture problem?  
From: ABX
Date: 11 Sep 2002 05:40:20
Message: <l73unus326ambu0o4ct8ihpdasrefqr917@4ax.com>
On Tue, 10 Sep 2002 14:06:38 -0400, "Greg M. Johnson" <gregj:-)565### [at] aolcom>
wrote:
>   contained_by { sphere{0, 4.1} }

There can be some bug in parametric code. Try change container to:

   contained_by { box{-4.1 4.1} }

in your scene. The image looks different. Left object is now partially white.
I have partially pointed what can cause bugs in parametric object in
http://news.povray.org/saqrmuoi41v5iqkclmmggtk06n8t32s789%404ax.com
Read also thread http://news.povray.org/povray.general/26669/ .

BTW: Looking at your script I have a note. Do you one you waste memory a lot ?
IIRC parametric object is internally optimized to share precomputed data
between instances. So you can save memory changing your object definition this
way:

#declare Parametric_Example=parametric {
   function { cos(u)*(r0+r1*cos(v)) }
   function { sin(u)*(r0+r1*cos(v)) }
   function { r1*sin(v) }
   <0,0>, <2*pi,pi>
   contained_by { sphere{0, 4.1} }
   max_gradient .14
   accuracy 0.001  //  0.0001
   precompute 10 x,y,z
}

#declare AMBIENT_VARIABLE=0;
#while(AMBIENT_VARIABLE<1.1)
  object {
    Parametric_Example
    texture{
      pigment {rgb 1}
      finish{ambient AMBIENT_VARIABLE}
    }
    translate 12*z+x*(-4+8*AMBIENT_VARIABLE)
  }
  #declare AMBIENT_VARIABLE=AMBIENT_VARIABLE+1;
#end

ABX


Post a reply to this message

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