Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I have a spatial experience. when the experience is viewed, the model is inadvertently scaled.
I'd like to add a button to reset the scale back to 1 or better yet, lock the scale.
any thoughts?
Solved! Go to Solution.
I just realised the answer. For a spatial tracking experience, create a button or something that when I click, it binds to the Spatial Target and use the reset gesture changes service:
This is in the Spatial Tracking example that comes with studio.
Hi James,
Following is one of the ways to scale the 3D model using a slider widget:
Please let me know if this is what you are looking for.
Thanks for your reply.
This works great for a thingmark-based experience, but for some reason, not for a spatial experience.
I added a slider widget and bound it to the scale of the model, but when viewing the experience, it has no affect.
Ideally, I'd like to lock the scale, or add a button, that when pushed, would reset the scale back to 1.
thanks for your help.
I'd also like to be able to lock the scale. The new spatial tracking based experiences are great for showing off a product, but it would be really useful if there was a was to disable the ability to scale using gestures. Usually, you want to show the product in the real world and be able to move it around on the surface, or spin it around, but always keep it true size. The Amazon AR view is a perfect example of this: Introducing AR view - YouTube.
In Studio, I can uncheck Enable Gestures, but then I'm stuck with the model wherever I placed it.
Hi Yamini,
I've noticed that in the Spatial Tracking experiences available in the app gallery, they have a reset button that reset's the model scale back to 1. The question is, how do we do this?
I just realised the answer. For a spatial tracking experience, create a button or something that when I click, it binds to the Spatial Target and use the reset gesture changes service:
This is in the Spatial Tracking example that comes with studio.
Thanks Allan, that works perfectly.