POV-Ray : Newsgroups : povray.newusers : Unwanted effects in sphere_sweep : Re: Unwanted effects in sphere_sweep Server Time
29 Jul 2024 10:22:06 EDT (-0400)
  Re: Unwanted effects in sphere_sweep  
From: Bob Hughes
Date: 9 Mar 2006 00:09:16
Message: <440fb87c$1@news.povray.org>
"RusHHouR" <gee### [at] mailnu> wrote in message 
news:web.440fae135b3b05b847d3ae5e0@news.povray.org...
> "Bob Hughes" answered:
>
> Thanks for your answer. I will try it out and see if it works for me.

okay, happy to help.

> But, if it does, rescaling the scene.. seems a bit timeconsuming... o_0

You could union {} the entire scene except for the camera, just multiplying 
the location and look_at by the same amount you scale by.

> Is there any other clever way of creating the same shape?

A spline path of lotsa spheres. Maybe something like this:

camera {location <2,3,-4> look_at <1.9,3.2,0>}
light_source {<10,10,-100>,1}

#local i = 0.05; // smaller, more spheres; larger, less

#declare SphSwp=spline {
  linear_spline
  1,< 0.24,  3.19, 0>
  2,< 0.5,   3.20, 0>
  3,< 0.75,  3.22, 0>
  4,< 1.0,   3.24, 0>
  5,< 1.25,  3.26, 0>
  6,< 1.5,   3.30, 0>
  7,< 1.75,  3.35, 0>
  8,< 2.0,   3.45, 0>
  9,< 2.25,  3.55, 0>
  10,< 2.5,   3.65, 0>
  11,< 2.75,  3.75, 0>
  12,< 3.0,   3.82, 0>
  13,< 3.25,  3.88, 0>
  14,< 3.5,   3.92, 0>
  15,< 3.75,  3.94, 0>
  16,< 3.974, 3.95, 0>
}

union {
#local I=1;
#while (I<=16)
sphere {
 SphSwp(I),0.027
}
#local I=I+i;
#end
texture {pigment {rgb 1}}
}


Post a reply to this message

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