Giter Club home page Giter Club logo

allounity's Introduction

AlloUnity

Developed by Tibor Goldschwendt, Four Eyes Lab, UCSB.

AlloUnity will enable the full-surround display of Unity3D-rendered scenes in the AlloSphere. Therefore Unity3D renders the scene to a cubemap. The cubemap is then extracted from Unity3D, H.264 encoded and sent over RTSP/RTP. In the AlloSphere the stream is decoded, drawn as the background of a omni-stereo rendering and displayed.

Work in progress.

Modules

AlloUnity currently consists of these five modules:

  1. CubemapRenderingPlugin: C# script for rendering a cubemap in Unity3D.
  2. CubemapExtractionPlugin: Extracts the cubemap from Unity3D and copies the texture data from the GPU to the CPU.
  3. AlloServer: Encodes the cubemap as six streams and provides the stream via RTSP/RTP.
  4. AlloPlayer: Receives the cubemap in the AlloSphere, decodes it and displays it.
  5. AlloShared: Resources shared between the modules explained above.

Building

Install dependencies:

Then build Unit3D scene and source.

Unity3D Scene

  1. Create or open a Unity3D scene (placed in <UnityProjectFolder>)
  2. Import asset CubemapRenderingPlugin/RenderCubemap.cs
  3. Add RenderCubemap.cs to the camera that should be the viewpoint of the rendered cubemap.
  4. Build scene for your operating system (named UnityProject)

Source

Build source with CMake and your favourite build environment, e.g.:

cmake -G "Unix Makefiles" -DUNITY_PROJECT_PLUGIN_DIR:PATH=<UnityProjectFolder>/Assets/Plugin
make

On success, this places

  • CubemapExtractionPlugin in <UnityProjectFolder>/Assets/Plugins/
  • AlloServer and AlloPlayer in Bin/
  • AlloShared in Lib/

Compilation tested with Visual Studio 2013 Ultimate on Windows, Xcode 6 on OS X and make on Ubuntu.

Launching

  1. Start <UnityProject> on rendering machine
  2. Start AlloServer on rendering machine
  3. Start AlloPlayer on display machine

Order matters!

License

BSDv3 License.

allounity's People

Contributors

tiborgo avatar yunsuk avatar donghaoren avatar mathieujofis avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.