Giter Club home page Giter Club logo

zoic's Introduction

zoic

Extended camera shader for the ever-awesome Arnold renderer.

Requirements

  • arnold
  • OpenImageIO (for arnold older than 4.2.9.0)
  • qmake or SCons

Build

With qmake

Edit the 'src/arnoldCamera.pro' file to setup the arnold (and optionally OpenImageIO) headers and libraries path. If your arnold version is recent enough, also add the 'NO_OIIO' define. Then

cd src
qmake
make

With SCons

scons with-arnold=/path/to/arnold
  • if it complains about missing 'excons' module, you most probably didn't initialize the submodules
git submodule update --init
  • if it complains about missing OpenImageIO, it means the provided arnold version doesn't provide the function for reading a full texture in one call. Provide additional flags to scons
scons [other options] with-oiio=/path/to/oiio

That will add the provided directory's 'include' subdirectory to the header path and 'lib' subdirectory to the library path. You may also be more explicit using

scons [other options] with-oiio-inc=/path/to/oiio/include with-oiio-lib=/path/to/oiio/lib
  • on windows, you may want to adjust the visual studio compiler version using mscver= flag (9.0 by default)
scons [other options] mscver=12.0 

The flags passed to scons command are cached in a file name 'excons.cache' so that you don't need to reset them for subsequent builds. The missing flags will be fetched from the cache and the provided ones will replace the cache content.

Packaging

scons [other options] package=1 (package-type=zip|tgz)
  • The package name will be 'zoic-[version]_[platform].[type]'
  • The package type defaults to zip on windows, tgz otherwise

Install

Set the following environment variables, replacing "$PATH_TO_ZOIC" with the actual path on your machine.

Linux/OSX

export ARNOLD_PLUGIN_PATH=$ARNOLD_PLUGIN_PATH:$PATH_TO_ZOIC/shaders
export MTOA_TEMPLATES_PATH=$MTOA_TEMPLATES_PATH:$PATH_TO_ZOIC/maya/ae
export MAYA_SCRIPT_PATH=$MAYA_SCRIPT_PATH:$PATH_TO_ZOIC/maya/scripts

Windows

set ARNOLD_PLUGIN_PATH=%ARNOLD_PLUGIN_PATH%;$PATH_TO_ZOIC/bin
set MTOA_TEMPLATES_PATH=%MTOA_TEMPLATES_PATH%;$PATH_TO_ZOIC/ae
set MAYA_SCRIPT_PATH=%MAYA_SCRIPT_PATH%;$PATH_TO_ZOIC/maya/scripts

It’s also possible to copy the files into your MtoA install, but I personally prefer the first option. Just copy the files like this:

  • Files in the 'shaders' folder go to [$MTOA_LOCATION]/shaders
  • Files in the 'maya/ae' folder go to [$MTOA_LOCATION]/scripts/mtoa/ui/ae

Credits

Special thanks to Marc-Antoine Desjardins for the help with the image sampling. I owe this guy quite a few beers by now.

Special thanks to Benedikt Bitterli for the information on optical vignetting.

Special thanks to Tom Minor for the major help with C++ (it was needed!)

Special thanks to Brian Scherbinski for the windows compile.

Special thanks to Gaetan Guidet for the C++ cleanup and improvements.

zoic's People

Contributors

bscherbi avatar gatgui avatar zpelgrims avatar

Watchers

 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.