L3DB6H

Lloyd Bosworth : archaeologist | human | beard

From VisualSFM to MeshLab

VirtualSFM point cloud before cleaning.So you’ve created a dense point cloud with vertex colour in VisualSFM, (or any other software), and now you want to convert this into a textured 3D model. How do you do that? With MeshLab, creating textured meshes from point clouds is a straightforward process. This quick tutorial will show you how.

There are three steps in the workflow:

  1. Edit the high resolution VisualSFM colour point cloud
  2. Create a 3D model from the high resolution point cloud
  3. Transfer the colour attributes from the point cloud to the mesh

Edit the point cloud

  1. Create new document in MeshLab
  2. File > Open project… – select bundle.rd.out then the list.txt file when prompted
  3. Hit CTRL + L to show the layers panel
  4. Right click layer > Delete current mesh
  5. Import mesh – import VirtualSFM point cloud (models/option-0000.ply)
  6. Delete unwanted points

Create the mesh

  1. Right click the point layer and select Duplicate Current Layer
  2. Hide the original layer and change the duplicate layer display to points
  3. Go to Filters > Normals, Curvatures and Orientation > Compute normals for point sets
  4. Change ‘Neighbour num’ to 1000. Leave all other parameters at default
  5. Click Apply then Close (this can take a few minutes, depending on teh size of your model)
  6. Go to Filters > Point Set > Surface Reconstruction: Poisson
  7. Change Octree Depth to 11
  8. Click Apply then Close (this can take a few minutes, depending on teh size of your model)
  9. This will create a new layer containing the new mesh
  10. Go to File > Export Mesh As… and choose a name and save location for your new mesh

Transfer colour attributes

  1. File > Open project… – select bundle.rd.out then the list.txt file when prompted
  2. Hit CTRL + L to show the layers panel
  3. Right click layer > Delete current mesh
  4. File > Import mesh – import the edited mesh created earlier
  5. File > Import mesh – import the original point cloud (models/option-0000.ply)
  6. Filters > Sampling > Vertex Attribute Transfer – set the original file as source mesh and edited file as target mesh and check Transfer Color. Click Apply.
  7. Delete the option-0000.ply layer
  8. Save as new mesh

You should have a fully coloured mesh created from a VisualSFM point cloud. How does your model look?

Coloured and cleaned mesh created in MeshLab from VisualSFM point cloud.

Coloured and cleaned mesh created in MeshLab from VisualSFM point cloud.

3D Digitisation Meets Automation arrow-right
Next post

arrow-left Testing a New HobbyKing 2-Axis Brushless Gimbal - BruGi Firmware
Previous post

Leave a Reply

Your email address will not be published. Required fields are marked *