cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

I want image to move along with me

SOLVED
Highlighted
Regular Member

I want image to move along with me

Hey ,

 

I want a option panel which i will create to move along with me at certain distance along with me. 
is it possible to do so using script?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: I want image to move along with me

Hi @Nithin,

I think this is possible as already mentioned by @sdidier  using only 3d elements in Studio ,where you can use the click event on them involving your menu /menu option functionality.

This will be possible after some calculation via the 

tml3dRenderer.setupTrackingEventsCommand()

 Here you can check the following related posts:

Tag-Along 3D Labels in HoloLens experiences (related to HoloLens but it will be nearly the same also for mobile devices )

and also as additnal information this  post :

How to get camera position?

2 REPLIES 2

Re: I want image to move along with me

Hello Nithin,

 

To be able to do that in OpenGL, it is needed to have access to World Matrix and Camera Matrix.

More details about various matrix and math behind that in 3D Open GL API.

https://learnopengl.com/Getting-started/Coordinate-Systems

 

By the way, it is the same in DirectX also

 

As far, I know, in Vuforia Studio, we don't have access directly to these matrix.

I am checking that internally at PTC to be sure.

 

The idea, is to convert 2D UI world coordinate to 3D world position.

After that, we can apply that to the 3D plane object (a billboard with only one face visible)

In Vuforia Studio, in 3D Label, 3D Image, and 3D Gauge, we have a Property named Billboard to do that.

 

  • Does these Widgets can fit the panel needed in your Project ?

 

Best regards,

Samuel

Re: I want image to move along with me

Hi @Nithin,

I think this is possible as already mentioned by @sdidier  using only 3d elements in Studio ,where you can use the click event on them involving your menu /menu option functionality.

This will be possible after some calculation via the 

tml3dRenderer.setupTrackingEventsCommand()

 Here you can check the following related posts:

Tag-Along 3D Labels in HoloLens experiences (related to HoloLens but it will be nearly the same also for mobile devices )

and also as additnal information this  post :

How to get camera position?