Go to file
David G. Yu 301496bd3b Additional tess control/hull shader perf fixes
This change make the bspline patch tess control/hull shader revert to
control vertex mirroring for boundary edges when the patch sharpness is
zero. This change helps improve some shader codegen optimization and
L1 cache behavior on (at least) Kepler GPUs with recent drivers.
2016-02-05 14:53:13 -08:00
cmake Revert "Add ISPC limit surface evaluation" 2015-07-20 17:13:51 -07:00
documentation Release 3.0.3 2015-10-05 16:27:09 -07:00
examples Re-enabled fractional tessellation in viewers 2015-10-23 15:26:46 -07:00
opensubdiv Additional tess control/hull shader perf fixes 2016-02-05 14:53:13 -08:00
regression add a far performance test 2015-09-16 15:27:26 -07:00
tutorials Added section at the beginning that explains each method, how it works and how 2015-09-17 15:29:00 -07:00
.gitignore Improve stringification of shaders & kernels in build. 2014-01-03 16:59:26 -08:00
.travis.yml fix .travils.yaml to point 15.10 dist 2015-10-23 14:54:40 -07:00
CMakeLists.txt Comment out CMake logic that attempts to copy glfw3 dll's, which fails in some cases. 2016-01-13 11:47:24 -08:00
LICENSE.txt Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
NOTICE.txt Landing 3.0.0.alpha 2014-09-05 15:07:46 -07:00
OpenSubdivCLA_corporate.pdf update documentation & CLA files to reflect Apache 2.0 move 2013-08-01 16:14:23 -07:00
OpenSubdivCLA_individual.pdf update documentation & CLA files to reflect Apache 2.0 move 2013-08-01 16:14:23 -07:00
README.md update README.md 2015-06-19 17:59:46 -07:00

OpenSubdiv

OpenSubdiv is a set of open source libraries that implement high performance subdivision surface (subdiv) evaluation on massively parallel CPU and GPU architectures. This codepath is optimized for drawing deforming subdivs with static topology at interactive framerates. The resulting limit surface matches Pixar's Renderman to numerical precision.

OpenSubdiv is covered by the Apache license, and is free to use for commercial or non-commercial use. This is the same code that Pixar uses internally for animated film production. Our intent is to encourage high performance accurate subdiv drawing by giving away the "good stuff".

Feel free to use it and let us know what you think.

For more details about OpenSubdiv, see Pixar Graphics Technologies.

  • master : Build Status

  • dev : Build Status

Documents

Forum

Prerequisite

For complete information, please refer OpenSubdiv documents: [Building with CMake] (http://graphics.pixar.com/opensubdiv/docs/cmake_build.html)

  • General requirements:
Lib (URL) Min Version Note
CMake
http://www.cmake.org
2.8.6 Required
  • Osd optional requirements:
Lib (URL) Min Version Note
GLEW
http://glew.sourceforge.net
1.9.0 GL backend (Win/Linux only)
CUDA
http://developer.nvidia.com/cuda-toolkit
4.0 cuda backend
TBB
https://www.threadingbuildingblocks.org
4.0 TBB backend
OpenCL
http://www.khronos.org/opencl
1.1 CL backend
DX11 SDK
http://www.microsoft.com/download/details.aspx?id=6812
DX backend
  • Examples/Documents optional requirements:
Lib (URL) Min Version Note
GLFW
http://www.glfw.org
3.0.0 GL examples
Maya SDK
http://www.autodesk.com/maya
2013 maya plugin example
Ptex
https://github.com/wdas/ptex
2.0 ptex viewers
Zlib
http://www.zlib.net
(required for Ptex under windows)
Docutils
http://docutils.sourceforge.net
documents
Doxygen
http://www.doxygen.org
documents

Build example to run glViewer and other example programs with minimal dependency

All platforms:

  • Install cmake, GLFW and GLEW (GLEW is not required on OSX)

make sure GLEW and GLFW install directories configured as follows:

   ${GLEW_LOCATION}/include/GL/glew.h
   ${GLEW_LOCATION}/lib/libGLEW.a (linux)
   ${GLEW_LOCATION}/lib/glew32.lib (windows)

   ${GLFW_LOCATION}/include/glfw3.h
   ${GLFW_LOCATION}/lib/libglfw3.a (linux)
   ${GLFW_LOCATION}/lib/glfw3.lib (windows)
  • Clone OpenSubdiv repository, and create a build directory.
   git clone https://github.com/PixarAnimationStudios/OpenSubdiv
   mkdir build
   cd build

Windows (Visual Studio)

  • run cmake:
"c:/Program Files (x86)/CMake/bin/cmake.exe" ^
    -G "Visual Studio 12 Win64" ^
    -D NO_MAYA=1 -D NO_PTEX=1 -D NO_DOC=1 ^
    -D NO_OMP=1 -D NO_TBB=1 -D NO_CUDA=1 -D NO_OPENCL=1 -D NO_CLEW=1 ^
    -D "GLEW_LOCATION=*YOUR GLEW INSTALL LOCATION*" ^
    -D "GLFW_LOCATION=*YOUR GLFW INSTALL LOCATION*" ^
    ..
  • Open OpenSubdiv.sln in VisualStudio and build.

Linux

cmake -D NO_MAYA=1 -D NO_PTEX=1 -D NO_DOC=1 \
      -D NO_OMP=1 -D NO_TBB=1 -D NO_CUDA=1 -D NO_OPENCL=1 -D NO_CLEW=1 \
      -D GLEW_LOCATION="*YOUR GLEW INSTALL LOCATION*" \
      -D GLFW_LOCATION="*YOUR GLFW INSTALL LOCATION*" \
      ..
make

OSX

cmake -D NO_MAYA=1 -D NO_PTEX=1 -D NO_DOC=1 \
      -D NO_OMP=1 -D NO_TBB=1 -D NO_CUDA=1 -D NO_OPENCL=1 -D NO_CLEW=1 \
      -D GLFW_LOCATION="*YOUR GLFW INSTALL LOCATION*" \
      ..
make

Useful cmake options and environment variables

-DCMAKE_BUILD_TYPE=[Debug|Release]

-DCMAKE_INSTALL_PREFIX=[base path to install OpenSubdiv]
-DCMAKE_LIBDIR_BASE=[library directory basename (default: lib)]

-DCUDA_TOOLKIT_ROOT_DIR=[path to CUDA Toolkit]
-DPTEX_LOCATION=[path to Ptex]
-DGLEW_LOCATION=[path to GLEW]
-DGLFW_LOCATION=[path to GLFW]
-DMAYA_LOCATION=[path to Maya]

-DNO_LIB=1        // disable the opensubdiv libs build (caveat emptor)
-DNO_EXAMPLES=1   // disable examples build
-DNO_TUTORIALS=1  // disable tutorials build
-DNO_REGRESSION=1 // disable regression tests build
-DNO_MAYA=1       // disable Maya plugin build
-DNO_PTEX=1       // disable PTex support
-DNO_DOC=1        // disable documentation build
-DNO_OMP=1        // disable OpenMP
-DNO_TBB=1        // disable TBB
-DNO_CUDA=1       // disable CUDA
-DNO_OPENCL=1     // disable OpenCL
-DNO_OPENGL=1     // disable OpenGL
-DNO_CLEW=1       // disable CLEW wrapper library