POV-Ray : Newsgroups : povray.general : Moving the vanishing point. Server Time
15 Oct 2026 01:15:14 EDT (-0400)
  Moving the vanishing point. (Message 1 to 17 of 17)  
From: Corey Woodworth
Subject: Moving the vanishing point.
Date: 2 May 2002 01:19:49
Message: <3cd0cc75$1@news.povray.org>
Hmm, I'm no art major and I have no experience with photography so I'm
probably gonna use lots of made up terms when I try to explain what it is
I'm after. Just bear with me :)

I've got this great idea for a scene in my head (don't we all :) but I'm
having trouble setting up the camera. I'm sure there is an easy way to do
this, in any case I certainly HOPE there is! I have the camera in the exact
position I want it in, I have the look_at and sky vector set as well and
everything is going great but... I want to move the vanishing point. The
look_at vector IS the vanishing point and I have it right where I want it,
but I don't want the look_at vector to be in the center of the image.

I wish I could find a good example of what I'm trying to explain. This was
the best I could do.

http://www.harcourtschool.com/glossary/math/images/vanishing_p8.gif

see how the vanishing point is up at the top left not the center of the
image. Thats what I'm going for. So how can I do this?

Thanks,
Corey


Post a reply to this message

From: Ben Chambers
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 04:09:58
Message: <3cd0f455@news.povray.org>
Corey Woodworth wrote:

> I wish I could find a good example of what I'm trying to explain. This was
> the best I could do.
> 
> http://www.harcourtschool.com/glossary/math/images/vanishing_p8.gif
> 
> see how the vanishing point is up at the top left not the center of the
> image. Thats what I'm going for. So how can I do this?
> 
> Thanks,
> Corey

You don't actually set the vanishing point in POV.  Instead, the camera 
points in a direction such that the camera points from the "location" 
vector to the "look_at" vector.

The field of view is set with (IIRC) the angle parameter.

...Chambers


Post a reply to this message

From: Rune
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 05:27:43
Message: <3cd1068f@news.povray.org>
Just move the look_at point and/or the location point and the vanishing
point will be in some other part of your image.

In the image you posted, the location is to the left and above the box,
and the look_at point is slightly below and to the right of the center
of the box.

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:  http://rsj.mobilixnet.dk (updated Apr 14)
POV-Ray Users: http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Ring:  http://webring.povray.co.uk


Post a reply to this message

From: Antti Arola
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 07:07:17
Message: <slrnad279l.a36.aarola@skavara.ese>
On Thu, 2 May 2002 01:24:36 -0400, Corey Woodworth <cdw### [at] mpinetnet> wrote:
> see how the vanishing point is up at the top left not the center of the
> image. Thats what I'm going for. So how can I do this?

AFAIK there is no other way than cropping the output. Someone did this
in IRTC once (some kind of architectural theme): he wanted the vanishing
point to be near the bottom of the image, so he made the image something
like 1000 pixels high but cropped 400 rows from the bottom out of the
final image.

-- 
Antti Arola, edistyksenvastainen retropaskiainen

This message written by a complete asshole.


Post a reply to this message

From: Warp
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 07:32:11
Message: <3cd123bb@news.povray.org>
Antti Arola <aar### [at] lutfi> wrote:
> AFAIK there is no other way than cropping the output.

  It should be possible by shearing the camera in the exact same way as
shearing the box in:
http://enphilistor.users4.50megs.com/matrix.htm

  You can use the Shear_Trans() macro in transforms.inc to do this (I think
that some camera optimization had to be turned off in order for this to
work but I don't remember now which one; POV-Ray should give a hint in its
warning/error message).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Corey Woodworth
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 10:08:58
Message: <3cd1487a$1@news.povray.org>
> You don't actually set the vanishing point in POV.  Instead, the camera
> points in a direction such that the camera points from the "location"
> vector to the "look_at" vector.

You're misunderstanding me. I don't want to change the actual look_at vector
because my camera is looking where I want it. I want to move the location of
the look_at vector in the output file. In other words I have the look_at
vector where I want it in 3D space, but I don't have it where I want it in
2D space.

I really wish I could explain this better :)

Corey


Post a reply to this message

From: Corey Woodworth
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 10:11:30
Message: <3cd14912$1@news.povray.org>
"Antti Arola" <aar### [at] lutfi> wrote in message
news:slr### [at] skavaraese...
> On Thu, 2 May 2002 01:24:36 -0400, Corey Woodworth <cdw### [at] mpinetnet>
wrote:
> > see how the vanishing point is up at the top left not the center of the
> > image. Thats what I'm going for. So how can I do this?
>
> AFAIK there is no other way than cropping the output. Someone did this
> in IRTC once (some kind of architectural theme): he wanted the vanishing
> point to be near the bottom of the image, so he made the image something
> like 1000 pixels high but cropped 400 rows from the bottom out of the
> final image.

Yeah Cropping the output occurred to me, but the image I'm planning will
probably take a good deal of time to render so I was hoping I could avoid
rendering extra lines.

Corey


Post a reply to this message

From: Corey Woodworth
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 10:12:16
Message: <3cd14940$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3cd123bb@news.povray.org...
> Antti Arola <aar### [at] lutfi> wrote:
> > AFAIK there is no other way than cropping the output.
>
>   It should be possible by shearing the camera in the exact same way as
> shearing the box in:
> http://enphilistor.users4.50megs.com/matrix.htm

Thanks! I'll look into that and tell you how it goes :)

Corey


Post a reply to this message

From: Ib Rasmussen
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 13:18:58
Message: <3CD17554.30801@my.email.address>
Corey Woodworth wrote:

> Yeah Cropping the output occurred to me, but the image I'm planning will
> probably take a good deal of time to render so I was hoping I could avoid
> rendering extra lines.


You don't have to render the parts you don't need.

You can start and end the render at the rows and columns you need. 

Look up General Output Options in the help file.


/Ib


Post a reply to this message

From: Harold Baize
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 14:39:10
Message: <3cd187ce$1@news.povray.org>
What you are trying to do is very similar to the long discussion
of creating a stereo camera by shearing. Both involve using
shearing to accomplish cropping that could be done in
post processing. (see the Stereoscopy thread above).

Harold

"Corey Woodworth" <cdw### [at] mpinetnet> wrote in message
news:3cd14940$1@news.povray.org...
>
> "Warp" <war### [at] tagpovrayorg> wrote in message
> news:3cd123bb@news.povray.org...
> > Antti Arola <aar### [at] lutfi> wrote:
> > > AFAIK there is no other way than cropping the output.
> >
> >   It should be possible by shearing the camera in the exact same way as
> > shearing the box in:
> > http://enphilistor.users4.50megs.com/matrix.htm
>
> Thanks! I'll look into that and tell you how it goes :)
>
> Corey
>
>


Post a reply to this message

From: Harold Baize
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 14:40:24
Message: <3cd18818@news.povray.org>
Thanks Ib, that could be useful in rendering stereo pairs too.

Harold

"Ib Rasmussen" <thi### [at] myemailaddress> wrote in message
news:3CD### [at] myemailaddress...
> Corey Woodworth wrote:
>
> > Yeah Cropping the output occurred to me, but the image I'm planning will
> > probably take a good deal of time to render so I was hoping I could
avoid
> > rendering extra lines.
>
>
> You don't have to render the parts you don't need.
>
> You can start and end the render at the rows and columns you need.
>
> Look up General Output Options in the help file.
>
>
> /Ib
>


Post a reply to this message

From: Ben Chambers
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 21:15:49
Message: <3cd1e4c4@news.povray.org>
Corey Woodworth wrote:

>> You don't actually set the vanishing point in POV.  Instead, the camera
>> points in a direction such that the camera points from the "location"
>> vector to the "look_at" vector.
> 
> You're misunderstanding me. I don't want to change the actual look_at
> vector because my camera is looking where I want it. I want to move the
> location of the look_at vector in the output file. In other words I have
> the look_at vector where I want it in 3D space, but I don't have it where
> I want it in 2D space.

I really think that you're misunderstanding POV.  The look_at vector is 
precisely that - the point that the camera looks at.  Now, if you want the 
object the camera is looking at to be not in the center of the picture, 
then whatever *was* in the center of the picture would be the new look_at.

For example, say we have this:

/---------------\
|       |       |
|       |       |
|       |       |
|-------X-------|
|       |       |
|       |       |
|       |       |
\---------------/

Now, let's say we want to move the X to here:

/---------------\
|    |          |
|----X----------|
|    |          |
|    |          |
|    |          |
|    |          |
|    |          |
\---------------/

look_at should no longer point at X, because the camera is looking below and 
to the right of X.  Then, the new look_at would be O:

/---------------\
|    |  :       |
|----X----------|
|    |  :       |
|::::|::O:::::::|
|    |  :       |
|    |  :       |
|    |  :       |
\---------------/

This is what you want, right?  Then, make your look_at O, not X.

Hope this made sense :)

...Chambers


Post a reply to this message

From: Corey Woodworth
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 22:07:09
Message: <3cd1f0cd@news.povray.org>
> /---------------\
> |    |  :       |
> |----X----------|
> |    |  :       |
> |::::|::O:::::::|
> |    |  :       |
> |    |  :       |
> |    |  :       |
> \---------------/
>
> This is what you want, right?  Then, make your look_at O, not X.
>
> Hope this made sense :)

Thats what I want but I want to keep the vanishing point on X. like this:

 /---------------\
 |   \|/         |
 |----X----------|
 |   /|\         |
 |  / | \        |
 | /  |  \       |
 |/   |   \      |
 |    |    \     |
 \---------------/

kinda :)

Corey


Post a reply to this message

From: Corey Woodworth
Subject: Re: Moving the vanishing point.
Date: 2 May 2002 22:08:17
Message: <3cd1f111@news.povray.org>
> You don't have to render the parts you don't need.
>
> You can start and end the render at the rows and columns you need.
>
> Look up General Output Options in the help file.

Oh, wow! Didn't even think of that, Thats a great idea!

Corey


Post a reply to this message

From: Slime
Subject: Re: Moving the vanishing point.
Date: 4 May 2002 00:42:05
Message: <3cd3669d$1@news.povray.org>
> Thats what I want but I want to keep the vanishing point on X.

Well, technically, the vanishing point *will* stay on X just by moving the
camera or look_at vector. However, if you don't want to actually distort the
scene, that is, if you only want to sort of translate the view along the
viewing window that you have, then you have to do a matrix transformation as
others have said.

Perhaps a simple example scene would help us illustrate the concepts.

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


Post a reply to this message

From: Harold Baize
Subject: Re: Moving the vanishing point.
Date: 6 May 2002 15:45:09
Message: <3cd6dd45$4@news.povray.org>
Unfortunately, the area not rendered is filled with black, so you
still have to edit the file in post processing. :-(

HB

"Harold Baize" <bai### [at] itsaucsfedu> wrote in message
news:3cd18818@news.povray.org...
> Thanks Ib, that could be useful in rendering stereo pairs too.
>
> Harold
>
> "Ib Rasmussen" <thi### [at] myemailaddress> wrote in message
> news:3CD### [at] myemailaddress...
> > Corey Woodworth wrote:
> >
> > > Yeah Cropping the output occurred to me, but the image I'm planning
will
> > > probably take a good deal of time to render so I was hoping I could
> avoid
> > > rendering extra lines.
> >
> >
> > You don't have to render the parts you don't need.
> >
> > You can start and end the render at the rows and columns you need.
> >
> > Look up General Output Options in the help file.
> >
> >
> > /Ib
> >
>
>


Post a reply to this message

From: Marc Jacquier
Subject: Re: Moving the vanishing point.
Date: 7 May 2002 03:17:27
Message: <3cd77f87$1@news.povray.org>
"Harold Baize" <bai### [at] itsaucsfedu> a écrit dans le message de news:
3cd6dd45$4@news.povray.org...
> Unfortunately, the area not rendered is filled with black, so you
> still have to edit the file in post processing. :-(
>
Just cropping is not a big edition, is it? :-)
Marc


Post a reply to this message

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