Skip to main content
12-Amethyst
Nov 17, 2021 11:55 AM UTC
Solved

Model rotation

Hi,

 

How to rotate a model along the Z axis like in CAD applications? Model created is having axis of rotation outside the model. I am using slider to rotate the model. 

 

--

Dhinesh

16-Pearl
Nov 24, 2021 10:28 AM UTC

i got this issue.

what u can do is u can change the axis of model in creo or in any CAD modelling software and shift the axis to centre of model and import in vuforia studio.

By doing above changes in modelling software it will suffice your requirement.

6 replies

24-Ruby IV
Nov 17, 2021 4:47 PM UTC

1. A similar question was recently - "Is it possible to rotate a 3d object with your finger?": https://community.ptc.com/t5/Vuforia-Studio/Is-it-possible-to-rotate-a-3d-object-with-your-finger/m-p/757157#M10321 

2. Another one - "Rotating the 3d model": https://developer.vuforia.com/forum/ios/rotating-3d-model 

Translate
MSD212-AmethystAuthor
12-Amethyst
Nov 23, 2021 9:55 AM UTC

Hi Vladimir,

 

I did check these links before starting this thread. They are not addressing my issue. 

Translate
12-Amethyst
Nov 22, 2021 11:10 PM UTC

Hi @MSD2 ,

 

The behaviour shown in the video is strange, as in my quick test, my model rotates from the center. 

Would it be possible to share with us the model? I currently don't have a clue, what the issue might be. 

 

Thank you for your understanding.

Mcotora

Translate
MSD212-AmethystAuthor
12-Amethyst
Nov 23, 2021 10:02 AM UTC

Hi Mcotora,

 

Here is the link to download model - https://drive.google.com/file/d/1UOzeq0DKCfc3x-rlp3s0F1Z8FBtgwoI8/view?usp=sharing

 

Translate
16-Pearl
Nov 24, 2021 10:28 AM UTC

i got this issue.

what u can do is u can change the axis of model in creo or in any CAD modelling software and shift the axis to centre of model and import in vuforia studio.

By doing above changes in modelling software it will suffice your requirement.

Translate
21-Topaz I
Nov 29, 2021 1:12 PM UTC

Hello @MSD2 ,

the problem is based on the model root coordinate system.  IN your case the root assembly coordinate system is not defined on the location where you want to rotate. So to solve this problem you have the following options:

  • As already mentioned by  @Suraj_Patil  you can change the Root coordinate system. For example you can create in source CAD system  a new assembly and insert your model into it and place on the desired location – so that it will match the correct rotation axis.
  • User Euler calculate to transform the axis. In this case you will have a set of values  x,y,z, rx ,ry,  rz – combination of space shift and rotation which will result the desired rotation. If this option is interesting of you then, please , let me know I will check if I have some sample code for this calculus
Translate