-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] How to set default camera position to the position where camera was used to capture the first image? #930
Comments
You can use the SfMTransform and select FromSingleCamera to use the orientation from one camera as origin, including orientation. You need to specify the filename for the image. You can use a graph.mg file (--save) for the new computation graph (--pipeline) https://github.com/alicevision/AliceVision/wiki/CLI-Parameters #683 (comment) |
Thanks for the answer, so happy to know that the solution could be super straight forward! After reading the document, I believe this is an option for the latest 2020 version only, am I right? Can I use it with version 2019.2? https://meshroom-manual.readthedocs.io/en/latest/node-reference/nodes/SfMTransform.html Is there anywhere I can download a preview version of the binary file of v2020? I guess I should just try the develop branch, right? |
In the Meshroom (2019.2) folder there is a file named
|
I got the saved file from meshroom v2019.2, however, there is no such section of SfMTransform, and if I check the 2019.2 version of user guide, there is no such description yet. (It's in the latest document) Here is an example of the saved file of mushroom v2019.2. Did I miss something?
|
When opening the Meshroom GUI, you need to add SfM transform to the graph (place it between StructureFromMotion node and PrepareDenseScene node). It is not included in the default graph. |
I managed to generate the graph file with SfM transform, and try to insert a similar section for the command line version. It's something like:
However, I am getting error:
Is there anything wrong with this file? could you please take a look? Thanks very much! the pipeline file meshfile_old.txt meshfile_new.txt are attached. |
Create the new graph (without images) in the Meshroom gui and save it. Use --paramOverrides NODE.param=value to override specific settings and for setting the image to be used in the sfmtransformation node https://github.com/alicevision/AliceVision/wiki/CLI-Parameters |
Hi natowi, Currently we have resolved the second issue, after using the first image's camera as the origin, the model is not upside down anymore, but when I rotate it, it is circling around the camera, while what I'd like to see is that it can circle around itself. |
Short answer: no. At the moment we don´t have tools in the 3d viewer that would allow modifying the model (selecting area, bounding box, centre point, origin, size, selection removal,...), this needs to be done in Meshlab for now. |
I see... I'll explore some other command line tools to do this work. UI version software is not very convenient for large amount of model files. Please let me know if you have any recommendations. Last, I'd like to know if SfMTransform could be added in the latter position of the graph? So that I can change it and re-run the analysis without redoing too much calculations. (most of the time I will change 'scale':1.0 and "method": "from_single_camera") |
Thank you natowi! Could you please attach the exported graph file for me? There are some lines covered by the node block so I can't really see the connections. |
Remove the connection from DepthMapFilter Input and insert the SfMTransform node. |
Look at the screenshot you shared, the SfMTransform is named SfMTransform2. Does this mean there is another SfMTransform(SfMTransform1) in between StructureFromMotion node and PrepareDenseScene? |
No, I was just testing a few things in the same graph. |
Is this still the correct usage in 2021 version Meshroom, that place SfMTransform in between StructureFromMotion node and PrepareDenseScene node? I think this SfMTransform is not working properly now. The new version SfMtransform has different output files:
comparing to the v2019:
|
Describe the problem
I am using meshroom command line pipeline to build 3d model from a folder of images. Just like this(all default parameters):
The model is good, but the default view point is always wired, I have to drag my mouse a long time to find a good view position.
I'd like to know if there is a way, to tell mushroom use the first image's camera position as the default camera position in the output 3d model file?
Desktop (please complete the following and other pertinent information):
The text was updated successfully, but these errors were encountered: