POV-Ray : Newsgroups : povray.tools.general : Returning camera position. : Re: Returning camera position. Server Time
23 Apr 2024 04:29:26 EDT (-0400)
  Re: Returning camera position.  
From: StephenS
Date: 25 Nov 2012 14:10:01
Message: <web.50b26c00e3ed572d17cf88690@news.povray.org>
Stephen <mca### [at] aolcom> wrote:
> Is there a way that I can get the current camera location passed to a
> variable?

> Grasstex.inc in animations.
> Bishop3D outputs a Pov file for every frame after doing its own
> calculations for location and look_at and I need to pass the camera
> location to Grasstex.inc for each frame.
>
>
> --
> Regards
>      Stephen
With focal_blur no; without, maybe.
declare the camera output in a text string.

#declare A="
....
";
// keep under 256 characters?

parse out the elements, with text string comparison
rebuild the same camera statement

I did something similar, for doing isosurfaces based on the movement of the box
object.

A sample file would be needed before going into more detail ;-)

Stephen S


Post a reply to this message

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