Dragging a 360 Video / Image to see all sides


#1

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


#2

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

You can change it to move the the sphere.

Steve


#3

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.


#4

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.

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

All the best,
Seb


#5

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!


#6

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

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