Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtimeviewer: using v2 measurement manager #73

Open
unitycoder opened this issue Apr 7, 2020 · 0 comments
Open

Runtimeviewer: using v2 measurement manager #73

unitycoder opened this issue Apr 7, 2020 · 0 comments

Comments

@unitycoder
Copy link
Owner

I need to load pointclouds at runtime and perform measurements.
There's the FindClosestPointBrute function in the RuntimeViewerDX11 class, and it has a //TODO replace with new measuring system. Is that "new" system the one the MeasurementManagerV2 is using?

That is not done yet, so need to use workarounds (ill try to fix in coming update),
so need to use that old method, which is enabled from the runtimeviewer:
image

if want to use the MeasurementManagerV2 (has better performance), need to do this:

  • open example scene PointCloud-Runtime-Or-Load-Cache.scene
  • add GLDebug to MainCamera (to draw lines)
  • add @PointCloudManager to scene (copy from PointCloud-Measuring.scene)
  • add @PointCloudManager to scene (copy from PointCloud-Measuring.scene)
  • add @MeasurementV2 to scene (copy from PointCloud-Measuring.scene)
  • assign @PointCloudViewerDX11 to @PointCloudManager inspector
  • assign @PointCloudManager to @MeasurementV2 inspector
  • assign distance UI text to @MeasurementV2 (this is ui element to show distance text)
  • then in @LoadCachedIfExists set your runtime cloud path to load (this will load .bin file if it exists, which will then trigger the measuringv2 system)
  • Then you need to run that scene once, so that it loads raw cloud and generates cache .bin file
  • Then you need to make @LoadCachedIfExists run again, to load cached .bin file, maybe by reloading scene

so the workaround it, you load raw cloud first, it generates cached bin file from the raw cloud,
then the generated .bin cache file works with MeasurementManagerV2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant