Git Product home page Git Product logo

meshroom2blender's People

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

meshroom2blender's Issues

OpenMVS port

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

Trying to use Import Meshroom, not working, throwing exception with JSONDecodeError

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

blender 2.83.6 errors

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

Import error - pxFocalLength

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'

How to install properly

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?

Problem importing because of exif ?

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.

01

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 !

Multiple errors with Meshroom 2019.2.0 and Blender 1.81

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

Exif related import error

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

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.