Page 1 of 1

Restrict Dragging of 3D Object

Posted: Mon May 17, 2021 11:08 am
by NishantA23
Hello,

I want to make an experience where I will be able to draw polygon hotspots on a particular column and row. Here, I want to restrict the user from dragging the model or else the polygons will disappear if I haven't added them to every row and column out there. Then, I am planning to add a button in the skin where, on click, it'll take the user to the specific row and column where polygon hotspots are visible.

The problem here is that I want to restrict the user from dragging to other row/columns. Is it possible to restrict the drag aspects of object, where users can only rotate the 3D object on click of the button ?

I hope you've understood what the problem here is.

Thank you.

Re: Restrict Dragging of 3D Object

Posted: Tue May 18, 2021 5:43 pm
by Hopki
Hi,
You can cover the skin with a transparent rectangle, this will stop any mouse interaction with the object.
You can then hide and show this to restrict mouse access.
Another thought would be to use different view states, one state has no hotspots the other does, but this would be quite wasteful as you would need the images twice.
Regards,

Re: Restrict Dragging of 3D Object

Posted: Sat May 22, 2021 10:47 am
by NishantA23
Hello,

If I add the transparent rectangle, I would not be able to click on my hotspots as well, right ?

Imagine that on column 20 I have hotspots and I don't want the user to drag with mouse on this frame. Here, since the hotspot needs interaction, the transparent rectangle will block it as it will not allow any mouse activity. Is there something like Z-index where hotspots can be interacted and column no 20 is also not draggable ?

Thank you.

Re: Restrict Dragging of 3D Object

Posted: Tue Jul 06, 2021 7:25 pm
by NishantA23
Hello Hopki,

Can you please reply to this problem. I am still trying to solve it.

Thank you.

Re: Restrict Dragging of 3D Object

Posted: Mon Jul 19, 2021 11:29 am
by NishantA23
Hello,

Can you please reply to this problem. I am still trying to solve it.

Re: Restrict Dragging of 3D Object

Posted: Mon Jul 19, 2021 5:58 pm
by Hopki
Hi,
With viewing parameters, you can only limit if the object rotates or stops at the last/first images, so as not to go around in circles.
If you want to add a button that moves to a specific view you can use the Move to View action, please see this forum post: viewtopic.php?f=14&t=9366
But what you're describing is you want to stop viewers from going to images without polygons, Object2VR can not do this.
Regards,