1
Bug Reports / Re: Issues with importing bundler.out alignment
« on: May 24, 2017, 09:25:27 PM »
I really appreciate the example plug-in to import Bundler files from Reality Capture. (I learn a lot from such examples)
As others have no doubt discovered, it is unlikely to work "out of the box" on substantial files like I've been trying.
I'm trying to use it to convert a Bundler file with 3500 cameras and it keeps crashing.
After wrestling to try to get it working for a day, my debugging shows that the format of the bundler.out
file being created in the Current Beta 1.0 version of Reality Capture has several complicating factors.
The first was ensuring that values that have exponential notation from RC, get wrapped in a Float() call to handle that.
The second was that in the case where PhotoScan didn't align certain images, there will be no transform to stuff the position data into so watch for that. If you simply skip those then you'll likely be stuffing position data into a non-corresponding image/camera.
The 3rd issue is that (at least in my case) the line record structure of the file is rather inconsistent.
For much of my Bundler file, the 3x3 transform matrix has a triplet per line, (which the plug-in tries to skip
using readline() but part way through reading the bundler file, I start encountering lines where all 9 transform values are on a single line, and elsewhere I get as many as 13 values per line, which makes the parsing logic much more complicated than this plug-in (skipping fixed numbers of lines) will handle.
My plan is to try exporting from Reality Capture in another format such as Maya and rewrite a version of this plug-in to parse that file format (hoping it is a bit more of a structured record file format ).
(Will share if I get that working)
-Jay-
As others have no doubt discovered, it is unlikely to work "out of the box" on substantial files like I've been trying.
I'm trying to use it to convert a Bundler file with 3500 cameras and it keeps crashing.
After wrestling to try to get it working for a day, my debugging shows that the format of the bundler.out
file being created in the Current Beta 1.0 version of Reality Capture has several complicating factors.
The first was ensuring that values that have exponential notation from RC, get wrapped in a Float() call to handle that.
The second was that in the case where PhotoScan didn't align certain images, there will be no transform to stuff the position data into so watch for that. If you simply skip those then you'll likely be stuffing position data into a non-corresponding image/camera.
The 3rd issue is that (at least in my case) the line record structure of the file is rather inconsistent.
For much of my Bundler file, the 3x3 transform matrix has a triplet per line, (which the plug-in tries to skip
using readline() but part way through reading the bundler file, I start encountering lines where all 9 transform values are on a single line, and elsewhere I get as many as 13 values per line, which makes the parsing logic much more complicated than this plug-in (skipping fixed numbers of lines) will handle.
My plan is to try exporting from Reality Capture in another format such as Maya and rewrite a version of this plug-in to parse that file format (hoping it is a bit more of a structured record file format ).
(Will share if I get that working)
-Jay-