POV-Ray : Newsgroups : povray.advanced-users : focal_point with camera transform? : Re: focal_point with camera transform? Server Time
31 Oct 2024 19:15:33 EDT (-0400)
  Re: focal_point with camera transform?  
From: Alain
Date: 7 Nov 2013 22:59:18
Message: <527c6196$1@news.povray.org>

> Is it possible to create a perspective camera that doesn't use "location" and
> "look_at", but instead uses "transform {matrix <...>}" and have focal_point work
> properly?
>
> When I try to use a transform with a camera, focal_point no longer works as
> described.
>
> Any help would be greatly appreciated!
> -andy.
>
>

It's realy easy to set a camera that don't use location and point_at: 
Just don't set them and you get a camera siting at the origin and look 
toward <0,0,1>.

If you transform your camera after seting focal_point, then the 
transform will apply to focal_point the same way it apply to the rest. 
You may want to transform your camera BEFORE you set the facal point.

If you declared your camera with a focal_point and then use 
camera{Camera_Id transform{My_Tranfsorm}}, you may want to change it to:
camera{Camera_Id transform{My_Tranfsorm} focal_point FocalPoint}
This will reset focal_point to the corect location.





Alain


Post a reply to this message

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