POV-Ray : Newsgroups : povray.general : zoom in-zoom out help : Re: zoom in-zoom out help Server Time
1 Aug 2024 08:21:20 EDT (-0400)
  Re: zoom in-zoom out help  
From: KalleK
Date: 22 Jan 2006 08:52:13
Message: <43d38e0d@news.povray.org>
yoshu schrieb:
> hi buddies..
> 
> thanks for your help. But its really difficult for me to understand
> concepts of zoomin.inc file. I have to finish this task in just one day.
> 
> if you have some examples or its implementation in steps, it will be of much
> help to me.Even i prefer GUI environment.
> 
> shubh
> 
> "Kenneth" <kdw### [at] earthlinknet> wrote:
>> Not sure if I understand how (or if) zoomin.inc works, without having to
>> specify anything on the command line.  (I'm a pure GUI Windows user, and
>> don't yet use the command line much, sorry to say.) This is a feature I've
>> been looking for for quite awhile. Does it NEED command-line parameters?
>>

Hi!
It doesn't need command-line parameters, it just uses the syntax of 
them. This is no problem, you don't have to learn them.
What you have to do:


At first, you have to include zoom.inc:
#include "zoomin.inc" (assuming, zoomin.inc is within your 
"Library_Path" (the directory of your pov-file works))

Then:
a)
Define the to variables of your camera:

    #declare n = -z*10;
    #declare camera_look_at = <0,0,0>;

b)
instead of using those vectors directly within your camerastatements, 
use them like this:

camera {
	location camera_location
	look_at camera_look_at
}

c)
render as usual

d) shift-and-drag the area in the rendered picture, you want to zoom in,
  -> Povaray asks you wether to append this area to the commandline, a 
window opens:

e)
cut (not copy) those statements (something like:
  "+sc0.304075 +sr0.535565 +ec0.429467 +er0.635983"
and add another command to your scene (after the declaration of a)), 
using the cutted parameters as a string:

Set_Zoom_Area(camera_location, camera_look_at,
		 "+sc0.304075 +sr0.535565 +ec0.429467 +er0.635983")

f) render again, see what happens

(the above information should be within the zoomin.inc, just don't stop 
reading, when it tells you things about the commandline, read on!)

HTH
kalle


Post a reply to this message

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