View Full Version : Camera matching for still images
CaptainObvious 10-27-2006, 12:37 PM Seriously, how the heck do you do it? :p Or rather, how do you do it well?
I need to comp together a 3D render of a redesigned building with a digital photo of the old one. Seeing how I have accurate measurements for the building, it should be mathematically possible to calculate where the camera is located and its focal length and so on. I haven't had much success doing it manually. I think I've managed to get it "close enough" manually, but I have a feeling this won't be the last time I have to do this, so having an application of some kind that does this automatically would be useful indeed.
Does anyone have any pointers, either for matching manually, or an application to use. I've found a metric ton of applications for match moving, but I don't know if they would work for still images.
I work in modo and Lightwave 8.5, in case it matters.
Thanks in advance. :)
|
|
fudini
10-28-2006, 02:08 AM
This "Set Extensions" by Jarrod Davis DVD is for lightwave:
http://www.desktopimages.com/VFX1.shtml
He goes through a process of matching camera angles where he lines up cubes and so forth but its still trial and error and a few educated guesses. I like it because he doesn't hide the trial and error process.
The book "Matchmoving" by Tim Dobbert also begins with an exercise of manually matching a still image but thats in Maya. He still makes a lot of good suggestions that are applicable to any 3D app.
If your reference was taken with a digital Cam often the lens info is embedded in the exif info of the original file which you can view in irfan view or something.
f.
CaptainObvious
10-28-2006, 11:14 AM
I'll look into that. Thanks. :)
CaptainObvious
10-30-2006, 09:24 AM
I found a rather excellent Lightwave plugin for this sort of thing. It's even free!
http://f23.aaa.livedoor.jp/~fisjunk/plugin/plugin.php?id=11&p=1&c=3&t=Layout&v=4#f (http://f23.aaa.livedoor.jp/%7Efisjunk/plugin/plugin.php?id=11&p=1&c=3&t=Layout&v=4#f)
Now I just need a good tutorial for matching lighting and getting good shadows. ;)
fudini
10-30-2006, 10:48 AM
Cool, thanks!!
Did you figure out how to use it?
It says (in Google Japanese translation):
"In order from the sample point for Object to agree to Background Image, camera parameter is adjusted.
Sample 6 samples or more please take the point.
Minimum of 2 as for the points please make sure not to ride same plane.
When [pointosetsuto] is used, only the point which belongs to point set is indicated.
With the left click with movement (with the right click sample point cancellation) of the sample point and the Alt + Shift + left drug zoom of view is possible with movement and the Alt + Shift + right drug of view."
hmm...
Come to think of it, I think Worley has a plug that has something to do with Camera matching too!
Lets see if I can remember the name ...
Ok, here it is. Its called "Camera Match". Doh! :rolleyes:
http://www.worley.com/taft/taft_cameramatch.html
f.
CaptainObvious
10-30-2006, 12:01 PM
Using the plugin is very simple. Create some low-resolution proxy geometry with important (and accurate!) measuring points. Set up the camera so it's not too far off from the backdrop.
Add the plugin to LW's interface somehow (keyboard shortcut, a menu, whatever), and activate it. In the window that pops up, add the backdrop in one of the pulldowns.
Then, simply drag the vertices so they align with the backdrop. I haven't experimented all *that* much with it yet, but I think that verts you don't touch aren't considered in the calculation. So if you have vertices for stuff that isn't visible on the backdrop, just ignore them.
Then click "ok" or whatever, and the plugin does the rest.
It basically works the same way as Worley's plugin, except it's supposedly better, and it's free...
fudini
10-31-2006, 12:16 AM
Wow!
Thanks for that, great stuff:applause:
Another thing I've been thinking of trying for a locked off shot.
1. Set up the camera on a tripod
2. Shoot the locked off shot.
3. Afterwards pan the camera away so as to have enough info to solve using conventional matchmove software and just use the first frame info.
But this is even better/faster and works with high-rez stills.
Cheers,
f.
CaptainObvious
10-31-2006, 11:22 AM
Wow!
Thanks for that, great stuff:bounce:
Another thing I've been thinking of trying for a locked off shot.
1. Set up the camera on a tripod
2. Shoot the locked off shot.
3. Afterwards pan the camera away so as to have enough info to solve using conventional matchmove software and just use the first frame info.
But this is even better/faster and works with high-rez stills.
Cheers,
f.
Unfortunately, you don't always have control over that part of the workflow. It wasn't me behind the camera. Otherwise that's exactly what I would've done. But... this method is even better!
jussing
10-31-2006, 04:21 PM
3. Afterwards pan the camera away so as to have enough info to solve using conventional matchmove software and just use the first frame info.I think panning would just give you a flat point cloud, you'd need to dolly or crane the camera to get the parallax needed to solve a matchmove.
But a 3D app like Max has a camera matching feature that will work if you estimate the measures of the scene.
Cheers,
- Jonas
fudini
11-01-2006, 05:39 AM
You're right!
I should have said
"3. Afterwards move the camera so as to have enough info to solve using conventional matchmove software and just use the first frame info."
f.
CGTalk Moderation
11-01-2006, 05:39 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.