POV-Ray : Newsgroups : povray.general : zoom in-zoom out help : Re: zoom in-zoom out help Server Time
1 Aug 2024 08:17:29 EDT (-0400)
  Re: zoom in-zoom out help  
From: KalleK
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.