POV-Ray : Newsgroups : povray.animations : for spotlight : Re: for spotlight Server Time
28 Jul 2024 12:30:51 EDT (-0400)
  Re: for spotlight  
From: Peter Popov
Date: 19 Jun 2000 16:57:22
Message: <jvpsks8s41caj35du87ladriv6jc65q9il@4ax.com>
On Mon, 19 Jun 2000 14:07:42 -0400, rsibbald <rsi### [at] julianuwoca>
wrote:

>> The problem arises when I attempt an animation in which
>>the camera is moving and I want a spotlight to follow the same path
>>without having to write the lights path seperately.
>>The message I get when trying  what's below is...
>>  "cannot assign uninitialized identifier"
>
>>ANY IDEAS?

The identifier 'camera_location' is uninitialized. There's nothing
wrong with this as you have probably not initialized it :) Try
something like this:

#declare camera_location = (some_stuff_that_returns_a_vector);
#declare light_location = camera_location + <0,5,-10>;

camera
{
  location camera_location
  look_at camera_location + <0,-1,5>
}

light_source
{
  light_location color White
  spotlight
  radius 15 falloff 45 tightness 75
}

You get the idea. If it's not clear, don't hesitate to ask.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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