POV-Ray : Newsgroups : povray.general : re parabola problem : re parabola problem Server Time
16 Nov 2024 09:19:54 EST (-0500)
  re parabola problem  
From: mick
Date: 6 Sep 1998 04:58:14
Message: <01bdd96c$13d58e60$de78a8c2@wphnvffu>
Thanks to everyone for their help

After much messing about this is as close as I can get

Is it possible to get more accuracy, am I doing this wrong

Thanks 

Mick Hazelgrove

heres the code:-



// ----------------------------------------

camera{
location  <0.0, 0.5, -60.0>
look_at   <0.0, 0.0,  0.0>
}

background {Blue}

light_source{<-30, 30, -30> color rgb<1,1,1>}

//------------------------------------------

#declare Jet = union{
 #declare Count = -40
 #declare Size = 0.3
#declare Angle = 0

 #while( Count < 40 )
 #declare RS1 = seed(Count)
 #declare  Angle = degrees(pow(Count,2)/75)/(Count/3) //This works ish

       blob{
            threshold 0.6
               sphere{0,Size,1 scale <3,1,1>  
                     rotate z* Angle 
                           translate<Count/3,pow(Count,2)/75,0>}
                                 pigment{color rgbf<0.5,1,0.75,0.95>}
                                        finish{specular 1}
                                               normal{bumps scale 0.1}
              }

//degrees(atan2(pow(Count,2)/75,Count/3)) //this works ish
#declare Count = Count + 1
#end
}

//-------------------------------------------------------------
object{Jet
scale 2
translate <0,-15,0>
}


Post a reply to this message

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