POV-Ray : Newsgroups : povray.advanced-users : focal_point with camera transform? : Re: focal_point with camera transform? Server Time
28 Sep 2024 19:09:23 EDT (-0400)
  Re: focal_point with camera transform?  
From: Andy
Date: 10 Nov 2013 18:10:01
Message: <web.528011459915e2734dc349de0@news.povray.org>
> Workaroud:
> Using the vtransform() macro, apply your transform/matrix to the parts
> of the camera that you want to affect, like location and look_at.

Nevermind.. i think i see what you mean. Is this what you are talking about?

camera {
 perspective

 direction <0,0,-1>
 angle 60

 transform{ matrix
<0.960168,-0.22715,0.162726,0.0879589,0.798467,0.595579,-0.265217,-0.557543,0.786642,0,0,-15.75>
inverse }

 #local vecFocalPoint = vtransform(<0,3.56,1>, transform{matrix
<0.960168,-0.22715,0.162726,0.0879589,0.798467,0.595579,-0.265217,-0.557543,0.786642,0,0,-15.75>
} );

 focal_point vecFocalPoint
 aperture 1.5
 blur_samples 100
 confidence .9
 variance 1/10000
}

I had to pull the "inverse" keyword out of the vtransform()... that seems to
make it work.

I will play with it more and test your theories.

I really appreciate your help... Thanks so much for taking time out of your day.


Post a reply to this message

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