Hi, this is going to be a very newbie question - and I apologise for that.
I’m interested in creating a 360 animation within which the user can look around. I have spent the past few years building a number of cgi animations, that have been rendered to video format. What I want to do now, is to take these videos and map them to a 360 sphere within which the user can stand and look around as the animations play back.
I have been searching for resources to teach me how to go about this, but I am coming up completely blank. Could someone help me out, or point me in the right direction to where I can find some resources or teaching materials that would enable me to do this?
I appreciate any help!
To do this, you’ll want to use MovieTexture to play the movie (requires Pro), place that material onto a quad that’s in front of your camera, and then add a script that sets its rotation to Camera.main.transform.rotation. Give the quad a script holding an array of MovieTexture’s, and use Mathf.Atan2 and a little multiplying to figure out which movie to apply to renderer.material.mainTexture.
All that said, it seems like you’re going about this all wrong. If these came from 3D models, why would you not use the 3D models in your game? It’ll look better, will be more interactive, will be easier to code, and will result in a MUCH smaller build size.
Thanks for the information - I’m completely new to Unity, so that is probably one of the reasons for me thinking of doing it this way.
The other reason is that the original videos were created from 2D images, which were rendered as individual animation frames. There are no original 3D or 2D objects that can be used.
I don’t really need the game / demo to be interactive. The plan is to use it with the Oculus Rift, and simply allow the users some freedom of movement, and head tracking around the video. The intent is to fully immerse them in the effects of the video.
Oh, it’s a 360 degree image which you’re inside? I was thinking it was looking at an object in space.
Perhaps it’s possible to create a skybox out of these videos? I’m not certain MovieTextures work with Skyboxes but I can’t imagine why they wouldn’t.
Yes, I want to be inside the 360 video. My initital explaination probably wasn’t very clear.
I have tried attaching the MovieTexture to a Skybox, and Unity allows me to do that. However I can’t work out how to apply a script to the Skybox, as I need the script in order to get the video to play.