Giter VIP home page Giter VIP logo

blender_photo_reconstruction_tools's Introduction

Blender Photo Reconstruction Tools

This plugin provide tools to:

  • import and setup cameras + photos from photogrammetry software AgiSoft Photo Scan
  • easy navigate between all imported cameras using hot keys and automatically filtering cameras for current selection only
  • some tools to simplify reconstruction process

Cover

Import cameras from AgiSoft Photo Scan to Blender:

Imported camera example

There is two camera export options available in Photo Scan:

  • Export cameras as .xml
  • Export .DAE model with included cameras

An .xml file contain all information regarding cameras including focal length and image orientation. Using .xml file you can update existing cameras.
The .dae model contains only camera position/orientation so you has to provide focal length manually.
Both methods work fine but .xml requre less manual setup

Camera import workflow with .XML

At Photo Scan:

  • export cameras to .XML
  • export undistorted images: Export -> Undistort Photos, filename template {camera}.{fileext}

At Blender:

  • Open "Photo Reconstruction" panel -> Import camera. Choose .xml file, press "Load Cameras"
  • Open "Photo Reconstruction" panel -> Load Images. Select folder with saved undistorted photos, press "Load Images"

** "Photo Reconstruction" panel is located at the rigth side of 3D view (can be folded under [<] thing)

Photos orientation

If your photo set contain both vertical and horisontal captured photos it can be convenient to rotate such cameras to preserve general scene orientation on screen.
Use "Rotate image" section of "Import Camera/Image" tools to adjust image rotation.
This effect is achieved by rotating both camera and image. But this also require to adjust render area for such rotated cameras. If camera sensor/image does not fit scene try to use "Navigation" panel->"Refresh" button

Import markers

The existing PhotoScan marker export function only exports the marker references not the calculated marker positions. If you create marker with "Place marker" instead of "Add marker" then it will not have reference but still have position.
To export marker positions use the marker_positions.py which wil export markers to CSV file
Import markers CSV file with "Photo Reconstruction" panel -> Import markers

Navigation

Navigation panel

  • Navigate through cameras with Ctrl-Left / Ctrl-Right
  • Toggle photo visibility with Ctrl-Down
  • Toggle imported mesh visibility with Ctrl-Up ("mesh1")

Alpha

Change photo transparency

Center selected

Put selection center in the middle of viewport

Hide other cameras

Hide all cameras except the active one

Sort

Criteria to choose next camera. Keep in mind that 'sorted' camera list is not reversable as it is different for each selected camera.

  • None: use cameras order within scene data
  • Distance: choose closest camera in selected direction
  • Camera X/Y/Z: choose camera which have closest X/Y/Z coordinate within current camera space

Filters

Distance: filter out too large jumps between cameras while navigating
Angle: filter cameras with view direction too different from current camera

Quick Export

Allow one click export objects from export list.
Silently overwrite selected file by exporting listed meshes in OBJ format. File format is tuned to import back in to photogrammetry software to apply textures.

  • Axis: Z up, Y forward
  • No materials and UV
  • Apply modifiers, write edges, triangulate faces

Tools:

Camera orientation:

  • Save current view orientation with Photo Reconstruction -> Save Orientation
  • Switch to camera according selected saved orientation Shift-Home

Miscellaneous:

  • Change selected object local axis orientation to current with "Set obj orientation"
  • Measure selected edge lentgth with "Edge length"

blender_photo_reconstruction_tools's People

Contributors

nightgryphon avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.