POV-Ray : Newsgroups : povray.binaries.images : ZoomIn include file demonstration : ZoomIn include file demonstration Server Time
15 Aug 2024 18:14:11 EDT (-0400)
  ZoomIn include file demonstration  
From: Slime
Date: 14 May 2002 22:47:40
Message: <3ce1cc4c@news.povray.org>
Well, this is a blatant plug for my include file, but I thought maybe it'd
raise a little interest. =)

I took abyss.pov (which is a sample scene included with POV-Ray 3.5,
originally made by Gilles Tran I believe) and zoomed in on interesting
areas. See the attached image.

In each section of the image, I've lightly outlined the part that the next
section has zoomed into. The first section of the image is the original
image. Notice that the final section of the image is an area so small that
it was a single pixel in the original image - now displayed in full detail.
=)

The advantages to this? It's meant to be used during production of a scene.
It makes it easy to place or examine small or far-away objects in your
scene. If, for example, you're working on a landscape, and there's a single
tree way in the distance that's floating in the air, and you want to know
why, you might use this include file to zoom in on that tree as you try to
make it behave correctly.

The final code that I used for this example was:

#include "zoomin.inc"
#declare ZoomIn_AssumedCameraAspectRatio = 8/3;
#declare ZoomIn_AssumedCameraAngle = 2*atan(8/3/4)/pi*180;
Set_Zoom_Area(PdV, <-20,30,0>, "+sc0.433490 +sr0.184100 +ec0.683881
+er0.493724") // first zoom
Zoom_Again("+sc0.538341 +sr0.209205 +ec0.613459 +er0.418410") // second zoom
Zoom_Again("+sc0.491393 +sr0.476987 +ec0.575900 +er0.610879") // third zoom
Update_Camera_Zoom()

(That was placed after the camera declaration in abyss.pov.)

The include file is currently available in povray.binaries.scene-files.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message


Attachments:
Download 'abysszoom.jpg' (156 KB)

Preview of image 'abysszoom.jpg'
abysszoom.jpg


 

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