POV-Ray : Newsgroups : povray.newusers : Lens Flare, Help ?? Server Time
27 Nov 2024 10:43:25 EST (-0500)
  Lens Flare, Help ?? (Message 1 to 1 of 1)  
From: M Dabhi
Subject: Lens Flare, Help ??
Date: 4 Jan 2003 07:26:54
Message: <3e16d30e$1@news.povray.org>
I used nathan kopps lens flare to place a lens flare behind  sphere. so that
it looks like the lens flare is behing the planet. But it dos not seem to
work. it keeps saying vector expression required. I'll post the code as
well. Any help would be greatly appreciated.


#declare cam_loc = <0,0,-10>;
#declare lookat = <0,0,0>;
#declare light_loc = <0,1,-4>;      // <0,2,10> // -- Works <0,1,-2>
#declare sky_vect = <0,0,0>;

#declare light_rad = <0,0,0>;
#declare sphere_rad = <3,3,1>;
#declare sphere_loc = <0,1,0>;

camera {
 location cam_loc
 look_at lookat
}

sphere {
 sphere_rad,sphere_loc,light_rad
}

sphere {
 <0,0,0>, 3
 texture {
  pigment { image_map {
   png "C:\Documents and Settings\Mits\Desktop\Maps\Mars.png"
   map_type 1
   interpolate 2
   }
  }
 }
 finish { ambient 0 diffuse 1 specular 0 }
 translate <0,-2,0>
}

light_source { light_loc color <1,1,1>  }
#declare flare_size = 0.5;
#include "space2.flr"
#include "hid_sph.inc"
#include "nkflare.inc"

Thanks in advance


Post a reply to this message

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