Skip to main content
14-Alexandrite
February 7, 2024
Question

About placing the 3D image at the position of a click

  • February 7, 2024
  • 1 reply
  • 2157 views

Hello community member.

Is there any method to locate the 3D image uploaded in the resource at the location of the click in the Vuforia View.  For eg, I wanted to place the image of the exclamation mark(!) for certain location to review it later.

I came to know that the pageX and pageY can be calculated but I don't have the idea about how to use this value for locating the 3D image in vuforia view.

 

tml3dRenderer.setTranslation(name,pos.x,pos.y,pos.z);

 Please suggest If there is another way such as drawing the line in canvas for marking purpose for certain location in Vuforia view.

 

1 reply

21-Topaz I
February 7, 2024

Hi @Sandy_Gunner ,

possibly we need further to clarify what is required there. Possibly if you provide some fruther details or picture it will be helpful to better understand the requirment.

So because on click in view:

  • to clarify-> we have different behavior / or view points depending on that if we are in the preview , on mobile device or on HoloLens
  • the click is possibly that what you meant for a test in preview in chrome
  • in  mobile device we could click the screen that the quesiton for the 3D images what to do--- here possible scenario could be e.g. to place the 3DImage widget in fromt to the view - so means some distance from you position along to eyevector 
  • or are there meant that you want to click / here this is a userpick - on component and then have the move  e.g. to some point of the bounding box of picked 3d component (part of the 3d augmentation

Here I want to pont to post  and the example which will move a 3D Image widget to the csys on specific part. 

The project...

So there is a 3DImage alligned with the coordinate system of a part. exapmple click a button but we can implment that a part is first selected and the 3Dimage is moved there... but it depeneds on the requirements was is required in your case.

14-Alexandrite
February 8, 2024

Hello @RolandRaytchev ,

 

Thank you for your response. 

I am talking about the use of the mobile device (Ipad pro) with model tracking experience.
I want to place the uploaded 3d image in front of the 3D CAD model, strictly on the location of the click.

Please see the attached image for the reference.

test.JPG

21-Topaz I
February 14, 2024

Hi @Sandy_Gunner ,

as mentioned I am not aware about easy solution of this in the current functionality

I see that there is another point about drawing annotations in Vuforia Stuido . so this functionality is working fine in the Vuforia Chalk on video conferencing there but not availible in Studio. I will check in this post it further with R&D

So in the current functionality is not easy (so far my knowledge - possibly some one know a better option)

I whould do this as already mentioned using some API:

2024-02-14_10-44-08.jpg

clicking point in distance of the eyevector and drawing then 3D Entities between these points