 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I have some photograph and I know coords of some its points in 3D space.
I need to calculate camera parameters, which will match the photograph,
so I can render some new object into it later.
Any ideas above it?
Thanks
Disnel
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Rune
Subject: Re: How to get camera parameters from photohraph
Date: 2 Mar 2001 12:56:25
Message: <3a9fdec9@news.povray.org>
|
|
 |
|  |
|  |
|
 |
"Disnel" wrote:
> I have some photograph and I know coords of some its points
> in 3D space. I need to calculate camera parameters, which
> will match the photograph, so I can render some new object
> into it later.
>
> Any ideas above it?
More information needed...
What are you going to map the photograph onto?
Do you know the original co-ordinate of the camera?
How exactly have you planned to set up your scene?
Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> What are you going to map the photograph onto?
I have two buildings with approx 20 levels
>
> Do you know the original co-ordinate of the camera?
Not exactly, let we assume that no.
>
> How exactly have you planned to set up your scene?
>
If I understand good the question, at the photo there are some other
buildings and I know their sizes and positions in my virtual world. Thus
I can create them and I need to setup camera to match their rendered
image with photo.
Disnel
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Rune
Subject: Re: How to get camera parameters from photohraph
Date: 2 Mar 2001 14:21:35
Message: <3a9ff2bf@news.povray.org>
|
|
 |
|  |
|  |
|
 |
"Disnel" wrote:
> I have two buildings with approx 20 levels
>
> at the photo there are some other buildings and I know
> their sizes and positions in my virtual world. Thus I
> can create them and I need to setup camera to match
> their rendered image with photo.
I tried something like that once. I don't know if there's a specific method
that can be used, all I can suggest is tweaking, tweaking and more
tweaking...
But anyway, in order to project a photo onto a scene you need a very special
mapping type. I suggest you have a look at my illusions include file. It can
project an image onto any surface in such a way that the image is not
distorted by perspective. If you need any help with it, don't hesitate to
ask me!
http://rsj.mobilixnet.dk/3d/illusion/illusion.html
Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> I tried something like that once. I don't know if there's a specific method
> that can be used, all I can suggest is tweaking, tweaking and more
> tweaking...
What might help is some algorithm, which is able to compute cameras eye, target, angle
or right and left vectors
from pairs 3D vectors in model space and their apropriate 2D vector in images space.
>
> But anyway, in order to project a photo onto a scene you need a very special
> mapping type. I suggest you have a look at my illusions include file. It can
> project an image onto any surface in such a way that the image is not
> distorted by perspective. If you need any help with it, don't hesitate to
> ask me!
> http://rsj.mobilixnet.dk/3d/illusion/illusion.html
>
Thanks, it looks good. But what I need now is to map photo as background
of whole image (this I've done, it was simple) and then match my
rendered image to photo (with this point I have serious problems...)
See p.b.i...
Disnel
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I have seen some software, that can extract a 3d image from a photo. I have
never used it and I would have to look for it again, but maybe it would
help?
--
C.J. POV User
PRSG (POV Ray Study Gallery)
http://hyperion.spaceports.com/~povstudy/
mailto:hou### [at] yaoo com
Disnel <dis### [at] hlavacek-partner cz> wrote in message
news:3AA### [at] hlavacek-partner cz...
>
> > I tried something like that once. I don't know if there's a specific
method
> > that can be used, all I can suggest is tweaking, tweaking and more
> > tweaking...
>
> What might help is some algorithm, which is able to compute cameras eye,
target, angle or right and left vectors
> from pairs 3D vectors in model space and their apropriate 2D vector in
images space.
>
> >
> > But anyway, in order to project a photo onto a scene you need a very
special
> > mapping type. I suggest you have a look at my illusions include file. It
can
> > project an image onto any surface in such a way that the image is not
> > distorted by perspective. If you need any help with it, don't hesitate
to
> > ask me!
> > http://rsj.mobilixnet.dk/3d/illusion/illusion.html
> >
> Thanks, it looks good. But what I need now is to map photo as background
> of whole image (this I've done, it was simple) and then match my
> rendered image to photo (with this point I have serious problems...)
>
> See p.b.i...
>
> Disnel
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Bob H
Subject: Re: How to get camera parameters from photohraph
Date: 2 Mar 2001 19:03:24
Message: <3aa034cc@news.povray.org>
|
|
 |
|  |
|  |
|
 |
"C.J." <hou### [at] yahoo com> wrote in message
news:3aa01a3d$1@news.povray.org...
> I have seen some software, that can extract a 3d image from a photo. I
have
> never used it and I would have to look for it again, but maybe it would
> help?
Photomodeler Lite and Canoma are a couple:
http://www.programfiles.com/index.asp?ID=5681
http://www.programfiles.com/index.asp?ID=6490
Bob H.
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Alf Peake
Subject: Re: How to get camera parameters from photohraph
Date: 3 Mar 2001 10:53:28
Message: <3aa11378@news.povray.org>
|
|
 |
|  |
|  |
|
 |
The few times I tried this I used a "try-and-see" method.
Select a regular object in the photo, make a pov wireframe cube and
rotate and scale until it matches the photo perspective. Repeat with a
second object to confirm camera position. A 10 frame animation of a
camera parameter helps.
Alf
"Disnel" <dis### [at] hlavacek-partner cz> wrote in message
news:3A9### [at] hlavacek-partner cz...
>
> I have some photograph and I know coords of some its points in 3D
space.
> I need to calculate camera parameters, which will match the
photograph,
> so I can render some new object into it later.
>
> Any ideas above it?
>
> Thanks
>
> Disnel
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: C J - POV User
Subject: Re: How to get camera parameters from photohraph
Date: 3 Mar 2001 14:53:56
Message: <3aa14bd4@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Bob,
Have you used either? I always wondered what the output was like (a mesh
model?) and how well they work....
--
C.J. - POV User
POV Ray Study Gallery
http://hyperion.spaceports.com/~povstudy/
hou### [at] yahoo com
Bob H. <omn### [at] msn com> wrote in message
news:3aa034cc@news.povray.org...
> "C.J." <hou### [at] yahoo com> wrote in message
> news:3aa01a3d$1@news.povray.org...
> > I have seen some software, that can extract a 3d image from a photo. I
> have
> > never used it and I would have to look for it again, but maybe it would
> > help?
>
> Photomodeler Lite and Canoma are a couple:
>
> http://www.programfiles.com/index.asp?ID=5681
>
> http://www.programfiles.com/index.asp?ID=6490
>
> Bob H.
>
>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Bob H
Subject: Re: How to get camera parameters from photohraph
Date: 3 Mar 2001 15:47:32
Message: <3aa15864@news.povray.org>
|
|
 |
|  |
|  |
|
 |
I tried both, yes. Neither is something I can work with, I'm GUI impaired
;-)
Canoma isn't exactly what the original question would call for I suppose
because it maps images onto models you build. Photomodeler actually uses a
camera perspective with the photos from it to build the models. I managed
to make some Canoma things, although badly, but in Photomodeler I couldn't
get a antique telephone to become textured with the photos I made of it.
Got the points in enough I thought except it wouldn't apply a image to the
surfaces. It's such a long process I called it quits pretty quickly instead
of dragging on and on with it. Supposedly it does work right, main thing is
that it uses your camera lens properties as a guide to the end result.
Bob H.
"C.J. - POV User" <hou### [at] yahoo com> wrote in message
news:3aa14bd4@news.povray.org...
> Bob,
> Have you used either? I always wondered what the output was like (a mesh
> model?) and how well they work....
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |