POV-Ray : Newsgroups : povray.advanced-users : Making a rotation macro : Re: Making a rotation macro Server Time
16 May 2024 19:52:30 EDT (-0400)
  Re: Making a rotation macro  
From: Doctor John
Date: 25 Sep 2014 07:54:26
Message: <54240272$1@news.povray.org>
On 25/09/14 12:19, bakom wrote:
> Leroy <lrw### [at] joplincom> wrote:
>> bakom wrote:
>>> I want to make a macro for rotation. Basically its a rotation macro for camera.
>>> Is there any way to make a macro in which I have to give only x, y, z values and
>>> that results into the rotation of camera.
>>> There are some other like Set_camera_... so can we make one for rotation?
>>>
>>>
>> Need a little more information.Do you want to rotate the position of the
>> camera while looking at the same spot or rotate the spot your looking at
>> or both these?
>> Any way 'Transforms.inc' has several macros you can use.
> 
> I want the rotation of camera, looking at the same spot. Actually I want it in
> azimuth amd elevation of camera
> 
> 
> Gurwinder Singh
> 
> 

As Leroy has said, transforms.inc has the appropriate macros. I'm
guessing that Rotate_Around_Trans() is probably the one you're looking
for. The point you rotate around is your camera's look_at.

John
-- 
Protect the Earth
It was not given to you by your parents
You hold it in trust for your children


Post a reply to this message

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