Skip to content
README.md 2.39 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.

oculushut's avatar
oculushut committed
Prerequisite
============

oculushut's avatar
oculushut committed
Currently working on Blender Test Build 2.75: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.75
oculushut's avatar
oculushut committed

Dalai Felinto's avatar
Dalai Felinto committed
How to Use
==========
Dalai Felinto's avatar
Dalai Felinto committed

Dalai Felinto's avatar
Dalai Felinto committed
In the viewport press ``Space`` + ``Virtual Reality Viewport``.
Dalai Felinto's avatar
Dalai Felinto committed

Dalai Felinto's avatar
Dalai Felinto committed
And then press:
* ``Alt + F11`` (Window Fullscreen)
* ``Alt + F10`` (Fullscreen Area and Hide Panels)
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
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:
```
$ rsync -rv --exclude=.DS_Store --exclude=.git --exclude=*.blend1 --exclude=*.blend2 --exclude=*.swp --exclude=*.swo space_view3d_virtual_reality ~/Library/Application\ Support/Blender/2.75/scripts/addons/
Dalai Felinto's avatar
Dalai Felinto committed
```

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

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 DK2 is currently working. The next step is to support view navigation (`Shift + F`) within the addon.

Later we can make it flexible enough to support other HMD devices.
Dalai Felinto's avatar
Dalai Felinto committed

There are a few things I still need to implement:
* Automatically go to clean fullscreen (Alt+F10) and fullwindow (Alt+F11)

Feel free to send pull requests to any of the above.
Dalai Felinto's avatar
Dalai Felinto committed

Credits
=======
Dalai Felinto's avatar
Dalai Felinto committed
Oculus DK2 Shader by Martins Upitis (which I guess based his work from elsewhere)
Dalai Felinto's avatar
Dalai Felinto committed

Dalai Felinto's avatar
Dalai Felinto committed
OculusVR wrapper by https://github.com/jherico/python-ovrsdk
Dalai Felinto's avatar
Dalai Felinto committed

Dalai Felinto's avatar
Dalai Felinto committed
Blender Addon - Dalai Felinto - http://www.dalaifelinto.com