Forum Discussion
rezfan001
11 years agoHonored Guest
Making a 3D video and playing it with the Oculus
Hello everyone,
I'm fairly new to programming and using unity, but I have a question concerning a project I'm doing for school. Would it be possible to record a 3D video and make it play on the Oculus using Unity. I was told that it would be possible to create a 3D video by recording with 2 cameras, but I don't know if this is possible.
As I mentioned before, is this even possible?
And if so,
How should I record the video?
Can I use unity to make it playable using the Oculus rift?
If so, how would one program it and make sure it's 3D?
Sorry if my subject is a little vague, but I really need some professional help.
Thanks for the attention and I would love for wide answers about the subject and on it's questions.
(sorry if I made any grammar or vocab mistakes, I'm not a native english speaker :lol: )
I'm fairly new to programming and using unity, but I have a question concerning a project I'm doing for school. Would it be possible to record a 3D video and make it play on the Oculus using Unity. I was told that it would be possible to create a 3D video by recording with 2 cameras, but I don't know if this is possible.
As I mentioned before, is this even possible?
And if so,
How should I record the video?
Can I use unity to make it playable using the Oculus rift?
If so, how would one program it and make sure it's 3D?
Sorry if my subject is a little vague, but I really need some professional help.
Thanks for the attention and I would love for wide answers about the subject and on it's questions.
(sorry if I made any grammar or vocab mistakes, I'm not a native english speaker :lol: )
9 Replies
Replies have been turned off for this discussion
- nosys70Expert Protegeto shoot a 3d video you just need a 3d camera.
it is either a 3d ready camera (a few available, the best and cheapest would be the the fujifilm because the wide spacing between lenses) or a 3d camera made with two camera mounted side to side.
This is a bit trickier because you need to carefully align them and synchronize the shots.
The problem is you mentionned playing these videos with the oculus, so potentially, you are looking not only for stereoscopic ("3D") but also for panoramic field of view.
That is really more challenging because it requires a lot more camera (up to 15) and stitching ans synchronizing shots, a very tedious and time consuming job.
After you finally get the movie, you can play it with some ready made player for oculus or write your own into unity. - philedayMemberI've been working with 3D 360 degree video in Unity for a while and have put together a help page in getting people started in this area. Here is a link to a simple unity3d scene with a 360 degree video barrel and fisheye that at least should give you an idea on how to get 3d video working in the oculus.
http://whirligig.xyz/production-tips/
The page should make things a bit clearer in getting the setup working if you want to create some 3D stuff in Unity.
Hope that helps
Phil - forhk0423Explorer
"phileday" wrote:
I've been working with 3D 360 degree video in Unity for a while and have put together a help page in getting people started in this area. Here is a link to a simple unity3d scene with a 360 degree video barrel and fisheye that at least should give you an idea on how to get 3d video working in the oculus.
http://whirligig.xyz/production-tips/
The page should make things a bit clearer in getting the setup working if you want to create some 3D stuff in Unity.
Hope that helps
Phil
hello , I can't download the project in this site http://whirligig.xyz/production-tips/ .
I want to play stereo video in Oculus Rift using Unity3D.
If the input is two separated left and right video file, I can play it in different layers and set the camera to correct layer.
But if the input is one file with left and right format ,i have no idea what can i do , don't know how to separate them.
And have searched the whole forums without some findings.
could you give me some suggestions ? thank you - philedayMemberTry this link https://www.dropbox.com/s/ep7y4i26p0nmq ... r.zip?dl=1
This is a Unity 4.6 project. If you convert it to unity 5 the texture probably won't make as much sense. You can easily recreate them from scratch if you use the 4.6 version as an example.
It's best to have the video in one file side by side or over under as this will guaranty keeping them in sync. If for example you want to have the video on a plane create two planes left and right putting them in different layers as you have you have already done. Then add a standard material and use the offset and tile settings to only show one half or the other half of the video. I think the settings are:
Left
tiling 0.5 - 1
offset 0 - 0
Right
tiling 0.5 - 1
offset 0.5 - 0
I can't remember if there is a plane in the test scene I've provide but I'm pretty sure the mapping for a plane is the same for barrel.
hope that helps. Feel free to ask more questions. - forhk0423Explorerthan you very much ,phileday. :D
I think it will works.Will test it soon - blenderpediaHonored GuestThis is exactly what i need, but it seems this unity file is only for images. Will this also work with 2GB video files? and do you need to add them seperated, or as a sideby side video.
- philedayMemberUnity isn't great with video files. The free way to go is to look at video textures which I think generally works in the same way as image textures. Video textures are vorbis encoded and you may have difficulty getting a high resolution video working well. The other option is to buy a plugin for video playback. The one I use is the AVPro video plugin by renderheads. This is the best one I know of if you wish to be able to play multiple video types. Other than that you'll have to do a bit of research into the different plugins.
Here's a link to that plugin
https://www.assetstore.unity3d.com/en/#!/content/2546
hope that helps. - forhk0423Explorerhello phileday ,with your help,I've finished play one video twice in two different layer with tiling and offset .
But I find that it may have sync problem as you said.
How can I play it just once and make them show in Oculus well.
Another question is in your Base Player Project, you use dome to show Fisheye 360 mono and make the tiling 1 -1
and the offset 0 1 .I think the settings should change according to different pics, but have no idea how to do it .
When the fisheye photo is 180 and is rect size instead of circle ,what can i do .
Sorry to ask so much ,I am a new programmer in Unity, It's time to learn more about textures in it.
Hope you can give some suggestions. :D - philedayMemberI'm not sure I understand your first question but I'll have a go.
Instead of having to texture images have one texture image. So that the video is on both the left dome and right dome. The material can have different settings as long as they are referencing the same video.
The second question
A full fisheye image will be square so it will fill the texture. If the fisheye has been cropped then it won't map properly. The fisheye however could be squashed, this isn''t a problem as the shape of the video isn't taken into acount and will fill the size of the texture.
This is the same with barrel or even just on a plane. If I taken the plane as an example the image would fill the plane no matter what the aspect ratio of the image is. The easiest way to change the aspect ratio of the plane is to change the size of the plane.
Hope that helps
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 years ago