I want to play 360 video in skybox. Is there any direct way avaiable to do this task. One long, boring, inefficient procedure which seems that

  1. Convert 360 to frames
  2. Convert frames into cubmap
  3. Use that cubeMap in skybox and Programatically change it's textures(Frame) quickly so that video effects shown

This is the long task which seems to me possible but is there any other way available?

  • \$\begingroup\$ using unity? no i don't believe so. I don't think unity supports the direct use of video, you would have to cut frames and make it a box. \$\endgroup\$ – Ryan white Sep 5 '16 at 14:08
  • \$\begingroup\$ You can probably play it into MovieTexture, grab the result from the screen, apply some math to convert it into cubemap, then render in on the skybox. Writing custom shader and skybox can be a good idea. \$\endgroup\$ – Maxim Kamalov Sep 6 '16 at 1:43
  • \$\begingroup\$ @MaximKamalov you should be able to do this more simply - write a shader that reads the MovieTexture directly, performing the appropriate math to sample the needed texels from it for each pixel on the screen. No need for screengrabbing or constructing a whole cubemap for unseen parts of the "sky." \$\endgroup\$ – DMGregory Oct 10 '16 at 4:40
  • \$\begingroup\$ In fact, see this answer for an example of such a shader \$\endgroup\$ – DMGregory Sep 21 '17 at 13:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.