Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Help: Getting started with laser scan data and VR

Discussion in 'AR/VR (XR) Discussion' started by jespergyllving, Nov 9, 2015.

  1. jespergyllving

    jespergyllving

    Joined:
    Nov 9, 2015
    Posts:
    3
    I want to use a laser scanned point cloud with mapped photographic images of a room, like a file from i.e. a Lica Geosystems Scan Station C10-3D laser scanner, and then be able to "walk around" in the room by using the Oculus Rift SDK2 kit.

    I am a total newbie. Have anyone done this?

    Could I import a scan data file into Unity? How?
    Could I then export a file and use it together with the SDK2 kit? How?

    Please advice!
    /
    Jesper
     
  2. Omnifinity

    Omnifinity

    Joined:
    Nov 3, 2015
    Posts:
    17
    What file formats can you export from the scanner?
     
  3. klund

    klund

    Joined:
    Mar 21, 2011
    Posts:
    33
    To make this perform you would need to:
    1) convert the pointcloud to a low resolution mesh
    2) UV map an image/images/360 degrees image onto the mesh

    If you want to make it really nice then you could bake a high resolution mesh onto a low resolution mesh in order to generate a normal map ..
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,000
    theres also this plugin, but having several million points starts to slow down with oculus (since it needs to draw them twice)
    http://forum.unity3d.com/threads/released-point-cloud-viewer-tools.240536/

    other solutions, using MeshLab (free program) to process point cloud data, convert to mesh, export to unity. *Note that exporting from meshlab to .obj didnt seem to include vertex colors in unity when tested last time:
    http://forum.unity3d.com/threads/newbie-need-help-adding-texture-to-my-mesh.311962/
     
  5. Omnifinity

    Omnifinity

    Joined:
    Nov 3, 2015
    Posts:
    17
    I've done the procedure suggested by mgear with Matterport camera and the results are ok.

    (see here for example)
     
  6. jespergyllving

    jespergyllving

    Joined:
    Nov 9, 2015
    Posts:
    3
    The scanner produces a database file in format called "imp" in the Leica Cyclone software. Leica Cyclone is a 3D point cloud processing software.
    From this software you can export to varius file formats including .pts . But I dont know which format would be best/possible to import into Unity.
     
  7. jespergyllving

    jespergyllving

    Joined:
    Nov 9, 2015
    Posts:
    3
    Thanks! I know that the scanner software can produce "photographic" images in two ways. With the first method it maps the colors from the camera images onto each point, producing a colored point cloud. It has its limitations of course but it looks quite cool on screen. The second is as you suggest, it can create a mesh and then map the photos onto the mesh.

    What file format of the mesh can Unity import? How do I import it?
    And finally how do I export a file that I can use with oculus?

    Sorry for my lack of knowledge...
     
  8. Omnifinity

    Omnifinity

    Joined:
    Nov 3, 2015
    Posts:
    17
    For example:
    FBX
    OBJ
     
  9. Omnifinity

    Omnifinity

    Joined:
    Nov 3, 2015
    Posts:
    17
    See previous reply for format.
    Edit: See post from mgear below if you've got a new version of Unity (5.1 and above).

    (Obsolete: To get it to work with oculus you need to go to oculusvr.com and download the sdk for unity)
     
    Last edited: Dec 7, 2015
  10. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,000