// Persistence of Vision Ray Tracer Scene Description File // File: glow_spline.pov // Vers: MegaPOV 0.6 // Desc: Using a MegaPOV compatible version of Chris Colefax's Spline Macro File to create glow splines. // Date: 6 December 2000 // Auth: Alan Holding - manhog@lineone.net /* Please note: For a fuller explanation of how to use Mr Colefax's Spline Macro File, you should visit his website where there's some very good tutorial pages, along with the 'regular' Spline Macro File itself: http://www.geocities.com/SiliconValley/Lakes/1434/ */ #version unofficial MegaPOV 0.6; #include "splinemp.mcr" background {rgb 0} camera { location <0,0,-50> right x*image_width up y*image_height angle 90 look_at <0,7.5,0> perspective } // Making a glow the spline object #macro spline_object () glow {type 1 location sPos colour rgb <1.35-(sProgress*1.5),0.5,sProgress> size 0.01} #end // Defining the spline #local glow_spline=create_spline ( array[4] {<-40,0,0>,<-10,50,0>,<30,-80,0>,<40,20,0>}, create_bezier_spline + spline_tension (0.4) + spline_sampling (on) + spline_loop (no) ) // Calling the spline object into being create_spline_object (glow_spline, spline_steps (40) + spline_radius (0.1))