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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Translate the entire conversation x

Changing the Position of a Model in a Mobile Experience by moving it on the iPad screen

JH_9310184
10-Marble

Changing the Position of a Model in a Mobile Experience by moving it on the iPad screen

Hi there, 

I would like to create a kind of webshop / decorating App using Studio, in which around 15 to 20 3D models are stored in a 2D view. When I select an object (a model) in the 2D view, it should become visible in my 3D view (3D Model Visible) and I would like to be able to move this object flexibly in my 3D world by clicking on my tablet screen.

I am currently using the Spartial Target target modeling as a test. Later I would like to change this to a model target. The use case is about decorating a shelf. I have the 3D data from the shelf to store it as model tracking.

When I currently move 3D objects on my screen, I move all objects and not just a selected 3D model.

Is it possible to set that only a specific model is moved, which I am currently selecting? Ideally, selected 3D objects can always be moved.

 

As a workaround, I can also imagine that the model can only be moved initially when a new 3D object is selected from the 2D overview.

 

Has anyone had any experience with this and can explain to me how to move 3D objects flexibly using the iPad screen?

Please help! 🙂

 

Best, 

Jonas 

3 REPLIES 3

Hi @JH_9310184 

- actually yes , you can have different models and move each of them separately. But it depend how you will move model. -this will work only when you

coordinate system is fix. So means you will not move the target.

- so when you say you use a Spatial target - and when you move the position of the target it will move all objects because that is your coordinate system in this case and when you select another surface point then it will reorient and replace all models regarding to the x,y,z,rx,ry,rz properties. What you can do is to use some techniques where the coordinate system (any target which determines the  Coordinate system fix point) and then to move the models via coordinates e.g. via setting of the x,y,z, rx,ry,rz properties. - change via slider and inputs value widget

Also possible is via click but you need in that case a one ground model where you click and then you can move specific model at this position..

There is  a sample project in the post https://community.ptc.com/t5/Vuforia-Studio/What-is-componentOccurence-in-the-wayfinding-widget-and-how-do-I/m-p/999210#M12888 which should show some wayfinder funcionality. But there is an userpick implemented so that when you click on the dampfmaschine model i will move a second model on the click location and possibly that functionality could be helpful for you goal.

Hi @RolandRaytchev

you are absolutly right. This movement does not makes sense, when I just move the spatial target. I think the slider option is the easiest way, to implement this feature quickly. 

I've looked up your sample projekt. To be honest, I don't really understand the userpick function. How can I adapt something from there? Could you help me please or explain, how this sample project might solve my issue? 

 

Best, 

Jonas 

Hi @JH_9310184 ,

in the sample model the main issue was there  the dynamic wayfinder functionality but there is also a function for  user pick that will move a coordinate system   to the pick location.  And that was meant that this could be used to move the position of a  model (widget) - e.g. tap on surface and use the "picked" point on another model widget to specify  the new position of the model widget. I simplified the example having only that functionality 

e.g.:

2025-03-13_10-22-54.jpg

there are 2 model widgets

1.) is the ground model  used only to specify fia click on surface  the position of the model 2. You can make it invisible and then switch to  visible only during the positioning 

2.) second model is the AR model that should be moved. 

That workflow is working only on mobile platform , no on HL

So then clicking on  any surface  will move model 2 to the clicked position

2025-03-13_10-25-30.jpg

so attached the simplified Studio project here

I hope is now clear. If not then please, let me know. Thanks

Announcements
Top Tags