Skip to content

AndrewHazelden/vr_camera

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 1 commit ahead, 1 commit behind pedrofe:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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 offset 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

Mac

  • 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

MtoA

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

C4DtoA

Windows

  • Place the resulting VRCamera binary and the VRCamera.mtd files in this folder:
    C:\Program Files\MAXON\CINEMA 4D <Version>\plugins\C4DtoA\shaders\
  • Place the C4DtoA res Cinema4D UI resource files in this folder:
    C:\Program Files\MAXON\CINEMA 4D <Version>\plugins\C4DtoA\res\

Mac

  • Place the resulting VRCamera binary and the VRCamera.mtd files in this folder:
    /Applications/MAXON/CINEMA 4D <Version>/plugins/C4DtoA/shaders/
  • Place the C4DtoA res Cinema4D UI resource files in this folder:
    /Applications/MAXON/CINEMA 4D <Version>/plugins/C4DtoA/res/

HtoA

  • Place the resulting VRCamera binary and the VRCamera.mtd files in this folder:
    %ARNOLD_PLUGIN_PATH%\shaders\

SItoA

Windows

  • Place the resulting VRCamera binary and the VRCamera.mtd files in this folder:
    <SITOA_INSTALL>\Application\Plugins\bin\nt-x86-64\

Linux

  • Place the resulting VRCamera binary and the VRCamera.mtd files in this folder:
    <SITOA_INSTALL>/Application/Plugins/bin/linux/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 70.4%
  • C 24.0%
  • Python 5.6%