BlenderSFM (structure from motion)

Hello,

I have stumbled upon an add-on called blenderSFM

It is based on well known open source photogrammetry tools (see :http://francemapping.free.fr/Portfolio/Prog3D/CMVS.html).

I am very interested in using it in the blender context.
Unfortunately I have not managed to get it working.

Has anyone tried this add-on with success ?

Blender_Us

Hi,
Have you made this?:
Run Blender as administrator

Hello Spirou4D,

Thank you for your reply.

To describe more accurately the problem, the add-on does run…
But after some time, a window pops up saying “sift.exe” is not working properly.
I have this message about “sift.exe” for every picture in the collection.
Then “bundler.exe”, then “RadialUndistort.exe”.

Running Blender as administrator gives the same.

Have you tried the add-on yourself ?

Blender_Us

Hello
Have you seen this http://micmac.ensg.eu/index.php/Accueil https://www.youtube.com/watch?v=JCdGJ3yoEE0

Thanks you so much brothermechanic , a new path to follow…from my country FRANCE !
PPT is a bad project, when you ask a question, nobody answer clearly: “Une vrai ratatouille de codes!”

Hello brothermechanic,

Thank you for the tip, I didn’t know this photogrammetry software MicMac.
I am looking for a tool that can easily be integrated in Blender.
Micmac relies on DOS command lines. I won’t favour this kind of tool.

I’ve tried VISUALSFM. It gives satisfactory results for reconstruction but the workflow towards Blender requires meshlab as I understand :
see https://www.youtube.com/watch?v=Nsl0fUtc2ug

As for BlenderSFM, examining python code, it seems the author has only built for win32 and linux.
I have a win64 computer. I’ll try to get the appropriate binaries and try my luck at modifying python source code.

Beforehand, I would like to know if anyone used this add-on successfully.

Blender_Us

It will be nice if you help to write micmac camera importer
I found only way - to convert mlp (meshlab scene generated by micmac)
Please read my topic

@brothermechanic You speak to who?

@Blender_Us No I havn’t use it yet because I didn’t know it but I am on Linux…I must change to my Vista and I am lazy…

>>Administrator
OK!

>> “sift.exe” & “bundler.exe”, & “RadialUndistort.exe” for every picture.
You uset it on windows sure?

@Spirou4D

I am really using BlenderSFM on Windows.
I had a look into the python code :
it calls the win32 binaries (.exe files) that were compiled previously.

There are lots of places in the python code where win 32 or linux binaries are called.
A thorough inspection of the cod is needed and then check whether a Win64 version is needed and then try to find it/compile it.

Lots of work!!!

I will stick for a while to the workflow with VisualSFM and MeshLab.
There are not many tools in blender to get a mesh from a point cloud (only some add-ons).
MeshLab or equivalent remains necessary.

Blender_Us

@ brothermechanic

Thank you for your answer.

I think writing the importer is beyond my reach at the moment.

Blender_Us

Hello all
This is my micmac researching

  1. installing
    win
    binaries http://logiciels.ign.fr/?Telechargement,20
    linux (generic)
    hg clone https://culture3d:[email protected]/hg/culture3d micmac
    cd micmac
    mkdir build
    cd build
    cmake …/ -DWITH_QT5=1
    make -j8 && make install
    you can use my gentoo package - https://github.com/brothermechanic/cg/tree/master/media-gfx/micmac
    (it have meshlab exporting support)
  2. tutorials
    try to follow this http://micmac.ensg.eu/index.php/Tutorials
  3. my results
    simple cloud with FAKE cameras https://yadi.sk/d/CJSGWQ3GuAKor
    reconstructed mesh in Cloud Compare from other micmac’s detalied cloud with vertex colors https://yadi.sk/d/1WhBBEVeuPbbL
    meshlab project with TRUE cameras generated by micmac https://yadi.sk/d/gRlhr5DZuAJtL (you can open it in meshlab directly)
  4. problems
    How to get sfm mesh + cameras in blender?
    Micmac can generate bundler scene by itself, but it dont work for me.
    And i found only way to transfer cameras is importing MLP meshlab project file to blender (or conversion it to anu supported format)
  5. question
    Can somebody write any helpful scripts?

ps: another small problem is loosing vertex color in points cloud

@ brothermechanic:

  1. questionCan somebody write any helpful scripts?

ps: another small problem is loosing vertex color in points cloud

I have send you a path to follow for your import script. have you seen it? HERE

I can’t answer you in this time because I am buzy but read other add-on’s files to import in Blender, please.

Hello
Yes, i saw it, thank you. But this is hard for me for now.

Later then… Je ne vais pas te laisser comme ça, avec un nom pareil MICMAC, ce n’est pas possible pour moi!
Byebye
Spirou4D

PS: Sais-tu ce que veut dire ce nom? Je t’expliquerais plus tard…

Sorry, i’m dont speak French
This mean - Yes?)))

My mother is dead the last week and I am buzy now…

This mean i help you later…wait and see!
bye bye
Spirou4D

Finally, my workflow will rely on visualSFM (http://ccwu.me/vsfm/), meshlab (http://meshlab.sourceforge.net/) and blender.

I use VisualSfm + OpenMVS (https://github.com/cdcseacave/openMVS) on Win10,
I use OpenMVG + OpenMVS (https://github.com/open-anatomy/SfM_gui_for_openMVG) on Linux 16.04

It’ll be wonderfull if someone would create an addon that let use OpenMVG + OpenMVS directly in blender :cool:

I’ve wrote an addon that allows to import results from VisualSfM, Colmap, OpenMVG and Meshroom.
In my experience VisualSfM is not as accurate as Colmap, OpenMVG or Meshroom (in terms of camera registration errors).
Also, Colmap and Meshroom allow to create not only Structure from Motion reconstructions, but also Multi-View Stereo results (i.e. meshes).