norgeotloic / BakeMyScan

Blender add-on to turn high resolution scans into lowpoly assets
http://bakemyscan.org
GNU General Public License v3.0
145 stars 15 forks source link

Try to "integrate" OpenMVG #79

Open norgeotloic opened 5 years ago

norgeotloic commented 5 years ago

Related #56

I am finalizing the integration of OpenMVS and Colmap, but I need to check OpenMVG too, and that will wait a little bit, as I have to get familiar with the workflow first!

AndreaMonzini commented 5 years ago

Great ! i think it will be very useful because Colmap is not compatible with CPU + AMD with mesa driver like my system.

AndreaMonzini commented 5 years ago

For OpenMVG + OpenMVS i used this script and it works very well ( by @petern3, edited from @FlachyJoe):

[https://github.com/openMVG/openMVG/issues/619]

I had to edit also the sensor_width_camera_database.txt with the Exif info of my camera.

norgeotloic commented 5 years ago

Thanks for the reference, this should make everything more simple to me ! :smile:

AndreaMonzini commented 5 years ago

Thanks to you for the possibilities of BakeMyScan ! If i remember well we had just to change the path for theOPENMVG_SFM_BIN, OPENMVS_BIN and for theCAMERA_SENSOR_WIDTH_DIRECTORY in the script. Then the python script just need the input and output folder and some time to wait :)

I just had problem with RAM but it should be possible to set the --resolution-level in OpenMVS:

https://github.com/cdcseacave/openMVS/issues/335 https://github.com/cdcseacave/openMVS/issues/180

To check the Exif of the photos and to edit the sensor_width_camera_database.txt i just use GIMP 2.10: Menu --> Image --> Metadata -->View Metadata As alternative there is ExifTool by Phil Harvey: https://www.sno.phy.queensu.ca/~phil/exiftool/

norgeotloic commented 5 years ago

I'll keep that in mind, thanks for the additional info ( "thanks battle" going on :) )

I also have had troubles with RAM on my computer, and I already planned to add the resolution options to OpenMVS ( #81 )

BTW, maybe you knew already, but Colmap can run without Cuda enabled, just really slowly ( https://colmap.github.io/faq.html#available-functionality-without-gpu-cuda )

AndreaMonzini commented 5 years ago

For what i understand Colmap doesn't do the " dense reconstruction part" with other GPU, and i cannot complete the photogrammetry.

"...you can use all COLMAP functionality except the dense reconstruction part": https://colmap.github.io/faq.html#available-functionality-without-gpu-cuda

norgeotloic commented 5 years ago

Yep, sorry about that one :)

You can still use Colmap for the alignment and sparse reconstruction, then move to OpenMVS for dense reconstruction and mesh generation. At least that's the workflow I use which gives me the best results atm.

But again, I did not check OpenMVG just yet !

cdcseacave commented 5 years ago

OpenMVS now supports both OpenMVG and COLMAP SfM as input, pls see cdcseacave/openMVS#360 for details