Skip to main content
14-Alexandrite
December 14, 2023
Question

CAD model import settings in Vuforia Studio (Up-vector Selection while importing the CAD Model)

  • December 14, 2023
  • 1 reply
  • 1491 views

Hello Community Member,

We are having trouble because of having two different Up-Vector for the CAD system (Plus Z-axis) and Vuforia AR (Plus Y-axis). To adjust the imported model into Vuforia Studio we are rotating the imported model by -90 degree in X-axis. Sometime forgetting to do this result in the incorrect CAD model display in the AR experiences. To omit this kind of error, we want to propose a solution of selecting the Up-Vector while importing the CAD model inside the Vuforia Studio. If this functionality is implemented we can adjust the up vector of the CAD model inside the Vuforia studio irrespective of the Up vector of different CAD system. Please see the attachment herein for the reference.
Please feel free to share if you have similar trouble and how you are managing till now.

Thank you in advance.

1 reply

15-Moonstone
December 18, 2023

Hi Sandy

 

When I rotate the model in Studio and use a button with a JS function to rotate the model in View, one axis is lost.

If anyone is interested I will make a recording of the bug.

 

Maybe your solution will solve this too?

 

Best wishes

 

Alex

21-Topaz I
December 27, 2023

Hi @Sandy_Gunner  and @AlexK ,

regarding to the original issue - possibly you can use as already mentioned by @AlexK   - a javascript to convert the setting - what you meant (your native cad system setting) (for top, front, right) when setting values of x-y and z respectively rx,ry,rz  to be changed /adapted to the   current setting according to the Thingview, so that you can then  have the desired appearance of the model .  So means the CAD axis values and rotations  need to be interchanged ( axis and direction /sign)  on such way  that  Vuforia Studio will interpret  the coordinates as intended . So far, I know this issue is not an specific only for the setting of Vuforia Studio/ view  but the behaviour  is coming /inherited  from the three.js.

@AlexK   according to the issue .... one axis is lost. What means that? Possibly if you could provide a simple example /project where I could reproduce it. So I could  check if this is a bug or another problem ... Thanks! BR

14-Alexandrite
March 11, 2024

Hi @RolandRaytchev and @AlexK ,

@AlexK Rotation and translation of the model can be done with JavaScript after binding the imported model to the model widget only but our enhancement request is having the ability to set up the up-vector while importing.

@RolandRaytchev 

As of now, We are using Siemens NX CAD for the modelling application where the Up vector is Z-Vector. After exporting the CAD model and importing it into Vuforia Studio, we have to rotate by -90 rx direction for the realistic appearance (to have a model tracking experiences) and sometime forgetting to rotate it leads to inability of having model tracking experience in the work site . Moreover, most of the modelling software has z-axis as up vector and other AR software has the ability to select the Up-vector while importing. Rotating the model in modelling software before exporting is time consuming too. So, we recommend PTC to add this functionality of selecting up-vector while importing the CAD model into the Vuforia Studio.

 

Thank You