googlearchive / tango-examples-unity

Project Tango [deprecated] UnitySDK Example Projects
https://developers.google.com/ar
Apache License 2.0
470 stars 242 forks source link

Problems with ExperimentalMeshBuilder #109

Open manuelaa opened 7 years ago

manuelaa commented 7 years ago

Hi! I tried examples for Unity: ExperimentalMeshBuilderWithColor and ExperimentalMeshBuilderWithPhysics and both of these are working well for the static environment but when something moves from A to B, the generated mesh will exist even if in front of the camera is nothing anymore. So, I tried this with C example: cpp_mesh_builder_example, here the mesh updates as objects moves. Why dynamic mesh behaves differently in Unity?

LudwikJaniuk commented 7 years ago

In the Tango Manager object which should be somewhere in your scene, on the TangoApplication script, there is a toggle called "Space Clearing". I have not tried it, but it sounds like maybe that might help?

manuelaa commented 7 years ago

Great, it works! Thank you very much!

manuelaa commented 7 years ago

I realized that it is not clearing the mesh always. A colleague of mine walked through my scene while I was mashing and I had him in my mesh in several places (he walked through). When I was testing this before I tested it with some staff (like mobile phone, cup, hand wawing...) moving in front of my camera on hand distance and it worked fine.