GithubHelp home page GithubHelp logo

stuffmatic / blam Goto Github PK

View Code? Open in Web Editor NEW
641.0 105.0 95.0 818 KB

🚨 No longer maintained. Check out fSpy instead 🚨 A camera and projector calibration toolkit for Blender that also does automatic 3D reconstruction of geometry with rectangular faces.

Home Page: https://fspy.io/

License: GNU General Public License v3.0

Python 100.00%

blam's Introduction

🚨 No longer maintained. Check out fSpy instead 🚨


What is this?

This is BLAM, a camera and video projector calibration toolkit for Blender in the form of an add-on, written in python, that facilitates modeling based on photographs.

To get development progress updates, either check back here regularly or follow me on Twitter.

Bugs can be reported here.

Getting started

  1. Download the latest release, decompress the file and locate the actual add-on file src/blam.py.
  2. Install
  3. Check out the introduction video, this tutorial video and read the user's guide.

Getting involved

The easiest way to get involved is testing the add-on and providing bug reports. This blenderartists thread is a good place to provide other kinds of input, like feature suggestions

If you're interested in helping out on the coding side, let me know.

Getting nerdy

blam's People

Contributors

ideasman42 avatar stuffmatic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blam's Issues

dont have clip editor or static camera calibration

open user preference settings and blam is activated but i cant use any of the tools. i search for camera calibration and i can use the calibration that way but it will always fail to do so because i cant specify how i want it to calibrate the camera.

Blam on Hash: 3b71cab

It seem that the new tab interface in blender make BLAM
losing is way to grease pencil.

line 1950, in execute
M = self.computeCameraRotationMatrix(Fu, Fv, f, P)
line 1661, in computeCameraRotationMatrix
if arePythonMatricesRowMajor():
line 401, in arePythonMatricesRowMajor
rev = bpy.app.build_revision
etc....

No Static Camera Calibration

I feel kind of for asking the question because the answer is probably very simpel.

I installed the addon in Blender 2.79 and there are only the photo modeling tools under the misc tab.
Were can I find the static camera calibration?

Ps: I already re downloaded the addon and reinstalled it but that did not help.

Please help
thanks ( ;

bildschirmfoto 2018-01-19 um 20 17 23

3D Photo Scans

just an idea from working with "Animal Logic"

Blam would be even more awesome if was more utilized in camera tracking and camera 3D photo scans to help generate points and more accurate 3D layout

i believe with this in mind this would help turn Blender into a tracking tool of choice for the industry. At Animal Logic we were using "https://www.3dequalizer.com/"

and I have to say that Blender can do most of what this but could do things more effeciently than 3DE. This is were Blam comes in because Blam is a Visual calculator.

an example that Blam maybe be able to be more utilized is Lens breathing. Blam could perhaps help calculate the 1st zoom length to the next zoom length this can happen multiple times so being able to set the length up across multiple keyframes would help the camera create more accurate data. This date could be then been combined with track points which out help define movement and interpolations from one Blam grease point markup to the next

Lens breathing also occurs on focus pulling.

if you would like an actual conversation about this then feel free to PM me and on google hangouts

Z-axis flipped upside down

BLAM 0.6 doesnΒ΄t work for me with blender 2.69 and 2.71. Everything is fine except for the camara which is alway upside down.
bildschirmfoto 2014-06-26 um 21 45 15

Installing BLAM v0.4 on Blender 2.66.1

Hello Per,

I have had trouble enabling BLAM. I've tried installing two ways; one, manually copying the blam.py to the addons folder (successfully) but Blender won't allow me to check the check box in User Preferences; two, Install from File... (the zipped file and having first deleted the first occurrence in the addons folder) - same as before, the addon remains grayed out.

Thank you for any pointers.

Kelly

compute camera translation?

Is there any way to compute camera translation component? Currently , I saw that it is being set to

cam.location = (0, 0, 2)

We are trying to apply blam on a video (sequence of images) and would like to export the camera pose matrix computed by blam.

Would this be possible?

Calibration generates bad focal length

Using OSX, blender 2.67b

I've tried 5 seperate calibrations, and none have had the axes correctly aligned. The camera angles appear to be perfect however, since I'm able to fix the focal length by hand.

Addon crashes on startup

on blender 2.69 rc1, the addon crashes on load:
(blam 0.4)

Traceback (most recent call last):
File "/home/usrwe/Downloads/blenderLatest/2.69/scripts/modules/addon_utils.py", line 311, in enable
mod.register()
File "/home/woelper/.config/blender/2.69/scripts/addons/blam.py", line 1920, in register
initSceneProps()
File "/home/woelper/.config/blender/2.69/scripts/addons/blam.py", line 1887, in initSceneProps
scn = bpy.context.scene
AttributeError: '_RestrictContext' object has no attribute 'scene'

Is portrait orientation supported?

I recently used BLAM on a scene following along from the "Getting Started" video tutorial, and something strange happened - the camera turned on its side. I used axes Y (wall) and Z (floor) to map a portrait-oriented photo. I couldn't see any reason why it flipped on its side, but thought it might be because of the orientation of the photo. I admit I haven't read all the documentation, so it could be user error, but I'll submit this as an issue just in case.

This add-on was a huge help for the project I was working on, even having to view it sideways ;-) Thanks

Forward sub requires non-zero elements on the diagonal

Following the tutorial we tried a new image, which is basically a wall and floor seen straight from the front, but we get an error when trying to Calibrate active camera:

blam.py line 273:[...]
AssertionError: Forward sub requires non-zero elements on the diagonal

Installazione BLAM

Buongiorno.
Ho Blender 2.79 e W.10, ho installato blam lo vedo nella scheda e l'ho attivato sembra tutto ok, ma poi quando vado per operare su foto non mi escono le schermate di controllo come se il programma non venisse "letto" o trovato. Cosa posso fare? Grazie

Solving with 0.6 on blender 2.76b leads always to bpy.app object has no attribute "build revision"

HI,
I just try to solve a simple example but it fails... minimalistic 2 lines in one greace pencil layer, one vanishing point (2 is not working either..)
no, not parallel lines ;o)...

Traceback (most recent call last):
File "C:\Users\d052074\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\blam.py", line 1950, in execute
M = self.computeCameraRotationMatrix(Fu, Fv, f, P)
File "C:\Users\d052074\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\blam.py", line 1661, in computeCameraRotationMatrix
if arePythonMatricesRowMajor():
File "C:\Users\d052074\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\blam.py", line 401, in arePythonMatricesRowMajor
rev = bpy.app.build_revision
AttributeError: 'bpy.app' object has no attribute 'build_revision'

location: :-1

BLAM does not appear in "Add-ons" menu in Preferences

Hey all, I have a bit of issue with this. I don't expect a response, but if you happen to know you may help someone else in the future.

My issue is essentially that I cannot find BLAm in the add-ons menu to activate it. I have searched it, looked for it manually, and checked testing. I have also attempted to move the .py files to the base folder. Nothing had made it appear, and I do not know what else to do. It may have been broken by some change in 2.78 (the current version I am using)+, as there is no indication otherwise.

BLAM.py type-o

On line 22 there is a misplaced slash causing the addon not to be registered properly.

Project background does not copy 'Camera Shift' parameter

I seem to be having a recurring issue - where the project background gives me a texture which is not correctly aligned with the background image. I get around this by manually copying the camera shift parameters to texture projector camera.

If it makes any difference - in movie clip editor - I always select Optical Centre - 'from 3rd vanishing point'

Attached is some screenshots showing the issue.

blender blam screenshot_movie clip editor

blender blam screenshot_camera shift settings

blender blam screenshot_texture projector

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.