Dragging a 360 Video / Image to see all sides

Is there a way to drag the 360 Sphere Video / image to view all sides versus needing to physically rotate 360 degrees to see all sides? It would work like the Youtube 360 videos where you can use your cursor to drag the playing movie 360 degrees to see all sides.

Thanks!
Ed

I would take a look at the code in this post.
RotationSlider.zpp

You can change it to move the the sphere.

Steve

Thanks Steve! I see the controller but do not see a 360 Image it is controlling. Am I missing something or do I need to import a 360 VR Image to see it work? Also does this work with a 360VR Image versus a Video?

Thanks for being so helpful on this Forum Steve.

Hi @eprentice,

The example zpp project from the thread Steve sent through (Thanks @stevesanerd! :slight_smile: ) doesn’t use a 360 image. Rather, it’s an example of using swipe functionality to rotate an object, which is essentially the same functionality-wise when rotating a 360 photosphere.

If you create a 360 panorama you can set the code in the RotateByTouchScript script node (in the example project) to rotate the photosphere node in your own Hierarchy.

Create a reference to your photosphere object in the script by dragging it to the top of the script and selecting Insert new variable, then instead of calling the rotate() function on the mObj variable, call it on your photosphere variable.

image

All credit to @bradleycox255 (Thanks Bradley!) who created this example project.

All the best,
Seb

1 Like

Thanks Much Seb! I will try this out later today and report back the outcome!
Ed.

P.S. YEP Thanks Steve for being a great resource on the Forum!

2 Likes

I am trying the code and cannot seem to figure out this pesky error!fw

Any ideas what could be causing that?
Thanks for the help!

In this line
let _rot = mObj.rotation();
You need to replace “mObj” not “rotation”
So…
let _rot = Photo_Sphere1.rotation();

@stevesanerd @Seb
Very useful, works fine but there is a problem.

When the 360 image has interactive points, the Plane that allow the rotation, not allow to access to buttons or points.

:roll_eyes:

Off the top of my head you have to change where the buttons are in the hierarchy.
If the interactive points or button is below the touch plane in the hierarchy move it above it. If not move it below it.

Steve