POV-Ray : Newsgroups : moray.win : does MORAY export this correctly yet?? : Re: light_sources that can group (possible workaround) Server Time
29 Jul 2024 14:20:34 EDT (-0400)
  Re: light_sources that can group (possible workaround)  
From: Charles
Date: 10 Mar 1999 20:08:16
Message: <36E71625.39CEEDA1@enter.net>
Admittedly, it will be cool to see light_sources stay with any
group/CSG they're put with (would also be semi-cool to be able to
group cameras... why? consider a robot or spacecraft with cameras
physically attached to them so you can show scenes from their
perspective, or a mannekin with a camera in its head --- built 
with IK and transform limits so you can pose it as a character in
your scene, then switch cameras to "see" things from its 
perspective). 

But back to the topic at hand: until that revision, there is
a workaround if you've got a gotta-do-now type project. Three
observations:

1. Light_sources can be declared objects.
2. UDO's can point to declared objects.
3. UDO references stay put when you group or CSG with them

Just did a quickie test... seems to work. A simple, basic UDO 
to stand in for a light source is a fairly easily hand-made thing 
and transforming the UDO transforms the light_source appropriately.
Might work for you in the here and now.

(Sadly, there are limits on what you can do with a #declare'd
camera, so the same technique doesn't adapt to cameras, but it 
may to work for what you're describing...)

Charles
-- 
Fusner's Galleries - http://www.enter.net/~cfusner
"A conclusion is simply where you got tired of thinking."


Post a reply to this message

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