Changing the spatial/gesture scale via JavaScript
Hi All,
Does anyone know if there's a way to change what I'm calling the the spatial scale - the overall scale of the experience that you change via the pinch gesture, via JavaScript?
I've got a HoloLens experience using a ThingMark that uses a large model (approx 20m long, 6m wide, 3m high). When I initially load the model, I have it shown at about 10% of true size, so the whole thing fits into the field of view of the HoloLens. I have then build voice commands with some associated JavaScript to change the scale of the model. This is all working fine, but it becomes a problem if I want to add additional elements such as a gauge or 3D Image. For these to be placed correctly, I need to specify their x,y,z coordinates and as they must be specified in absolute values, I need to then hard-code them based on the size of the model to make sure they are in the correct location relative to the model at that particular scale.
I've played around with scaling the ThingMark size as mentioned by
Ideally, I could use a spatial tracking experience and then as I drag to resize, it moves and scales everything in the experience, but:
- It's pretty much impossible to drag the handles on the bounding box that appears around a model that is this big.
- Spatial works best when you start at original and then drag to make it bigger or smaller. I want to start small, and be able to make it bigger, but to an exact scale - 1:1.
So my thinking is that I place the experience with a "spatial scale" of 10% and then I use JavaScript via voice commands to change the spatial scale to the values that I want, and everything in the experience will just scale along.
Any ideas?
Many thanks,
Allan

