111_cameraMatch

11 votes
Version: 
0.4
Date Updated: 
05/19/2012
Author Name: 
Andrei Kletskov (111)

This is a script that creates camera according to perspective lines on your image. It is sort of a beta version and has no error handling yet, so be warned:).

1 - get an image for which you want a camera being created.
2 - run the script (it is ordinary maxscript).
3 - press first button in UI and select the image
4 - an image plane and helper curve will be created
5 - modify helper curve (subcurves) so that they follow perspective lines, the vanishing points with three pairs of subcurves
6 - press the second button in UI, the camera with correct FOV will be created and another one, aligned to the image. That's all.
Testing needed, my tests show good results.

Acknowledgments go to sanctus (http://somesanctus.blogspot.com/), who made a similar script for maya, thank him a lot for the main idea.

how to use mini tutorial - http://andklv.narod.ru/tut_mini/minitut_10/111_cameraMatch_tutorial.html

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
AlexYu's picture

tip for AlexYu

Thanks!

VitaminD's picture

tip for AlexYu

after creating standard camera
press P to go from camera view to perspective
select vray camera (or just create one now)
and press ctrl+C
it will align vraycam to current view (it can be a bit different though)

Yusuf_ES's picture

Thanks.

Good script. Thank you. Very helpfull

AlexYu's picture

nice script

Really good script and thank you for sharing.
Is is possible to create Vray Cam instead of a Max Cam?

StaazVaind's picture

thx for the script

topic says all

dub73's picture

when I flipped the lines, the

when I flipped the lines, the one form the top goes to the bottom, the camera is not flipped (max 2012)

dub73's picture

interiors

Hi, Script looks promising. Is it possible to match interiors as well? I couldn't get it to work. I get extreme distorted results?

cheers

dub

111's picture

mirrored camera solved

I hope I have solved the issue with mirrored camera (in version 0.4). In case camera islooking down, the aligned camera has appeared to be mirrored. Now this case should work ok.

Pvt.hudson's picture

mirrored camera

Hi first off. this script is unbelievable good.
i use to pan, orbit, rotate,... till i got a good match.

with this , life's great :)

i also struggled with the mirrored camera. but it happened when the help lines didnt had a blunt angle.
can this be the cause?
when you get that lines good (blunt angle). the camera resolves ok.

grtz
and thanks again for this.

Tommy

bronius's picture

mirrored camera

Yes, I've got same mirrored camera..

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.