POV-Ray : Newsgroups : povray.advanced-users : Can I apply the camera transform matrix to objects? : Re: Can I apply the camera transform matrix to objects? Server Time
28 Jul 2024 12:29:58 EDT (-0400)
  Re: Can I apply the camera transform matrix to objects?  
From: Kenneth
Date: 7 Oct 2005 23:20:01
Message: <web.434739d99d3b692f1b45c0860@news.povray.org>
"zachrahan" <nomail@nomail> wrote:
> I'm trying to figure out a way to get some objects to always "point" at the
> camera, no matter where I move it. (Imagine an array of solar mirrors
> mounted on gimbals so that they always point at the sun.)
>

Hi!

I've been following this news thread with great interest. I have come up
with a way to do this, that does not use any of POV's transforms or other
more advanced features (mainly because I don't yet fully understand some of
them!)   My technique simply uses some trig equations. I've tested it quite
thoroughly, and it works flawlessly.  I haven't posted it (yet) because
right now, it works ONLY if the camera is always "in front of" the object
(more specifically, the camera always has to be positioned more negatively
in the z-direction than the object.) Which means that the object will only
rotate to follow the camera if the camera's position is restricted to ONE
hemisphere. In other words, you can't spin the camera around the vertical
axis in 360 degrees, only 180 degrees. I plan on fixing this drawback, and
will post it when done.

Ken


Post a reply to this message

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