Version 4 (modified by edy, 12 years ago) (diff)

--

Active Stereoscopic 3D for Unity

Bring true active stereoscopic 3D to your games!

By using two Unity Camera objects this pluging provides a true active stereoscopic 3D signal to the 3D hardware. Perfect support for stereoscopic real-time shadows and image effects. Settings include eye distance and parallax with parallel frustrum.

Windows only. Requires Unity Pro and the NVidia 3D Vision driver. Supported hardware includes IR emitters, DLP TVs (DVI/HDMI cable), LCD displays (dual-link DVI cable), anaglyph glasses and any HDMI 1.4-compliant stereoscopic 3D device (TV, bluray, etc). Devices not directly supported by 3D Vision require the software NVidia 3DTV Play to be installed. This package includes a modified version of the free script Stereoskopix 3D.

Available now at the Unity Asset Store!

Prerequisites:

  • NVidia 3D Vision driver for Windows is required (download).
    NVidia 3DTV Play for hardware not directly supported by NVidia 3D Vision (more).
  • Test your stereoscopic hardware using the 3D Vision Test tool.
    NVidia Control Panel > 3D Vision > Set up stereoscopic 3D > Test Stereoscopic 3D > Run Setup Wizard
  • Configure the 3D Vision settings:
    NVidia Control Panel > 3D Vision > Set up stereoscopic 3D 
    - Enable stereoscopic 3D
    - Depth: Min (move the slider to the leftmost end).

Setup:

  1. Import the package (Asset Store > My Stuff > Active Stereoscopic 3D for Unity > Import)
  2. At the Project view, move the Plugins folder from the folder Active Stereoscopic 3D Plugin to the root of your Project.
  3. A Stereoscopic Main Camera prefab is provided, which includes all necessary components for composing the stereoscopic 3D image and communicating with the 3D Vision driver. Use this camera instead of the regular Main Camera.
  4. See below for detailed instructions on using the Plugin.

How to build the Demo project:

  1. Create a new Unity 3D project which includes the Character Controller package.
  2. Import the package Active Stereoscopic 3D for Unity into the project (Asset Store > My Stuff)
    IMPORTANT: Move the Plugins folder from Active Stereoscopic 3D Plugin to the root of your Project.
  3. Open the Demo Scene and click Play.
    You should see a side-by-side picture in the Game window. This is ok and means that the plugin is working properly. 3D Vision doesn't work inside the Unity Editor, but the plugin is combining the two cameras correctly in the Game view.
  4. Prepare to build the scene:
    - File > Build Settings: choose PC and Mac Standalone. Target platform: Windows.
    - Ensure the Demo Scene is the only one at Scenes in Build. Click Add Current if it's not there.
  5. Click Build and Run, then choose a folder for the built project.
    - Choose a resolution and disable Windowed (stereoscopic 3D works in full screen only).
    - You should see the scene in active stereoscopic 3D using your 3D hardware. If you still see the side-by-side picture, enable the 3D Vision stereoscopic mode using the keyboard shortcut (Ctrl-T by default).

How to use Active Stereoscopic 3D for Unity in an existing project:

  1. Import the package Active Stereoscopic 3D for Unity into the project (Asset Store > My Stuff)
    IMPORTANT: Move the Plugins folder from Active Stereoscopic 3D Plugin to the root of your Project.
  2. Change your Main Camera with the provided Stereoscopic Main Camera prefab.
    Ensure to update all references to your old Main Camera so they now point to the Stereoscopic Main Camera.
  3. Configure scripts and effects:
    - Non visual scripts and effects (i.e. movement or behavior) should go into the Stereoscopic Main Camera gameobject.
    - Visual effects should go into both children Camera L and Camera R cameras. They are the cameras that actually take the pictures.
  4. Clicking Play should show you a side-by-side picture in the game view. This is ok and means that the plugin is working properly. 3D Vision doesn't work inside the Unity Editor, but the plugin is combining the two cameras correctly in the Game view.
  5. Build the scene following the same instructions as explained above for the Demo project.
    - PC and Mac Standalone, Target platform: Windows.
    - Always full-screen.
    - Press Ctrl-T if running the built project shows a side-by-side picture.

FAQ:

Do i need a NVidia 3D Vision kit or a NVidia-certified projector?

No. The plugin works with any hardware supported by NVidia 3D Vision, which includes many devices from several brands. See the complete list. Ensure to test your hardware using the 3D Vision Setup Wizard (NVidia Control Panel > 3D Vision > Set up stereoscopic 3D > Test Stereoscopic 3D > Run Setup Wizard). Once it works there, the Active Stereoscopic 3D Plugin for Unity will work as well.

If your hardware is not directly supported by NVidia 3D Vision, you can install NVidia 3DTV Play which provides compatibility with almost any 3D HDMI 1.4-compliant hardware, including HDTV, Bluray, etc.

Can I build a webplayer with this package?

No. The plugin uses a native DLL which is not suitable for the web player. Only Windows Standalone is supported.

I receive an error DllNotFoundException

At the Project view, move the folder Plugins from Active Stereoscopic 3D Plugin to the root of the project. Otherwise Unity will fail to load the DLL which is an essential part of the plugin.

I see a side-by-side picture in the Game view, but no active stereo

This is ok and means that the plugin is working properly. 3D Vision doesn't work inside the Unity Editor, but the plugin is combining the two cameras correctly in the Game view.

I see a side-by-side picture when running the built project, but no active stereo

Ctrl-T, check out 3D Vision settings.

I can't even see a side-by-side picture, no active stereo, nothing

StereoCam.js settings, plugin working (see log), try building the Demo Scene into an empty project.