3D Vision Blog

A normal user's look into the world of 3D Stereo Technologies

3D Vision Blog header image 4

Adding a Web Camera to the Oculus Rift Can be Quite Helpful

April 18th, 2013 · 23 Comments · 3D / AR / VR / HMD


You’ve probably noticed that I’ve been playing mostly with the Oculus Rift Dev Kit since I’ve got my unit and the good thing is that even though so far only about 2K development kits were shipped the community is very active and there are new development around the Rift all the time. Now, since the Rift covers your vision completely and when you put on headphones for the sound you kind of get completely cut off from the “real world”, and though that this has advantages it also brings some disadvantages. Like having a hard time finding the keyboard or the mouse on your desk without taking off the Rift, so I’ve decided to see what can we do to easily get around this problem. The solution is actually quite simple – add a webcam with a wide angle lens so that when you are wearing the Rift you can switch to the camera and see your desk or what is happening around you. I’ve had a suitable webcam around and by replacing the standard lens with a wider angle one I got this simple and easy to use solution working almost perfectly.


I’ve mounted the camera with Velcro in the center of the Rift and then fired up the Stereoscopic Player with Live Video mode on and the monoscopic camera input set to output using the Oculus Rift viewing method. The web camera is with 640×480 resolution and 30 fps and that seems to work quite well, it also has a set of LEDs for use in dark environments (including a set of IR LEDs) and plugs via USB, it also has a microphone, though I was not able to make it work under Stereoscopic Player. Now, you can easily extend this solution by adding two web cameras f the same model on your Rift to get a stereoscopic 3D video input with the help of the Stereoscopic Multiplexer dual-camera capture solution developers by Peter Wimmer, the author of the Stereoscopic Player. You need to run the Stereoscopic Player in full-screen mode and you can switch between it and the currently running Oculus Rift-compatible game or application by the key combination ALT + TAB. The only drawback here is that you need to be able to hit the key combination, but you can thing of something more creative to be mapped to that combination to make it easier two switch between the two. It works surprisingly well and is a modification that everyone should be able to easily make, even with two cameras for stereo 3D video input (placed at the right distance based on your IPD), the key thing is to use a wider angle lenses instead of the standard ones that would probably be with a narrower angle.

If we get integrated stereo camera solution with an easy to activate overlay or switch between the camera input and application input or combining them both in a future version the Oculus Rift it would also be able to become a device capable not only of VR with stereo 3D support, but for AR applications as well. Meanwhile, the next thing to try out for me is to get rid of all the cables and make the Oculus Rift completely mobile and wirelessly connected to the PC – the display and the headtracker, along with suitable wireless controllers and wireless headphones as well powered by a battery and all inside a backapack on the user’s back. This however would probably take some more time to complete…

→ 23 CommentsTags:·····

Dual Camera Rig Live Stereoscopic 3D Preview and Alignment Method

September 28th, 2010 · 28 Comments · Shooting in 3D

If you are making a custom dual camera rig for shooting video in stereoscopic 3D format, then you’ve probably ran yourself with some issues in actually getting a live 3D preview in order to setup the cameras correctly for the subject you are going to shoot and even if you just want to properly align the two cameras. Of course the two cameras/camcorders must be the same make and model, but even that does not guarantee you that they will be perfectly aligned with each other, so you might have to do a little bit of additional tweaking in order to get the proper vertical alignment of the two lenses. Here I’m using two Sony HDR-SR11E HD camcorders (on the photo above) and as you can see I’ve connected the video out cable to each other, something that is not so convenient on this model. The closest interocular distance I could get with the SR11Es was about 8 centimeters in a parallel configuration, but with the video out cables connected the minimum distance goes to about 10-11 centimeters which is not very useful for filming close objects in 3D. However it has worked very nicely helping me properly align vertically the two cameras, because they’ve had a bit of an offset as you’ll see on the photos below…

The solution I’m describing here is for SD quality preview and good enough for alignment of the cameras, it is not intended to provide a Full HD quality and resolution with the idea of the whole setup to be very affordable and mobile. Not that you cannot go for a better quality solution, but you might have to sacrifice some of the mobility you get or purchase much more expensive hardware to be able to do that, and if you go for Full HD preview quality you might as well go for directly capturing from the cameras and not recording the footage on their HDDs. What I’m using here is a pair of Easy Cap USB video capture adapters, because these provide quite good SD quality and come very cheap – you can get them for even under $10 USD each. So these get connected to a laptop to get everything mobile, for portability you might get them connected to a smaller netbook should you need that, or if mobility is not needed you can use a portable nettop or even a normal desktop PC. If you are going for a Full HD preview then you need a suitable HDMI capture card and these are of course available, but you’ll have to get around $200 USD for each. I’m talking about the more affordable Blackmagic Design’s Intensity Pro and Intensity Shuttle products. With the Intensity Pro being a PCI Express based add-in card that needs to be inserted in a motherboard and the Intensity Shuttle using USB 3.0 interface which makes it possible to be used with a compatible laptop and not just a desktop PC. You can of course even go for the Blackmagic Design DeckLink HD Extreme 3D add-in card that is stereo 3D ready and has HDMI and SDI inputs for capture, but you’ll have to prepare $900+ USD for it and that makes it quite a bit more expensive, although it offers more options and additional features.

So up to here we have the two cameras/camcorders with their video out cables connected and then in turn the video out cables connected to the USB capture cards plugged in a PC or a laptop. So now we have the ability to preview and/or capture single streams coming from each of the cameras or camcorders with pretty much any software that supports video capture functionality. However we need a special software that will have to combine the two separate video streams coming from each camera into a single stream that can be in turn previewed or captured in a compatible stereoscopic 3D video player. There are a few such programs available, but here I’m using Peter Wimmer’s Stereoscopic Multiplexer and after that we’ll also need the Stereoscopic Player from the same author for the 3D preview part. Both programs are commercial, meaning that you need to purchase a license, but there are also free evaluation versions that allow you to try them and purchase a license should you decide they do the job you need them to.

After you install and run the Stereoscopic Multiplexer you need to go over a few simple steps in order to setup the two capture devices, with the first one being to actually select the right capture device for the left and for the right camera. You need to be careful here as when using the came capture devices they both have the same name, but if you make a mistake you can get back and correct it at this point. Also be careful not to select other capture devices available in your system, other than the ones you are using that are connected to the cameras. The Easy Cap USD capture adapters are being recognized as Syntek STK1150, but the name here might be a different one even you you get the same cheap video capture adapters.

The second step from the Setup process is to choose the resolution and mode you are going to be capturing in. As I’ve already mentioned here SD capture adapters are used, so the mode to select is either 720×576 PAL or 720×480 NTSC. You can test if everything works as it should when selecting the mode, it should be the same for both capture devices, by pressing the test buttons for the left and for the right video devices. If everything is working fine, then you may proceed with further setting up the Stereoscopic Multiplexer.

The next step offers you to do some additional adjustments, such as to set a specific frame rate for the capture. This is good if you have the camera/camcorder working at a specific framerate like 24, 25, 30 fps and you need to make sure that the preview will also be at the same framerate. Below the framerate option you have some checkboxes in order to rotate the image should you have any of the recording cameras rotated in some way. Having one of the cameras upside down for example is not so uncommon when you are making a custom stereoscopic 3D rig, so these option can be very helpful in providing the right video input so that the left and right video can be properly displayed.

A few more additional options in the next Setup step, probably you will not have to change anything here. Just a word of caution regarding the Deinterlace mode, you should probably stay away from it, unless you know what you are doing. This is because if you activate the Deinterlace mode you are actually getting the odd fields dropped (removed from the image being shown), so you better leave that unchecked (not selected).

Now, you are finished with the setup and you’ll be able to see some preview in the Stereoscopic Multiplexer as well as an option to record the video footage you are getting. However this part of the software’s functionality is not very advanced and you don’t have a lot of options, so you should consider using the Stereoscopic Multiplexer together with the Stereoscopic Player. In order to do that you can start the player, open the File menu, go to the Live Video and select the Stereoscopic Multiplexer as the source from the menu (you don’t need the Stereoscopic Multiplexer running at the background if you plan on using it from within another software like the Stereoscopic Player or VirtualDub). Now you’ll be able to preview the content in pretty much any output format supported by the Stereoscopic Player, like for example anaglyph that will work with any display or do a direct preview on 3D Vision-capable laptop or desktop PC. What the Stereoscopic Multiplexer does is to create a DirectShow filter that contains both left and right views in a Side by Side configuration and the good news is that you can use that filter as a capture source in other programs too, like for example use the capture mode of the free Virtual Dub video editor if you need to capture any of the footage coming from the cameras in stereo 3D format.

Using the anaglyph output format with a pair of paper red-cyan glasses provides great flexibility as it is practically useful on any kind of display and does not require any specific hardware, so you can go with pretty much any laptop or desktop PC. This will help you get a portable and mobile preview station to go along with your two cameras or camcorders without having to go and buy a new laptop with a 3D-capable display – pervasively polarized or with active shutter glasses. By using the anaglyph mode you can also quite easily spot vertical misalignment of the two cameras and do the needed fixes, so that you will not have to do any fixes for that in post production of the video after you’ve already shot it. As you can see on the screenshot above my two Sony SR11E camcorders did have some vertical misalignment that I was already aware of even before working out the live preview procedure, after recording and previewing some test 3D footage. However with the live preview I was able to easily fix the issue in no time, by doing some modifications on the metal bar holding the two cameras together by being able to see in real time the alignment after the modifications to perfectly match the two cameras.

I hope this guide is helpful to all of you who are recording stereoscopic 3D video with custom dual camera setups and I’d be glad is you also share some ideas and/or methods you are using as well as what custom camera/camcorder setups do you use for recording…

→ 28 CommentsTags:··················