Surface Tracking Grid Size
Hi,
I'm wondering if it's possible to resize the green grid that is generated when device tracking is enabled. The ground grid mesh can be scaled as can the touch collision box but this does not change the area around the model that is 'reserved' for manipulation. With smaller models and path drawing, this creates a large gap between the model and where drawing can begin.
Scaling the model up is not an option as that makes it too large in the phone's viewport.
The documentations simply state that 'the grid helps visualise the surface the content is attached to' but says nothing about whether or not this grid can be adjusted.
Any help would be much appreciated.
What's up, Monkeys!
Thanks for reading the documentation. As you mentioned, the white ground grid you see in the Lens is just meant to serve only as a visualization of the surface plane, and doesn't affect touch or manipulation.
Likewise, the green grid you see in the Scene Editor is also just a visual indicator that Device Tracking is active. Its size doesn't affect how touching or manipulation works in the Lens.
It sounds like you're using one of the World Templates. If you're looking to tune the touch area of an object, you can do a couple of things:
1) As you mentioned, you can adjust the size of the touch collision box to fit as closely as possible to the model.
2) The Touch Component has a property called Min Touch Size. This property describes the minimum normalized screen width (from 0.0 to 1.0) used to detect touches on the object. For example, if Min Touch Size is set to 0.5, the Touch Component will detect touches using an area that's no less than half the width of the screen. This property is useful for cases when you want be a bit more generous with touch detection on very small objects. If you feel like it's too easy to touch an object, it's possible that you need to reduce the "Min Touch Size" value on your Touch Component.
Let me know if you find either of those tips useful.
Best,
Peter