Skip to content
We Get Around Network
Quick StartCameras, platforms, training and more

Project: Community Matterport OBJ Viewer

Started by Metroplex360 · · 12 replies · 152 views

Last reply

Companies in this topic:Matterport

The last post here is over 9 years old. Cameras, apps and prices may have changed since.

🔖 Save🔔 Follow

Metroplex360LegendOP

Access member
Hi Developers,

Today, I decided to try my hand at creating a standalone Matterport OBJ file viewer.

http://matterapps.com/mp2sqftnext/

Based on my research, there is the OBJ file that can be downloaded from Workshop (which is in use here), and the OBJ file that Showcase uses - which I believe is simplified.

This is my first attempt to use three.js and my first attempt to work in 3D. I have been encouraged by how easy it has been to load an OBJ file and the accompanying MTL file that contains references to all of the textures needed for the file.

I have experimented with the camera perspective a bit and tried to find a way to get control of the model - although this is not all that simple for me.

I am using the WebGL demo code as a reference. This is written by Håkon Erichsen, Matterport's Sr. Programmer. For whatever reaason, he posted it to GitHub

https://github.com/haeric/webgl-demo/blob/master/js/matterport-webgl.js

I don't know if I will succeed in any capacity at creating a 3D viewer that has the capability of a user interface and the ability to separate out each chunk for surface area measurement (my goal) -- but I wanted to throw this idea at the developer community.

I believe that if there is any way I could receive help, that I could likely program the method for loading any tour based on matterport ID and downloading assets / preloading from Matterport's servers.

DannyBastingVeteran

Access member
That's something you can do out of the box with Meshlab if I am not mistaken. It's a very powerfull and feature rich (free) 3D viewer with a lot of import and export abilities.

If you'd like I can double check it tomorrow and grab some screenshots.

Metroplex360Legend

Access member
@DannyBasting - I'd ideally love to have a web-based system for a few reasons:

#1) I'd like to see if we can offer the community a new surface area (SQFT/M2) calculator.

#2) I'd like to see if there are any other cool use cases for displaying Matterport Models -- perhaps it could be another fun tool.

#3) Maybe I'd get to work with @DannyBasting on a project :)

DannyBastingVeteran

Access member
I didn't mean to keep you from creating one, but I figured it perhaps could be helpful for to see how a current application does something similar.

Don't you already have a sqm2/m2 calc tool though? Or did MP break that?

I don't know much about Java, but if my insight/knowledge on the subject of "3D" is needed, I'd be happy to help in any way I can :)

Metroplex360Legend

Access member
MP broke it :)

And I don't code in Java :) -- It's javascript that interfaces with Three.js to render OBJ files.

At any rate, I downloaded MeshLab and the best I can come up with is a measurement of the mesh surface area... but this would likely be ALL floors, walls and ceilings... if I'm not mistaken.

Matterport loads the model in CHUNKS... I honestly have no idea how they come up with their measurements.

I'm wasting too much of my development time on this :) -- I have so many non-Matterport projects but I cannot stop fiddling... and I need to get some sleep :)

DannyBastingVeteran

Access member
Metroplex360 said:MP broke it :)
All my models go straight in to ArchiCad where measuring the floor surface area is 5 second job, so I wasn't aware MP broke it, that's a shame..

Metroplex360 said:And I don't code in Java
My bad:(|)

Metroplex360 said:At any rate, I downloaded MeshLab and the best I can come up with is a measurement of the mesh surface area... but this would likely be ALL floors, walls and ceilings... if I'm not mistaken.
Yeah it is if you don't create a selection. If you select a part of the model, the ground floor for example, it should only calculate that selection though.

Metroplex360 said:Matterport loads the model in CHUNKS
The OBJ's have always been divided in to smaller chucks do to the texturing process. If it would have been one big element, you'd need an insane large texture map. Instead they create multiple textures of 2048x2048. One for each chunck of geomerty. I've been reading on the forum that they may have made a change in the processing of the 3d models, I haven't taken a look in to one of the supposedly "new" OBJ files though.

Metroplex360 said:I honestly have no idea how they come up with their measurements.
I didn't even knew they calculated the surface area.. Don't really see why they would need to either, since they are charging based on the number of scans per project.


Metroplex360 said:and I need to get some sleep
I hope you've been well rested in the meanwhile :)

DannyBastingVeteran

Access member
Hey Dan, Thanks for sharing!

I didn't hear about that company and its software before. Seems to be an application for engineers who do load bearing calculations though. (Very specific field of work that we outsource on every project that we need it). I'll make sure to share this with the engineer we often work with though!

Metroplex360Legend

Access member
@DannyBasting I don't know why Matterport were measuring surface area either. Finding that nugget of data was a joy and now that it's gone, it's quite annoying.

If you have time, would you mind finding a model that works on matterapps.com/mp2sqftplus -- and seeing if you can get similar numbers? If so, it would be valuable if you could write a tutorial on how to do this. I'm pretty burned out on working out of my element in hopes of achieving this.

DannyBastingVeteran

Access member
Sure, no problem.

I'll look at it when I get to the office in the morning. I'll post the results here, as well as the url to the tour, so that you can compair my results to those that are generated by your tool.

DannyBastingVeteran

Access member
@Metroplex360

Here is the link to the example I've used.

I've created a section just above the floor. Meshlab gives me an area surface of 82.01m2. Since I've created the section just above the floor though, the area where the couches are placed wasn't measured since there is no 3d data at that height. See image below.

Overhead floor plan view in Meshlab showing apartment layout with furniture placement and unmeasured areas around couches and closets

I've double checked the measurements in Archicad and they are correct (with the exclusion of the area's where the couches and closets are placed, like mentioned above)

If I include those missing area's it would be 88m2 without the walls, and about 105m2 with the walls included (both inner and outer walls)

DannyBastingVeteran

Access member
I know, its because I've created the section right above the floor those couch areas and such are missing.

However I am just thinking that measuring the ceiling might be a better solution. No couches and cabinates over there ;) And it should match the surface area of the floor

Loading…

Browse the forum →