Skip to content

img2cube

by LongLiveTheCube·Modeling

Images © LongLiveTheCube. Used for product review; image policy.

Why we like it

img2cube earns its place in the Blender extensions library for handling camera matching entirely inside Blender, with no external app in the loop.

What is img2cube?

img2cube is a free camera-matching extension for Blender from LongLiveTheCube. Starting from a photo, you draw lines along edges that are parallel in real life, then click Solve. The solver recovers focal length, rotation, and principal point using SVD. You can run a 2-VP solve for a quick result or a 3-VP solve for higher accuracy, with the residual reported in pixels as precision feedback.

Enter one known real-world measurement, such as a door height, and the whole scene rescales to match. A depth graph propagates measured lengths through connected segments via BFS, including across T-junctions, so unmeasured segments get 3D lengths automatically. Clicking any drawn line or extension places a Blender Empty at the computed 3D position, and snap points auto-snap to line intersections for precise placement.

The extension works entirely inside Blender with no external app, using only numpy and mathutils, both shipped with Blender. Version 1.0.6 supports Blender 4.2 LTS and newer and is released under GPL-3.0-or-later.

Who is img2cube best for?

img2cube is best for blender artists reconstructing buildings or scenes from reference photos who need the camera to match the real perspective before modeling.

How much does img2cube cost?

img2cube is completely free to download and use.

Key features

  • Camera solve from vanishing points that recovers focal length, rotation, and principal point via SVD
  • 2-VP or 3-VP solve — two vanishing points for a quick solve, three for higher accuracy
  • Real-world scale from a single known measurement, rescaling the entire scene to match
  • Depth graph propagation that carries measured lengths through connected segments via BFS, including T-junctions
  • 3D snap points placed as Blender Empties by clicking any drawn line or extension
  • Intersection snapping so snap points and origin picks land on computed line intersections
  • Precision feedback that reports the solve residual in pixels

Tags

#camera matching#perspective solve#vanishing points#3D snap points#reference photo#modeling#Blender extension

Frequently asked questions

Does img2cube work with Blender 4.2 LTS?

img2cube supports Blender 4.2 LTS and newer. Version 1.0.6 runs entirely inside Blender with no external application, relying only on numpy and mathutils, both of which ship with Blender itself. That means there are no bundled wheels or extra dependencies to install. You work from the Image Editor's N-panel, loading a photo, drawing lines, and solving the camera without leaving the program. If you are on an older Blender release, check the developer's GitHub page for details before installing.

How do I install img2cube in Blender?

img2cube can be installed directly through Blender's extension system. Open Edit then Preferences then Get Extensions, search for img2cube, and click Install. If you prefer a manual route, download the .zip from the developer's releases and either drag it into Blender or use Get Extensions then Install from Disk. Once installed, load an image in the Image Editor, open the N-panel, and switch to the img2cube tab to begin. The extension is small in size, so installation is quick.

How many lines does img2cube need to solve the camera?

img2cube needs at least two lines per axis across at least two axes, so four lines minimum, drawn along edges that are parallel in real life. You assign each line to the X, Y, or Z axis, then click Solve to recover focal length and rotation. The developer notes that fewer accurate lines beat many rough ones, and that extra lines are mainly useful as snap-point targets. A residual is reported in pixels so you can judge how well the solve fits.

Does img2cube require external apps or extra dependencies?

img2cube runs completely inside Blender, with no external application to switch to. It uses only numpy and mathutils, both shipped with Blender, so there are no bundled wheels or additional dependencies to manage. This also makes the extension straightforward to review on the official Blender Extensions store. The full workflow, from loading a photo to placing 3D snap points, happens in the Image Editor and 3D View without leaving Blender.

Is img2cube free, and what license does it use?

img2cube is listed as free here, and the developer states it is free and always will be. It is distributed under the GNU General Public License v3.0 or later, which is required for Blender extensions. For current licensing terms or ways to support the project, check the developer's page. The extension is available through Blender's Get Extensions browser as well as the developer's GitHub releases.

Alternatives to img2cube

Also in Modeling for Blender.

Similar plugins