|
![](/i/fill.gif) |
Hi, I wonder if someone can point me in the right direction...
I have the following loop:
---------------------------------------------------------------------------------------
#while(X<=18)
box {
<-0.2, 0, 0.05>, <0.2, 0.1, -0.05>
pigment {
color rgb <0.75,0.75,0.75>
}
#debug concat(str((X), 3, 3), "\n")
Spline_Trans(path, (X), y, 0.1, 0.5)
//translate path(X)
}
#declare X=X+0.001;
#end
---------------------------------------------------------------------------------------
to draw a "rail" that _should_ bank with the object that's going to follow
the rail. The Spline is defined from -2 to 20 and is a cubic_spline. If I
use transform, I get a nice circuit, however, when I try to use
Spline_Trans, I get:
---------------------------------------------------------------------------------------
....
1.316
1.317
1.318
File: <path>\Rollercoaster\Scene.POV Line: 91
File Context (5 lines):
#debug concat(str((X), 3, 3), "\n")
Spline_Trans(path,
Parse Error: Identifier expected, incomplete function call or spline call
found instead.
Total Scene Processing Times
Parse Time: 0 hours 0 minutes 0 seconds (0 seconds)
Photon Time: 0 hours 0 minutes 0 seconds (0 seconds)
Render Time: 0 hours 0 minutes 1 seconds (1 seconds)
Total Time: 0 hours 0 minutes 1 seconds (1 seconds)
CPU time used: kernel 0.73 seconds, user 0.50 seconds, total 1.23 seconds
POV-Ray finished
---------------------------------------------------------------------------------------
Any help greatly appreciated.
oh and my includes:
---------------------------------------------------------------------------------------
#include "colors.inc"
#include "textures.inc"
#include "metals.inc"
#include "golds.inc"
#include "stones.inc"
#include "woods.inc"
#include "shapes.inc"
#include "shapes2.inc"
#include "functions.inc"
#include "math.inc"
---------------------------------------------------------------------------------------
Post a reply to this message
|
![](/i/fill.gif) |