|
|
The code below seems to give a consistent result for all values of V except
the three integers -3, -2, and -1. Setting V to one of those values makes
the spline go nuts.
#declare V = -3;
camera {location 8*y look_at 0 translate <0,0,2>}
light_source {1000*y, color 1}
plane {y, 0 pigment {checker color rgb 1.0, color rgb 0.9}}
#declare Spline =
spline {
cubic_spline
0+V, <-2,0,0>,
1+V, < 0,0,0>, // red
2+V, < 2,0,0>,
3+V, < 4,0,2>,
9+V, <-4,0,2>,
10+V, <-2,0,0>,
11+V, < 0,0,0>, // red
12+V, < 2,0,0>,
}
#declare C = 0+V;
#while (C<=12+V)
#declare Value = C;
#if (C>1+V&C<11+V) #declare Color = <0,0,1>; #end
#if (C<1+V|C>11+V) #declare Color = <0,1,0>; #end
#if (C=1+V|C=11+V) #declare Color = <1,0,0>; #end
sphere {Spline(Value), 0.2 pigment {color Color}}
#declare C = C+0.2;
#end
Rune
--
3D images and anims, include files, tutorials and more:
Rune's World: http://rsj.mobilixnet.dk (updated June 26)
POV-Ray Users: http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk
Post a reply to this message
|
|
|
|
On Sat, 29 Sep 2001 12:41:58 -0700, Jon A. Cruz wrote:
>Mark Wagner wrote:
>
>> As usual, I can reproduce it using beta 3.5, but not when using my
>> development version.
>
>Ooooooh. Fun.
>
>Is this then a debug vs. release build problem?
No. Mark's development version is based on 3.1 source.
--
#local R=<7084844682857967,0787982,826975826580>;#macro L(P)concat(#while(P)chr(
mod(P,100)),#local P=P/100;#end"")#end background{rgb 1}text{ttf L(R.x)L(R.y)0,0
translate<-.8,0,-1>}text{ttf L(R.x)L(R.z)0,0translate<-1.6,-.75,-1>}sphere{z/9e3
4/26/2001finish{reflection 1}}//ron.parker@povray.org My opinions, nobody else's
Post a reply to this message
|
|