POV-Ray : Newsgroups : povray.general : cropping or cutting output : Re: cropping or cutting output Server Time
31 Jul 2024 18:26:47 EDT (-0400)
  Re: cropping or cutting output  
From: Randall Sawyer
Date: 26 Nov 2006 21:40:01
Message: <web.456a4d6dae3286878c37caaf0@news.povray.org>
"Olaf Doschke" <b2x### [at] t-onlinede>
wrote:
> If I have a camera setup, that I like
> but want to crop the image size,

I can think of three possible solutions.  Here they are, ranked from least
effort to most:

1) Set your camera type to "orthographic".  See sections 3.3.1.2.2 - for a
description - and 2.3.1.1.1 - for an application - in the POV 3.6 manual.
This method works best if your objects' unit metric is equivalent to one
pixel in your rendered image.

2) Narrow your camera's angle to a very small angle (2 degrees).  If you use
this method, then you might need to spend a little more time at setting up
your
camera's location.  Either this method or the previous one may also require
that
you move your light source(s) to get the results you want.

3) Use a graphics editor like "The Gimp" to crop your images.  You can set
up a Gimp *.xcf image file with the same dimensions as your raw images and
with guides where you wish to crop every one of those images.  If you have
many images to crop identically, then this manual method may get tedious.
In this case, The Gimp includes a custom scripting language (Perl-based, I
believe.  But, I'm not sure.)  If you want to take the time to learn it,
then you could automate your cropping process.  Also, if you're willing to
write a bit of code, then there are other libraries, such as Trolltech's QT
c++ library, that provide the means to manipulate images from file and then
writing new files to disk.

I hope this helps.

-Randall


Post a reply to this message

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