microsoft / RoomAliveToolkit

Other
715 stars 191 forks source link

How to obtain 3d data of the room model after the calibration #31

Open YSZhuoyang opened 8 years ago

YSZhuoyang commented 8 years ago

Hi,

I am thinking about getting 3d data of the room model instead of using a exported .obj file to render it in unity, since I want to make it more interactive and reflect everything in unity when running the roomalive.

Which function call should I use?

Thanks.

DoNck commented 8 years ago

Hi,

SaveToOBJ(string directory, string objPath) from ProjectorCameraEnsemble.cs is the method doing the job when you press the export button. You could modify it to turn it into something else. Is it what you were looking for ?

Cheers

thundercarrot commented 8 years ago

I think what the OP is looking for is support for dynamic meshes in Unity. This is demonstrated in the ProjectionMappingSample, but we have not yet released the Unity goodies necessary to do the same in Unity.

Am I right?

YSZhuoyang commented 8 years ago

Thanks for the reply.

Exactly the dynamic meshes of the room are what I am looking for. I have read the SaveToOBJ function, if the vertices data is updated in real time, then probably I can use that.