POV-Ray : Newsgroups : povray.beta-test : Strange spline bug Server Time
31 Jul 2024 00:29:56 EDT (-0400)
  Strange spline bug (Message 1 to 6 of 6)  
From: Rune
Subject: Strange spline bug
Date: 28 Sep 2001 02:50:48
Message: <3bb41dc8@news.povray.org>
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

From: Rune
Subject: Re: Strange spline bug
Date: 28 Sep 2001 02:54:50
Message: <3bb41eba@news.povray.org>
Sorry,

I'm using POV-Ray 3.5 beta 4
on a P150, 16MB RAM
Windows 95  4.00.450 B  IE 5 5.00.2919.6307

Rune


Post a reply to this message

From: Mark Wagner
Subject: Re: Strange spline bug
Date: 28 Sep 2001 23:21:14
Message: <3bb53e2a$1@news.povray.org>
Rune wrote in message <3bb41dc8@news.povray.org>...
>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.


As usual, I can reproduce it using beta 3.5, but not when using my
development version.

--
Mark


Post a reply to this message

From: Rune
Subject: Re: Strange spline bug
Date: 29 Sep 2001 08:28:51
Message: <3bb5be83@news.povray.org>
"Mark Wagner" wrote:
> As usual, I can reproduce it using beta 3.5, but not
> when using my development version.

Well then, wouldn't it be possible to make POV-Ray 3.5 use the same code as
your development version?

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

From: Jon A  Cruz
Subject: Re: Strange spline bug
Date: 29 Sep 2001 15:44:42
Message: <3BB62406.563E9033@geocites.com>
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?

--
Jon A. Cruz
http://www.geocities.com/joncruz/action.html


Post a reply to this message

From: Ron Parker
Subject: Re: Strange spline bug
Date: 29 Sep 2001 22:26:10
Message: <slrn9rd0m5.7nr.ron.parker@fwi.com>
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

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