Skip to content

pedrofe/vr_camera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vr_camera

The following is an VR camera implementation built for the Arnold renderer, a Monte-Carlo unidirectional path-tracer developed by Solid Angle. The implementation is simple, basically two cameras offsetted by a distance with an specific 360º projection.

For more information about this camera: http://www.pedrofe.com/oculus-camera/

##Instructions to compile the camera:

  • ##Windows:
  • Set the environment variable ARNOLD_PATH to the folder where the Arnold SDK is located. If you have installed Arnold in this folder:

C:\solidangle\releases\Arnold-X.X.X.X-windows

You will set ARNOLD_ PATH to that folder using this command:

set ARNOLD_PATH="C:\solidangle\releases\Arnold-X.X.X.X-windows"

  • Then, we will open a Visual Studio command prompt and execute the following command:

cl /LD /I %ARNOLD_PATH%\include /EHsc VRCamera.cpp /link /LIBPATH:%ARNOLD_PATH%\lib ai.lib

  • ##OS X

  • Assuming you have installed Arnold in this folder:

    /Users/userName/solidangle/Arnold-X.X.X.X-darwin

    Open a terminal and set ARNOLD_ PATH to that folder using this command:

    export ARNOLD_PATH=/Users/userName/solidangle/Arnold-X.X.X.X-darwin

  • Then, execute the following command to compile the camera shader:

gcc -I$ARNOLD_PATH/include -L$ARNOLD_PATH/bin -lai -dynamiclib VRCamera.cpp -o VRCamera.dylib

##Installation Instructions:

  • Place the resulting VRCamera binary and the VRCamera.mtd files in this folder: %MTOA_PATH%\shaders\
  • Place the aiVRCameraTemplate.py ?le in %MTOA_PATH%\scripts\mtoa\ui\ae\ folder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published