POV-Ray : Newsgroups : povray.binaries.images : Spherical Sweep Bug or Something else? : Re: Spherical Sweep Bug or Something else? Server Time
4 Nov 2024 13:17:06 EST (-0500)
  Re: Spherical Sweep Bug or Something else?  
From: Woody
Date: 31 Mar 2010 20:35:01
Message: <web.4bb3e9ac786dbd6a68bbd4510@news.povray.org>
Revised picture and code going into bug system

#include "colors.inc"

global_settings {
  assumed_gamma 1.0
}


camera {
  location  <0, 0.0, -4.0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.0, 0.0,  0.0>
}

light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>  // light's color
  translate <-30, 30, -30>
}


#declare i_start = 0;
#declare i_stop = 3;
#declare i_step = 0.05;
#declare i_inc = i_start;
sphere_sweep {
  linear_spline                 // linear curve

  (i_stop - i_start)/i_step + 1,    // number of specified sphere positions
#while(i_inc<=i_stop)

  #declare y_coor = 0.23*sin(7.1*i_inc);
  <i_inc, y_coor, 0>, 0.05
        #declare i_inc = i_inc + i_step;


#end

pigment{color Orange}

}


Post a reply to this message


Attachments:
Download 'bugtest.png' (35 KB)

Preview of image 'bugtest.png'
bugtest.png


 

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