POV-Ray : Newsgroups : povray.text.scene-files : TRON lightcycle path test run sample Server Time
1 Jun 2024 18:10:20 EDT (-0400)
  TRON lightcycle path test run sample (Message 1 to 1 of 1)  
From: Hughes, B 
Subject: TRON lightcycle path test run sample
Date: 17 Feb 2004 12:17:37
Message: <40324cb1@news.povray.org>
/*
This shows how the lightcycle glow, or trail, is at the turns in the path.
It will need to interact only at the places the lightcycle exists; so when
approaching a corner, it shouldn't affect the leading path line only the
trailing.
The problem is one of orientation and/or placement of an object
expected to follow such a linear and right-angled path, of which I haven't
adjusted for.
For animating, try the command line switch +kff30 at a 160x120 res.
*/

/* TRON Lightcycle trail sample. Free to use by anyone, anytime! */

global_settings {
 assumed_gamma 1.0
}

#declare SpaceTime=
spline {
 linear_spline
  0.0, <-50, 0, 0>,
  0.1, <-50, 0, -20>,
  0.2, <-20, 0, -20>,
  0.3, <-20, 0, 0>,
  0.4, <0, 0, 0>,
  0.5, <30, 0, 0>,
  0.6, <30, 0, 10>,
  0.7, <40, 0, 10>,
  0.8, <40, 0, 20>,
  0.9, <80, 0, 20>,
  1.0, <80, 0, 20>
}

camera {
 location <5,10,-10>
 look_at SpaceTime(clock)/10 // divided to match path scaling
 angle 30
}

light_source {
 -1000*z,0.5
 rotate <15,-45,0>
}

plane {y,0 pigment {color rgb 1}}

#declare SpaceTime=
spline {
 linear_spline
  0.0, <-50, 0, 0>,
  0.1, <-50, 0, -20>,
  0.2, <-20, 0, -20>,
  0.3, <-20, 0, 0>,
  0.4, <0, 0, 0>,
  0.5, <30, 0, 0>,
  0.6, <30, 0, 10>,
  0.7, <40, 0, 10>,
  0.8, <40, 0, 20>,
  0.9, <80, 0, 20>,
  1.0, <80, 0, 20>
}

sphere_sweep {
  linear_spline
  10,
  <-50, 0, 0>, 1
  <-50, 0, -20>, 1
  <-20, 0, -20>, 1
  <-20, 0, 0>, 1
  <0, 0, 0>, 1
  <30, 0, 0>, 1
  <30, 0, 10>, 1
  <40, 0, 10>, 1
  <40, 0, 20>, 1
  <80, 0, 20>, 1

  pigment {
   spherical
   color_map {
    [0 color rgbt <1,0,0,0.75>]
    [0.5 color rgbt <1,1,0,1>]
    [0.75 color rgbf <1,1,0,0.25>]
   }
   scale 10 translate SpaceTime(clock)
  }
   scale <0.1,1,0.1>
}

light_source {
  SpaceTime(clock+0.01) + y/3, // added y to get above plane
  1
  fade_distance 1 fade_power 2
  scale <0.1,1,0.1> // to match up with trail
}

/*
Bob H.
http://www.3digitaleyes.com
*/


Post a reply to this message

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