Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Lanz committed Mar 14, 2023
0 parents commit 9b629e0
Show file tree
Hide file tree
Showing 68 changed files with 4,101 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# Ignore Eclipse/IDE files
*.pydevproject
*.project
*.cproject
*.settings

# Ignore vim tmp files
.*.swp


# Ignore Gedit tmp files
*~

# ignore build/install/build_env dirs
build
building/docker
build_env
install
release
html
latex
Doxyfile

# CMake temp files
CMakeCache.txt
CMakeFiles
Testing

# SCons symlinks
bamboo_tools
SConstruct
site_scons
boot

#src_project related files
.src_project*
.config.xml
.metadata_src_project
72 changes: 72 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[submodule "arras/distributed/minicoord"]
path = arras/distributed/minicoord
url = ../minicoord
branch = release
[submodule "arras/arras4_core"]
path = arras/arras4_core
url = ../arras4_core
branch = release
[submodule "moonray/scene_rdl2"]
path = moonray/scene_rdl2
url = ../scene_rdl2
branch = release
[submodule "moonray/mcrt_denoise"]
path = moonray/mcrt_denoise
url = ../mcrt_denoise
branch = release
[submodule "moonray/moonray"]
path = moonray/moonray
url = ../moonray
branch = release
[submodule "moonray/moonshine"]
path = moonray/moonshine
url = ../moonshine
branch = release
[submodule "moonray/moonshine_usd"]
path = moonray/moonshine_usd
url = ../moonshine_usd
branch = release
[submodule "moonray/moonray_arras/mcrt_dataio"]
path = moonray/moonray_arras/mcrt_dataio
url = ../mcrt_dataio
branch = release
[submodule "moonray/moonray_arras/mcrt_computation"]
path = moonray/moonray_arras/mcrt_computation
url = ../mcrt_computation
branch = release
[submodule "moonray/moonray_arras/mcrt_messages"]
path = moonray/moonray_arras/mcrt_messages
url = ../mcrt_messages
branch = release
[submodule "moonray/moonray_gui"]
path = moonray/moonray_gui
url = ../moonray_gui
branch = release
[submodule "moonray/hydra/hdMoonray"]
path = moonray/hydra/hdMoonray
url = ../hdMoonray
branch = release
[submodule "arras/arras_render"]
path = arras/arras_render
url = ../arras_render
branch = release
[submodule "arras/distributed/arras4_node"]
path = arras/distributed/arras4_node
url = ../arras4_node
branch = release
[submodule "cmake_modules"]
path = cmake_modules
url = ../cmake_modules
branch = release
[submodule "moonray/hydra/moonray_sdr_plugins"]
path = moonray/hydra/moonray_sdr_plugins
url = ../moonray_sdr_plugins
branch = release
[submodule "moonray/moonray_dcc_plugins"]
path = moonray/moonray_dcc_plugins
url = ../moonray_dcc_plugins
branch = release
[submodule "moonray/render_profile_viewer"]
path = moonray/render_profile_viewer
url = ../render_profile_viewer.git
branch = release
56 changes: 56 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Copyright 2023 DreamWorks Animation LLC
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required (VERSION 3.23.1)

project(openmoonray)

list(APPEND CMAKE_MESSAGE_CONTEXT ${PROJECT_NAME})
if(NOT DEFINED CMAKE_INSTALL_PREFIX OR ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr/local")
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/release)
endif()
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/cmake)

# Make sure Cuda's bin directory is in ${PATH} so that check_language can find it.
set(ENV{PATH} "${CUDAToolkit_ROOT}/bin:$ENV{PATH}")

include(CheckLanguage)
check_language(CUDA)
if(CMAKE_CUDA_COMPILER)
enable_language(CUDA)
else()
message(STATUS "No CUDA support")
endif()

include(CTest)
include(GNUInstallDirs)

option(BUILD_QT_APPS "Whether or not to build apps that require Qt" YES)
option(MOONRAY_USE_CUDA "Whether to use CUDA (and Optix) - Enables XPU mode and Optix denoising" YES)

# if OPT_LEVEL is set use its value to override the CMAKE_BUILD_TYPE because the
# rez cmake plugin does not have an easy way to set the build_target.
set(opt_level $ENV{OPT_LEVEL})
if(opt_level STREQUAL opt-debug)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
elseif(opt_level STREQUAL debug)
set(CMAKE_BUILD_TYPE Debug)
elseif(opt_level STREQUAL opt)
set(CMAKE_BUILD_TYPE Release)
endif()

# default to Release if no build type specified
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

add_subdirectory(arras)
add_subdirectory(moonray)
add_subdirectory(scripts)

if(GLD STREQUAL "$ENV{STUDIO}")
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/SDKScript
DESTINATION
.)
endif()
150 changes: 150 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
{
"version": 4,
"configurePresets": [
{
"name": "dwa-environment",
"hidden": true,
"environment": {
"CPPUNIT_ROOT" : "/rel/rez/dwa/cppunit/1.15.1.x.1.0.0.0/os-CentOS-7/cpp_std-17",
"ISPC" : "/rel/third_party/intelispc/1.14.1/bin/ispc",
"JPEG_ROOT" : "/rel/rez/dwa/libjpeg_turbo/1.5.3.x.2.0.1.0/os-CentOS-7/cpp_std-17",
"CUDA_ROOT" : "/rel/rez/dwa/cuda/11.3.0.x.1.0.0.1",
"JSONCPP_ROOT" : "/rel/rez/third_party/jsoncpp/0.6.0.2",
"LIBCURL_ROOT" : "/rel/rez/third_party/curl_no_ldap/7.49.1.2",
"LIBUNWIND_ROOT" : "/rel/rez/third_party/unwind/1.0.x.1.0.0.0",
"LOG4CPLUS_ROOT" : "/rel/rez/dwa/log4cplus/1.1.2.x.2.0.0.2/os-CentOS-7/cpp_std-17",
"LUA_DIR" : "/rel/rez/third_party/lua/5.3.5.x.1.0.0.0",
"MKL_ROOT" : "/rel/rez/third_party/mkl/2020.3.279.x.1.0.0.0",
"OPENSUBDIV_ROOT" : "/rel/rez/dwa/opensubdiv/3.4.3.x.2.0.0.0/os-CentOS-7/cpp_std-17",
"OPENVDB_ROOT" : "/rel/rez/dwa/openvdb/8.2.0.4/os-CentOS-7/opt_level-optdebug/refplat-vfx2021.0/gcc-9.3.x/python-3.7",
"OPTIX_ROOT" : "/rel/rez/third_party/optix/7.3.0.x.1.0.0.0",
"Python_ROOT_DIR" : "/rel/rez/dwa/python/3.7.7.x.1.2.0.1",
"PXR_USD_LOCATION" : "/rel/rez/dwa/usd_core/0.22.5.x.3.0.0.1/opt_level-optdebug/refplat-vfx2021.0/gcc-9.3.x/python-3.7",
"REZ_USD_CORE_ROOT" : "/rel/rez/dwa/usd_core/0.22.5.x.3.0.0.1/opt_level-optdebug/refplat-vfx2021.0/gcc-9.3.x/python-3.7",
"REZ_USD_IMAGING_ROOT" : "/rel/rez/dwa/usd_imaging/0.22.5.x.3.0.0.1/opt_level-optdebug/refplat-vfx2021.0/gcc-9.3.x/python-3.7",
"PXR_INCLUDE_DIRS" : "$env{REZ_USD_CORE_ROOT}/include:$env{REZ_USD_IMAGING_ROOT}/include",
"RANDOM123_ROOT" : "/rel/rez/third_party/random123/1.08.3",
"ZLIB_ROOT" : "/rel/rez/dwa/zlib/1.2.8.x.2.0.0.0/cpp_std-17.0",
"DWA_PREFIX_BOOST" : "/rel/rez/dwa/boost/1.73.0.x.2.1.0.0/cpp_std-17.0/python-3.7.7.x.1/zlib-1.2.8.x.2",
"DWA_PREFIX_CUDA" : "/rel/rez/third_party/cuda/11.3.0.x.1.0.0.1",
"DWA_PREFIX_EMBREE" : "/rel/rez/dwa/embree/3.12.1.x.16.0.0.0/refplat-vfx2021.0/opt_level-optdebug/gcc",
"DWA_PREFIX_OPENCOLORIO" : "/rel/rez/dwa/opencolorio/2.0.2.x.0.0.1.0/cpp_std-17/boost-1.73.0.x.2/python-3.7.7.x.1",
"DWA_PREFIX_OPENEXR" : "/rel/test/CM-17351/openexr/2.5.7.x.0.0.1.9999/os-CentOS-7/cpp_std-17/python-3.7.7.x.1/zlib-1.2.8.x.2/boost-1.73.0.x.2",
"DWA_PREFIX_OPENIMAGEDENOISE" : "/rel/rez/dwa/openimagedenoise/1.4.3.x.1.0.0.0/refplat-vfx2021.0/opt_level-optdebug",
"DWA_PREFIX_OPENIMAGEIO" : "/rel/rez/dwa/openimageio/2.3.20.0.x.0.1.0.1/os-CentOS-7/cpp_std-17.0/boost-1.73.0.x.2/openexr-2.5.7.x.0/python-3.7.7.x/zlib-1.2.8.x.2/qt-5.15.2.x.2/opencolorio-2.0.2.x.0",
"DWA_PREFIX_MICROHTTP" : "/rel/rez/third_party/libmicrohttpd/0.9.37.x.0.0.0.0",
"DWA_PREFIX_QT" : "/rel/rez/dwa/qt/5.12.6.x.2.1.0.0/opt_level-optdebug/gcc-6.3",
"DWA_PREFIX_TBB" : "/rel/rez/dwa/tbb/2020.2.0.x.1.0.0.0/os-CentOS-7/cpp_std-17",
"DWA_PREFIX_PXR" : "$env{REZ_USD_IMAGING_ROOT}"
},
"cacheVariables": {
"CMAKE_PREFIX_PATH": "$env{DWA_PREFIX_PXR};$env{DWA_PREFIX_BOOST};$env{DWA_PREFIX_CUDA};$env{DWA_PREFIX_EMBREE};$env{DWA_PREFIX_OPENEXR};$env{DWA_PREFIX_OPENIMAGEDENOISE};$env{DWA_PREFIX_OPENIMAGEIO};$env{DWA_PREFIX_MICROHTTP};$env{DWA_PREFIX_QT};$env{DWA_PREFIX_TBB};$env{DWA_PREFIX_OPENCOLORIO}",
"MOONRAY_ENABLE_ATHENA_LOGGING": "YES",
"MOONRAY_EXEC_MODE_DEFAULT": "AUTO",
"CUDAToolkit_ROOT": "$env{CUDA_ROOT}"
}
},
{
"name": "container-environment",
"hidden": true,
"environment": {
"DEPS_ROOT" : "/installs",
"BUILD_DIR" : "/build",
"CPPUNIT_ROOT" : "$env{DEPS_ROOT}",
"ISPC" : "$env{DEPS_ROOT}/bin/ispc",
"JSONCPP_ROOT" : "$env{DEPS_ROOT}",
"LIBCURL_ROOT" : "/usr/local",
"LIBUNWIND_ROOT" : "/usr/local",
"LOG4CPLUS_ROOT" : "$env{DEPS_ROOT}",
"LUA_DIR" : "$env{DEPS_ROOT}",
"OPENSUBDIV_ROOT" : "$env{DEPS_ROOT}",
"OPENVDB_ROOT" : "$env{DEPS_ROOT}",
"OPTIX_ROOT" : "$env{DEPS_ROOT}/optix",
"PXR_USD_LOCATION" : "$env{DEPS_ROOT}",
"PXR_INCLUDE_DIRS" : "$env{DEPS_ROOT}/include",
"RANDOM123_ROOT" : "$env{DEPS_ROOT}",
"ZLIB_ROOT" : "/usr/local"
},
"cacheVariables": {
"CMAKE_PREFIX_PATH": "$env{DEPS_ROOT}"
}
},
{
"name": "container-debug",
"displayName": "Container Debug",
"inherits": "container-environment",
"binaryDir": "$env{BUILD_DIR}",
"cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" },
"generator": "Unix Makefiles"
},
{
"name": "container-release",
"displayName": "Container Release",
"inherits": "container-environment",
"binaryDir": "$env{BUILD_DIR}",
"cacheVariables": { "CMAKE_BUILD_TYPE": "Release" },
"generator": "Unix Makefiles"
},
{
"name": "dwa-debug",
"displayName": "DWA Debug",
"inherits": "dwa-environment",
"binaryDir": "${sourceParentDir}/build-debug/${sourceDirName}",
"cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" },
"generator": "Unix Makefiles"
},
{
"name": "dwa-release",
"displayName": "DWA Release",
"inherits": "dwa-environment",
"binaryDir": "${sourceParentDir}/build-release/${sourceDirName}",
"cacheVariables": { "CMAKE_BUILD_TYPE": "Release" },
"generator": "Unix Makefiles"
},
{
"name": "dwa-debug-unit",
"inherits": "dwa-debug",
"cacheVariables": { "SCENERDL2_BUILD_UNITTESTS": "YES" }
},
{
"name": "dwa-relwithdebinfo",
"displayName": "DWA RelWithDebInfo",
"inherits": "dwa-environment",
"binaryDir": "${sourceParentDir}/build-relwithdebinfo/${sourceDirName}",
"cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo" },
"generator": "Unix Makefiles"
},
{
"name": "dwa-release-unit",
"inherits": "dwa-release",
"cacheVariables": { "SCENERDL2_BUILD_UNITTESTS": "YES" }
}
],
"buildPresets": [
{
"name": "container-debug",
"displayName": "Container Debug",
"configurePreset": "container-debug"
},
{
"name": "container-release",
"displayName": "Container Release",
"configurePreset": "container-release"
},
{
"name": "dwa-debug",
"displayName": "DWA Debug",
"configurePreset": "dwa-debug"
},
{
"name": "dwa-relwithdebinfo",
"displayName": "DWA RelWithDebInfo",
"configurePreset": "dwa-relwithdebinfo"
},
{
"name": "dwa-release",
"displayName": "DWA Release",
"configurePreset": "dwa-release"
}
]
}
1 change: 1 addition & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
All participants agree to abide by LF Projects Code of Conduct (as defined in the [charter](tsc/charter.md)) available at https://lfprojects.org/policies/code-of-conduct/

0 comments on commit 9b629e0

Please sign in to comment.