POV-Ray : Newsgroups : povray.general : zoom in-zoom out help Server Time
27 Dec 2024 04:55:04 EST (-0500)
  zoom in-zoom out help (Message 1 to 8 of 8)  
From: yoshu
Subject: zoom in-zoom out help
Date: 19 Jan 2006 07:10:00
Message: <web.43cf8128a8def03851c9b6d40@news.povray.org>
hi everyone,

Can anyone help me out for adding zooming in
and zooming out effect in a scene.

like supppose, i want to analyse some portion of scene
without loosing its integrity.

shubh


Post a reply to this message

From: Warp
Subject: Re: zoom in-zoom out help
Date: 19 Jan 2006 07:24:05
Message: <43cf84e5@news.povray.org>
yoshu <shu### [at] yahoocom> wrote:
> Can anyone help me out for adding zooming in
> and zooming out effect in a scene.

  Specify a smaller 'angle' in the camera?

-- 
                                                          - Warp


Post a reply to this message

From: KalleK
Subject: Re: zoom in-zoom out help
Date: 19 Jan 2006 07:43:39
Message: <43cf897b$1@news.povray.org>
And there is zoom.inc:
from slime (but I didn't find it on his page www.slimeland.com)

just googled for it, and just found it here:
http://news.povray.org/povray.binaries.scene-files/attachment/%3C3cdd900a@news.povray.org%3E/zoomin.inc.txt
(There's some help at the start of the file)

kalle


Post a reply to this message

From: Kenneth
Subject: Re: zoom in-zoom out help
Date: 20 Jan 2006 06:20:00
Message: <web.43d0c6292547d699a841434f0@news.povray.org>
KalleK <kal### [at] gmxde> wrote:
> And there is zoom.inc:
> from slime (but I didn't find it on his page www.slimeland.com)
>
> just googled for it, and just found it here:
>
http://news.povray.org/povray.binaries.scene-files/attachment/%3C3cdd900a@news.povray.org%3E/zoomin.inc.txt
> (There's some help at the start of the file)
>
> kalle

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?

Ken


Post a reply to this message

From: yoshu
Subject: Re: zoom in-zoom out help
Date: 21 Jan 2006 09:50:00
Message: <web.43d249002547d69928c33c130@news.povray.org>
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:
> KalleK <kal### [at] gmxde> wrote:
> > And there is zoom.inc:
> > from slime (but I didn't find it on his page www.slimeland.com)
> >
> > just googled for it, and just found it here:
> >
http://news.povray.org/povray.binaries.scene-files/attachment/%3C3cdd900a@news.povray.org%3E/zoomin.inc.txt
> > (There's some help at the start of the file)
> >
> > kalle
>
> 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?
>
> Ken


Post a reply to this message

From: KalleK
Subject: Re: zoom in-zoom out help
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

From: yoshu
Subject: Re: zoom in-zoom out help
Date: 23 Jan 2006 05:25:00
Message: <web.43d4adde2547d699c260a9780@news.povray.org>
Hi..

After using all the steps, still it is neither showing zooming effect
nor any problem.

I am not getting where i am doing mistake..:(
somthing like that string (+sc0.365949 +sr0.258486 +ec0.502935 +er0.420366)
from command line i cut and paste in my .pov program in function
set_zoom_area..... then again render..but result is same as previous one.
there is no zooming in effect..

Thanks ..

Shubh

> 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

From: KalleK
Subject: Re: zoom in-zoom out help
Date: 24 Jan 2006 06:43:21
Message: <43d612d9@news.povray.org>
yoshu schrieb:
> Hi..
> 
> After using all the steps, still it is neither showing zooming effect
> nor any problem.
> 
> I am not getting where i am doing mistake..:(

Hi..
It was my mistake:
maybe two of them:
you may have to add "-UV" to your commandline (Render/Edit 
Settings/Render - or the textbox in the menubar (See Pov-Win-Help 1.4.2.2)

and the "mainerror":

after the set_zoom_area - statement, you have to update the camera, by 
calling:
Update_Camera_Zoom()

Here's an example, that I tried:
(Just comment out the Set_Zoom_Area and update_camera... to see the 
difference)

// Starts here:
#include "zoomin.inc"

#declare camera_location = <0.0, 0.5, -10.0>;
#declare camera_look_at = <0.0, 0.0,  0.0>;

camera {
   location  camera_location
   look_at   camera_look_at
}

Set_Zoom_Area(camera_location, camera_look_at, "+sc0.304075 +sr0.242678 
+ec0.495298 +er0.497908") // this must be first
Update_Camera_Zoom()

sky_sphere {
   pigment {
     gradient y
     color_map {[0.0 rgb <0.6,0.7,1.0>][0.7 rgb <0.0,0.1,0.8>]}
   }
}

light_source { <-30, 30, -30> color rgb <1, 1, 1>}

sphere { 0.0, 1
     pigment { checker color rgb 1 color rgb 0 scale .1}
}


Post a reply to this message

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