CAOR-MINES-ParisTech/colibri-vr-unity-package

Import Existing Colmap Model

Opened this issue · 4 comments

Hello thanks for the cool project!

Just wanted to know if there is a way to import an external generated colmap model?

Hi, thank you very much for the comment!
What does the external generated COLMAP model look like? If along with the 3D mesh you have the undistorted camera information generated in the course of COLMAP's dense reconstruction step (i.e. the folder located by default in /dense/0/, which should look something like the one described here https://caor-mines-paristech.github.io/colibri-vr/structural-elements/file-structure), then the toolkit should be able to interpret it as a set of camera models in Unity.

I created an sparse Model with custom features and matching and would now like to import it into your tool and then visualize it.
So its not a dense model and without meshes.

If you have the sparse model (of the SIMPLE_PINHOLE or PINHOLE type) in COLMAP all you need is to export it as text in the my_data/sparse/ folder, create a GameObject in Unity with a Rendering component, and change the data folder to my_data. The component should then be able to parse the information contained in the text files, and should thus display the camera setup in the scene view. Does this work as expected?

Hi, many thanks for the tool, very interesting! @DinechinGreg
I tested the workflow you describe in the youtube tutorials and it works. Now I have a similar question to @PKehnel .
I am working with COLMAP for genereting both sparse and dense reconstructions.
I would like to ask you how to integrate and use reconstruction files coming from COLMAP (and organized in the COLMAP-style folders) into your tool in Unity. In other words, it would be great to use the ULR you implemented in Unity.
So please, can you be so kind to suggest how to process/render a dense reconstruction (for example) coming from COLMAP using your tool in Unity?
Many thanks in advance!