POV-Ray : Newsgroups : povray.general : Animation Error : Animation Error Server Time
29 Jul 2024 12:26:07 EDT (-0400)
  Animation Error  
From: yetkinsengul@gmail com
Date: 26 Aug 2011 11:30:01
Message: <web.4e57bbb6cde67b9fd98aa2220@news.povray.org>
Hello,

I have a problem by Povray,  I am very new by Povray area
Maybe you can help me, It will be very nice.

My problem is as following,

I established a vehicle, which I would like on 8 form platform once racing in
Povray.
I used for it, the Spline_Trans macro  from See Johansen.

My problem is, the vehicle does not tracking the path
That I already defined



The following is mine povray code
Could you tell me please where did I made mistake?
-----

#include "colors.inc"                 // Defintion der Farben

#include "math.inc"
#include "transforms.inc"
background {color rgb <1,1,1>}



camera
{
location < 0, 8, -20.0>
look_at <0, -0.8, 0>
angle 12
}

light_source { < -30, 30, 0 > color White }


//definition der Bahn
cylinder {
  <0,-1.1,0>,  <0,-1,0>,  2.1
texture { pigment { color Grey } }
}


cylinder
{
<0,-1.3,0>,  <0,-1,0>,  0.77
texture { pigment { color Green }
        }
}


cylinder {
  <0,-1.1,2.6>,  <0,-1,2.6>,  2.1
texture { pigment { color Grey } }
}

cylinder
{
<0,-1.3,2.6>,  <0,-1,2.6>,  0.77
texture { pigment { color Green }
        }
}


#declare FahrzeugKoerper=

box{<-0.3, -0.95, 1.0>, <0.2, -0.88, 1.3>       texture { pigment {color rgb <2,
0, 0>}}} ;


#declare reifen=
union

{

torus{0.05,0.018
         texture{pigment {color rgb <5, 5, 5>}}} // rim - Felge

torus{0.06,0.02
          texture{pigment {color rgb <0, 0, 0>}}} // tire - Reifen
}  ;



#declare Fahrzeug=

union
{

object {FahrzeugKoerper}


object {reifen translate <0.10, 0.985, 0.925>  rotate<90,0,0>}   //Vorne Rechts


object {reifen translate <-0.20, 0.985, 0.925>  rotate<90,0,0>}  //Hinten Rechts


object {reifen translate <0.10, 1.315, 0.925>  rotate<90,0,0>}   //Vorne Links


object {reifen translate <-0.20, 1.315, 0.925>  rotate<90,0,0>}  //Hinten Rechts

}

#declare MySpline =
spline {

   cubic_spline

   -1, <0, 0, 0>, // control point
    0.00, <0.00,0.00,2.60>
    1.00, <0.45,0.00,2.50>
    2.00, <0.90,0.00,2.00>
    3.00,  <1.30,0.00,1.30>
    4.00,  <0.90,0.00,0.70>
    5.00,  <0.45,0.00,0.30>
    6.00,  <0.00,0.00,0.00>
    7.00,  <-0.45,0.00,-0.30>
    8.00,  <-0.90,0.00,-0.70>
    9.00,  <-1.30,0.00,-1.30>
    10.00, <-0.90,0.00,-2.00>
    11.00, <-0.45,0.00,-2.50>
    12.00, <0.00,0.00,-2.60>
    13.00, <0.45,0.00,-2.50>
    14.00, <0.90,0.00,-2.00>
    15.00, <1.30,0.00,-1.30>
    16.00, <0.90,0.00,-0.70>
    17.00, <0.45,0.00,-0.30>
    18.00, <0.00,0.00,0.00>
    19.00, <-0.45,0.00,0.30>
    20.00, <-0.90,0.00,0.70>
    21.00, <-1.30,0.00,1.30>
    22.00, <-0.90,0.00,2.00>
    23.00, <-0.45,0.00,2.50>
    24.00, <0.00,0.00,2.60>
    25.00, <0.00,0.00,2.60>
}

object { Fahrzeug Spline_Trans (MySpline, clock*25, <0,1,0>, 0.1, 0.00001) }

-------------------
My ini file is;

Antialias=On
Antialias_Threshold=0.2
Antialias_Depth=3

Input_File_Name=backup.pov

Initial_Frame=1
Final_Frame=25
Initial_Clock=0
Final_Clock=1

Pause_when_Done=off
Cyclic_Animation=off


Thanks a lot in advance

regards
Yetkin

(Sorry for my English)


Post a reply to this message

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