Skip to main content
1-Visitor
December 20, 2016
Solved

How to zoom and rotate an 3D object by touch in AR developed in thingworx studio?

  • December 20, 2016
  • 2 replies
  • 8561 views

I am developing my own experience in thinworx studio. I have my own 3D model similar to that bike application. Now I have to  rotate and zoom it like thingworx demo application for that bike. How can I achieve that.

Best answer by mvonhasselbach

Hi Himashri,

I think you ask for a different thing: you want to move and zoom the 3D model in your experience with slider controls similar to the KTM Bike Welcome Experience, right? In fact this is pretty simple. Here are the steps if you want to control the rotation of the model.

  1. add a slider widget to the 2D overlay of your AR view. Set the min value to 0 and the max value to 360.
  2. bind the slider value to the model-1 X, Y or Z Rotation property.

If you want to scale the model, you can specify a corresponding max value and bind the slider value to the Scale property of the 3DModel widget.

I hope this description is detailed enough.

2 replies

16-Pearl
December 21, 2016

You can zoom in / out with the middle mouse wheel

You can rotate with the right mouse button clicked and moving to rotate

If the model needs to be transformed, there's a "Transform" button on the top of the canvas which will show 3D controls for the model.

Numbers can also be adjusted directly in the "Properties" panel.

12-Amethyst
December 28, 2016

Hi Himashri,

I think you ask for a different thing: you want to move and zoom the 3D model in your experience with slider controls similar to the KTM Bike Welcome Experience, right? In fact this is pretty simple. Here are the steps if you want to control the rotation of the model.

  1. add a slider widget to the 2D overlay of your AR view. Set the min value to 0 and the max value to 360.
  2. bind the slider value to the model-1 X, Y or Z Rotation property.

If you want to scale the model, you can specify a corresponding max value and bind the slider value to the Scale property of the 3DModel widget.

I hope this description is detailed enough.

5-Regular Member
January 12, 2017

Moritz, Agree with your answer. Just an FYI, We've a similar article on this issue - How to rotate 3D model in TWX view app