tibicen / meshroom2blender Goto Github PK
View Code? Open in Web Editor NEWBlender importer of meshroom datafiles: cameras, images, sparse pointcloud and obj's.
License: GNU General Public License v3.0
Blender importer of meshroom datafiles: cameras, images, sparse pointcloud and obj's.
License: GNU General Public License v3.0
I can not import MG files since Meshroom, probably "StructureFromMotion" is not working because after change the "Inter File Extension" since "ABC" to "PLY" that do not work, and I know that because I opened the "StructureFromMotion" folder
I have absolutely no experience with custom Blender plugins.
When I tried to install the plugin as a zip file (of the whole repository) and as the __init__.py
script both approaches failed.
In the end what worked was renaming init.py
to import_meshroom.py
and installing that.
Is there a proper way of installing the plugin?
2.80 build: https://builder.blender.org/download/blender-2.80-0b6dbbc306b0-win64.zip
File "D:\Blender_Foundation\blender-2.80.0\2.80\scripts\addons_contrib\meshroom2blender_init_.py", line 238, in execute
import_cameras(cameras_sfm, self.img_front)
File "D:\Blender_Foundation\blender-2.80.0\2.80\scripts\addons_contrib\meshroom2blender_init_.py", line 114, in import_cameras
pxFocalLength = int(intrinsic['pxFocalLength'])
ValueError: invalid literal for int() with base 10: '3439.9871369657408'
Error importing a meshroom project that uses images without any EXIF?
Python: Traceback (most recent call last):
File "C:\Users\Antoi\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\meshroom2blender-master\__init__.py", line 238, in execute
import_cameras(cameras_sfm, self.img_front)
File "C:\Users\Antoi\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\meshroom2blender-master\__init__.py", line 111, in import_cameras
focal_length = float(view['metadata']['Exif:FocalLength'])
KeyError: 'Exif:FocalLength'
location: <unknown location>:-1
very cool addon, very helpful
could you pls port it to support OpenMVS files as well?
the cameras and sparse point cloud is stored in a very easy to parse bin file (see Interface.h
), while the rest of the output are in PLY
Hi,
I'm facing a problem when i try to import a meshroom project. It seems I'm asked for some exif metadata if I'm not wrong.
I try to add the focal length with ExifToolGUI but it seems that Meshroom doesn't read it...
Is there a way to overcome this issue since meshroom gave me a model anyway ?
BTW, thx a lot for this script !
Blender 2.91.0, Python 3.7.7
running on Windows 10
Addon: current Master
ERROR:
Python: Traceback (most recent call last):
File "D:\BlenderPortable\Data\user_scripts\addons\meshroom2blender-master_init_.py", line 236, in execute
cameras_sfm, cloud, dense_obj, tex_obj = read_meshlab(filepath)
File "D:\BlenderPortable\Data\user_scripts\addons\meshroom2blender-master_init_.py", line 70, in read_meshlab
data = json.load(open(filepath, 'r'))
File "D:\BlenderPortable\App\Blender64\2.91\python\lib\json_init_.py", line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "D:\BlenderPortable\App\Blender64\2.91\python\lib\json_init_.py", line 348, in loads
return _default_decoder.decode(s)
File "D:\BlenderPortable\App\Blender64\2.91\python\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "D:\BlenderPortable\App\Blender64\2.91\python\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
location: :-1
How about joining the development efforts for one Meshroom Blender Add-in?
@tibicen (meshroom2blender) (I chose to post on your Issues by random as I had to ask this somewhere)
@SBCV (https://github.com/SBCV/Blender-Addon-Photogrammetry-Importer)
@Stwend (https://github.com/Stwend/MeshroomTools)
@stuarta0 (https://github.com/stuarta0/blender-photogrammetry)
All the Add-ins are slightly different and would benefit from a joined development.
I'm not a python guy, sorry for not sending a PR.
It looks like the fileformat of meshroom changed.
Traceback (most recent call last):
File "/home/me/.config/blender/2.81/scripts/addons/meshroom2blender/init.py", line 238, in execute
import_cameras(cameras_sfm, self.img_front)
File "/home/me/.config/blender/2.81/scripts/addons/meshroom2blender/init.py", line 112, in import_cameras
pose = poses[view['poseId']]['transform']
KeyError: '24387228'
location: :-1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.