Skip to content
README.md 2.9 KiB
Newer Older
Dalai Felinto's avatar
Dalai Felinto committed
# Virtual Reality Viewport
Addon to bring virtual reality devices to the Blender viewport.

Dalai Felinto's avatar
Dalai Felinto committed
This is work in progress/pre-alpha state, use at your own risk.

Dalai Felinto's avatar
Dalai Felinto committed
Pre-Requisite
oculushut's avatar
oculushut committed
============
Dalai Felinto's avatar
Dalai Felinto committed
Custom Blender build from https://github.com/dfelinto/blender/tree/oculus

Dalai Felinto's avatar
Dalai Felinto committed
* Win 32: http://www.dalaifelinto.com/ftp/builds/framebuffer-win32_latest.zip
* OSX 64: http://www.dalaifelinto.com/ftp/builds/framebuffer-OSX-10.6-x86_64_latest.zip
* Linux 64: http://www.dalaifelinto.com/ftp/builds/framebuffer-linux-glibc211-x86_64_latest.tar.bz2
Dalai Felinto's avatar
Dalai Felinto committed

You can also get the latest version of the Addon here:
Dalai Felinto's avatar
Dalai Felinto committed
* http://www.dalaifelinto.com/ftp/builds/space_view3d_virtual_reality.zip
Dalai Felinto's avatar
Dalai Felinto committed

Note
====
* Windows 64 is not working at the moment.
* Extended Mode is the only tested mode. Direct mode may or may not work
* Oculus 0.5 runtime required
oculushut's avatar
oculushut committed

Dalai Felinto's avatar
Dalai Felinto committed
How to Use
==========
Dalai Felinto's avatar
Dalai Felinto committed
In the viewport go to the toolshelf, select the ``Virtual Reality`` tab, click on the ``Virtual Reality`` button and follow the on-screen instructions.
Dalai Felinto's avatar
Dalai Felinto committed

Dalai Felinto's avatar
Dalai Felinto committed
Current State
=============
Dalai Felinto's avatar
Dalai Felinto committed
<img src="https://pbs.twimg.com/media/CCm5C85WYAAy2jL.jpg:large" width="600" />
Dalai Felinto's avatar
Dalai Felinto committed

oculushut's avatar
oculushut committed
Video of plugin working:

oculushut's avatar
oculushut committed
[![Video of plugin in action](http://img.youtube.com/vi/saSn2qvW0aE/0.jpg)](https://www.youtube.com/watch?v=saSn2qvW0aE)

Dalai Felinto's avatar
Dalai Felinto committed
Oculus SDK 0.5 is working across Windows, Mac and Linux.

Dalai Felinto's avatar
Dalai Felinto committed
Installation
============
In a terminal paste the following commands:
```
$ git clone https://github.com/dfelinto/virtual_reality_viewport.git
$ cd virtual_reality_viewport
$ git submodule update --init --recursive --remote
$ zip -x __pycache__ -x */.git* -r9 space_view3d_virtual_reality.zip space_view3d_virtual_reality
```

Now install the space_view3d_virtual_reality.zip in Blender as an addon.

Update
======
Dalai Felinto's avatar
Dalai Felinto committed
In a terminal paste the following commands:
Dalai Felinto's avatar
Dalai Felinto committed
```
$ git pull origin
$ git submodule update --recursive --remote
Dalai Felinto's avatar
Dalai Felinto committed
```

Followed by the rsync command for your OS:

Mac:
```
Dalai Felinto's avatar
Dalai Felinto committed
$ rsync -rv --exclude=.DS_Store --exclude=.git --exclude=*.blend1 --exclude=*.blend2 --exclude=*.swp --exclude=*.swo space_view3d_virtual_reality ~/Library/Application\ Support/Blender/2.76/scripts/addons/
Dalai Felinto's avatar
Dalai Felinto committed
```

Dalai Felinto's avatar
Dalai Felinto committed
Linux:
```
Dalai Felinto's avatar
Dalai Felinto committed
$ rsync -rv --exclude=.DS_Store --exclude=.git --exclude=*.blend1 --exclude=*.blend2 --exclude=*.swp --exclude=*.swo space_view3d_virtual_reality ~/.config/blender/2.76/scripts/addons/
Dalai Felinto's avatar
Dalai Felinto committed
```

Dalai Felinto's avatar
Dalai Felinto committed
Optionally, instead of rsync you can generate a new ``.zip``, remove the previous version of the addon and re-install it.

Dalai Felinto's avatar
Dalai Felinto committed
Roadmap
=======
Dalai Felinto's avatar
Dalai Felinto committed
Oculus SDK 0.7 is still in progress.
Dalai Felinto's avatar
Dalai Felinto committed

Dalai Felinto's avatar
Dalai Felinto committed
Later we can also extend the external bridge library to support other HMD devices.
Dalai Felinto's avatar
Dalai Felinto committed

Dalai Felinto's avatar
Dalai Felinto committed
Also, we need to decide how to better handle the externals (bridge and python-ovrsdk).
Dalai Felinto's avatar
Dalai Felinto committed

Credits
=======
Dalai Felinto's avatar
Dalai Felinto committed
* Oculus SDK 0.5 wrapper by https://github.com/jherico/python-ovrsdk
* Oculus SDK 0.7 bridge: Dalai Felinto and Djalma Lucio @ Visgraf / IMPA 
* Blender Addon - Dalai Felinto - http://www.dalaifelinto.com
Dalai Felinto's avatar
Dalai Felinto committed

Acknowledgements
================
Visgraf / IMPA - for supporting the core of the addon development