Page 1 of 2 12 LastLast
Results 1 to 10 of 13
Like Tree7Likes

Thread: Revit and Camera Match / FOV and Focal Length

  1. #1
    Administrator Munkholm's Avatar
    Join Date
    December 7, 2010
    Location
    Kingdom of Denmark
    Posts
    4,142
    Current Local Time
    12:38 PM

    Revit and Camera Match / FOV and Focal Length

    Inspired by a wish in the Wish List sub-forum, I´ve created the attached family to make Camera Matching easier in Revit:

    (Make sure to measure your location when shooting the photo to be matched)
    • Place the the family in the project, at the same location and direction as you real photo.
    • Change the "Camera Height" and "Target Height" in the family to match your real photo (Instance parameters).
    • Make sure the "Focal Length" is set to 23.7 mm (Instance Parameter), which apparently is the equalliant of the standard Revit Camera.
    • Take note of the "Target Width" in the family, i.e. 4683 mm if the Focal Length = 23.7 and the Camera Distance is 5000 mm
    • Take note of the "Target Height" in the family, i.e. 3122 mm if the Focal Length = 23.7 and the Camera Distance is 5000 mm
    • Place a Revit Camera on top of the Family, with the same direction and length.
    • Go to the Camera view and change the Crop Size width to 4683 mm (Target Width) - Make sure to check "Scale (Locked Proportions)"
    • Now change the Crop Size Height to 3122 (Target Height) - Make sure to check "Field of View"

    You should now have a Revit Camera that matches the Family, but to make it all fit the actual photo:
    • Open the photo, and in the properties take note of the Focal Length, i.e. 18 mm if you used a wide angle lense.
    • In the family, change the "Focal Length" to match the photo properties, i.e. 18 mm
    • Take a new note of the changed "Target Width" and "Target Height" (6167 mm and 4111 mm if you followed the above examples)
    • In the camera view, change the Crop Size to match the above - Make sure to check "Field of View"

    Your camera view should now be a pretty exact match of the photo!

    Disclaimer:
    The attached family is based on the physics of a Canon EOS 1000D, and is being calculated based on the formulas at Wikipedia - Use at own risk.
    Attached Thumbnails Attached Thumbnails Revit and Camera Match / FOV and Focal Length-fov.jpg  
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    May 19, 2011
    Location
    under the bridge - Italy
    Posts
    24
    Current Local Time
    11:38 AM
    Thank you so much Munkolm! your family is a blessing, post of the month for sure. If I have understood properly the formulas, they are all driven by the dimensions of the camera sensor, right? just for using it with my old nikon..

    thanks again
    bye
    MB

  3. #3
    Administrator Munkholm's Avatar
    Join Date
    December 7, 2010
    Location
    Kingdom of Denmark
    Posts
    4,142
    Current Local Time
    12:38 PM
    You are welcome - and welcome to the forum too

    And yes, if you know a little about your camera, you should be able to adjust the size of the sensor in the family.

    Usually the camera specs. also include minimum and maximum Angle of View with minimum and maximum Focal Length with the standard objective - Use that to make sure that the family is doing the right calculations for your camera.

  4. #4
    Moderator
    "OMG I killed Revit"
    dzatto's Avatar
    Join Date
    December 9, 2010
    Location
    Dallas, TX
    Posts
    5,202
    Current Local Time
    05:38 AM
    How do you come up with this stuff?? Greatness.

  5. #5
    New Member
    Join Date
    June 16, 2011
    Location
    Mallorca - Spain, Berlin - Germany
    Posts
    2
    Current Local Time
    10:38 AM
    Quote Originally Posted by dzatto View Post
    How do you come up with this stuff?? Greatness.
    Hi,

    Torsten posted some basics 3 years ago @cad.de

    http://ww3.cad.de/foren/ubb/Forum329...8.shtml#000009

    Suerte y gracias Klaus

  6. #6
    New Member
    Join Date
    July 29, 2011
    Posts
    1
    Current Local Time
    04:38 AM

    Revit 2012 camera questions

    I would like to be able to match an existing photo using Revit 2012. I downloaded the cannon family in the post and loaded it into the drawing using the "load into project" option after opening the camera file in 2012.

    The only place I can find where I can load a camer is under view, 3d view and then camera. It allows me to load a camera but I cannot find how to specify what the camera type or how to specify the cannon camera family.

    Thanks


    Quote Originally Posted by Munkholm View Post
    Inspired by a wish in the Wish List sub-forum, I´ve created the attached family to make Camera Matching easier in Revit:

    (Make sure to measure your location when shooting the photo to be matched)
    • Place the the family in the project, at the same location and direction as you real photo.
    • Change the "Camera Height" and "Target Height" in the family to match your real photo (Instance parameters).
    • Make sure the "Focal Length" is set to 23.7 mm (Instance Parameter), which apparently is the equalliant of the standard Revit Camera.
    • Take note of the "Target Width" in the family, i.e. 4683 mm if the Focal Length = 23.7 and the Camera Distance is 5000 mm
    • Take note of the "Target Height" in the family, i.e. 3122 mm if the Focal Length = 23.7 and the Camera Distance is 5000 mm
    • Place a Revit Camera on top of the Family, with the same direction and length.
    • Go to the Camera view and change the Crop Size width to 4683 mm (Target Width) - Make sure to check "Scale (Locked Proportions)"
    • Now change the Crop Size Height to 3122 (Target Height) - Make sure to check "Field of View"

    You should now have a Revit Camera that matches the Family, but to make it all fit the actual photo:
    • Open the photo, and in the properties take note of the Focal Length, i.e. 18 mm if you used a wide angle lense.
    • In the family, change the "Focal Length" to match the photo properties, i.e. 18 mm
    • Take a new note of the changed "Target Width" and "Target Height" (6167 mm and 4111 mm if you followed the above examples)
    • In the camera view, change the Crop Size to match the above - Make sure to check "Field of View"

    Your camera view should now be a pretty exact match of the photo!

    Disclaimer:
    The attached family is based on the physics of a Canon EOS 1000D, and is being calculated based on the formulas at Wikipedia - Use at own risk.

  7. #7
    Moderator
    "Mark Twain"
    mdradvies's Avatar
    Join Date
    December 16, 2010
    Location
    Boxtel, Netherlands
    Posts
    4,553
    Current Local Time
    10:38 AM
    Quote Originally Posted by philopep View Post
    I would like to be able to match an existing photo using Revit 2012. I downloaded the cannon family in the post and loaded it into the drawing using the "load into project" option after opening the camera file in 2012.

    The only place I can find where I can load a camer is under view, 3d view and then camera. It allows me to load a camera but I cannot find how to specify what the camera type or how to specify the cannon camera family.

    Thanks
    I'm afraid you're mixing to things up... The Camera FAMILY can be loaded and placed using the "Component" button in the Home Tab. THIS IS NOT THE ACTUAL VIEW!!! Place this in Plan View.
    After placing the camera FAMILY, go to the View Tab, click on the drop-down arrow beneath 3D view and select camera. Now place the camera VIEW-icon directly on top of the camera FAMILY and modify the settings for both in order to match views.
    cganiere likes this.

  8. #8
    Forum Addict GMcDowellJr's Avatar
    Join Date
    December 21, 2010
    Location
    Phoenix, AZ
    Posts
    1,879
    Current Local Time
    03:38 AM

    Alternate Family Version

    I just found this thread (no idea how I got here now) and started playing with the family but it wasn't working the way I assumed it would so I dug into into and reworked it to make sense for our workflow and thought I'd share the results.

    Basically, instead of entering values for the camera crop at the target point (which will produce a rather large image in terms of overall dimensions) it puts them in the range of what a default Revit camera uses (6"x4.5").

    In case anybody tries to reverse engineer this I had to use a different focal length than Munkholm used to get things to work. This document from Pacific Alliance Technologies (http://forums.autodesk.com/autodesk/...t%20Camera.pdf) suggests a focal length of 38.6mm with a 50 degree horizontal field of view. Working backwards from those numbers I determined that the sensor size of the default Revit camera is 36mm x 27mm with a 60.5 degree diagonal field of view equivalent to a crop factor of .96

    This works a bit differently than Munkholm's;

    * Set Sensor Width/Height (type) from camera manufacturer's data in mm*
    * Set Focal Length (instance) from lense manufacturer's data in mm*
    * Transfer Crop Width/Height (instance) to the Revit camera's Model Crop Size fields with Field of View checked (later, if you need a bigger image, you can scale the crop)
    * Other values, like Eye/Target Elevation (instance), can be changed as needed. These aren't critical to get the camera view correct but might be useful if you want to visualize camera locations in views.

    (*These are number parameters. We work in imperial and seeing the inch version of metric is confusing.)

    That's it... hope you find it useful and thanks to Munkholm for the original family/idea!
    Attached Files Attached Files
    uaifestival likes this.

  9. #9
    New Member
    Join Date
    November 11, 2015
    Posts
    1
    Current Local Time
    10:38 AM
    Thanks for your post, but I have a question:
    I have a real photo and need to adjust my camera in revit In exact place which real photo has been taken.
    how can I do this?
    Thanks

    Quote Originally Posted by Munkholm View Post
    Inspired by a wish in the Wish List sub-forum, I´ve created the attached family to make Camera Matching easier in Revit:

    (Make sure to measure your location when shooting the photo to be matched)
    • Place the the family in the project, at the same location and direction as you real photo.
    • Change the "Camera Height" and "Target Height" in the family to match your real photo (Instance parameters).
    • Make sure the "Focal Length" is set to 23.7 mm (Instance Parameter), which apparently is the equalliant of the standard Revit Camera.
    • Take note of the "Target Width" in the family, i.e. 4683 mm if the Focal Length = 23.7 and the Camera Distance is 5000 mm
    • Take note of the "Target Height" in the family, i.e. 3122 mm if the Focal Length = 23.7 and the Camera Distance is 5000 mm
    • Place a Revit Camera on top of the Family, with the same direction and length.
    • Go to the Camera view and change the Crop Size width to 4683 mm (Target Width) - Make sure to check "Scale (Locked Proportions)"
    • Now change the Crop Size Height to 3122 (Target Height) - Make sure to check "Field of View"

    You should now have a Revit Camera that matches the Family, but to make it all fit the actual photo:
    • Open the photo, and in the properties take note of the Focal Length, i.e. 18 mm if you used a wide angle lense.
    • In the family, change the "Focal Length" to match the photo properties, i.e. 18 mm
    • Take a new note of the changed "Target Width" and "Target Height" (6167 mm and 4111 mm if you followed the above examples)
    • In the camera view, change the Crop Size to match the above - Make sure to check "Field of View"

    Your camera view should now be a pretty exact match of the photo!

    Disclaimer:
    The attached family is based on the physics of a Canon EOS 1000D, and is being calculated based on the formulas at Wikipedia - Use at own risk.

  10. #10
    Member Alex Page's Avatar
    Join Date
    December 14, 2010
    Location
    Wellington, New Zealand
    Posts
    497
    Current Local Time
    10:38 PM
    I believe you need to have measured where the photo was taken from - you cant follow these procedures without knowing the location of the camera when the photo was taken
    Last edited by Alex Page; November 13th, 2015 at 12:37 AM.

Page 1 of 2 12 LastLast

Similar Threads

  1. camera eye level?
    By cliff collins in forum Architecture and General Revit Questions
    Replies: 13
    Last Post: April 3rd, 2014, 10:28 PM
  2. Match Lines
    By dzatto in forum Architecture and General Revit Questions
    Replies: 29
    Last Post: May 19th, 2011, 08:46 PM
  3. Controlling width and length of array in line based families
    By tweg in forum Architecture - Family Creation
    Replies: 4
    Last Post: April 5th, 2011, 01:57 PM
  4. Tag with editable length on line?
    By autopeduffe in forum MEP - General
    Replies: 1
    Last Post: March 4th, 2011, 04:12 PM
  5. How to Get Property Lines to Match Your Survey
    By Scott Hopkins in forum Tutorials, Tips & Tricks
    Replies: 1
    Last Post: December 17th, 2010, 06:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •