-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging sirpalee/dev to master branch (#974)
- Add a new ArnoldNodeGraph schema. - Add a USD imaging adapter for the ArnoldNodeGraph schema. - Refactor HdArnoldMaterial and HdArnoldMaterialTracker to work with arbitrary terminals. - Add MaterialX support (disabled by default). Fixes #964 Fixes #584
- Loading branch information
Showing
45 changed files
with
2,063 additions
and
572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
# | ||
# Copyright 2018 Pixar | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "Apache License") | ||
# with the following modification; you may not use this file except in | ||
# compliance with the Apache License and the following modification to it: | ||
# Section 6. Trademarks. is deleted and replaced with: | ||
# | ||
# 6. Trademarks. This License does not grant permission to use the trade | ||
# names, trademarks, service marks, or product names of the Licensor | ||
# and its affiliates, except as required to comply with Section 4(c) of | ||
# the License and to reproduce the content of the NOTICE file. | ||
# | ||
# You may obtain a copy of the Apache License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the Apache License with the above modification is | ||
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the Apache License for the specific | ||
# language governing permissions and limitations under the Apache License. | ||
# | ||
# - Find MaterialX Development Kit | ||
# | ||
# Finds an installed MaterialX Development Kit | ||
# | ||
# Variables that will be defined: | ||
# MATERIALX_FOUND Defined if MaterialX has been detected | ||
# MATERIALX_BASE_DIR Path to the root of the MaterialX installation | ||
# MATERIALX_INCLUDE_DIRS Path to the MaterialX include directories | ||
# MATERIALX_LIB_DIRS Path to the MaterialX library directories | ||
# MATERIALX_STDLIB_DIR Path to the MaterialX standard library directory | ||
# MATERIALX_LIBRARIES List of MaterialX libraries | ||
|
||
# | ||
# In: | ||
# MATERIALX_ROOT Path to the root of the MaterialX installation | ||
# MATERIALX_DATA_ROOT Path where MaterialX data files (libraries and | ||
# resources) are installed, if different from | ||
# MATERIALX_ROOT | ||
# | ||
# Out: | ||
# MATERIALX_FOUND | ||
# MATERIALX_INCLUDE_DIRS | ||
# MATERIALX_LIB_DIRS | ||
# MATERIALX_LIBRARIES | ||
|
||
find_path(MATERIALX_BASE_DIR | ||
NAMES | ||
include/MaterialXCore/Library.h | ||
HINTS | ||
"${MATERIALX_ROOT}" | ||
"$ENV{MATERIALX_ROOT}" | ||
) | ||
|
||
find_path(MATERIALX_INCLUDE_DIRS | ||
MaterialXCore/Library.h | ||
HINTS | ||
"${MATERIALX_ROOT}" | ||
"$ENV{MATERIALX_ROOT}" | ||
"${MATERIALX_BASE_DIR}" | ||
PATH_SUFFIXES | ||
include | ||
DOC | ||
"MaterialX Header Path" | ||
) | ||
|
||
if (WIN32) | ||
set(MATERIALX_CORE_STATIC_LIB_NAME MaterialXCore.lib) | ||
set(MATERIALX_CORE_DYNAMIC_LIB_NAME MaterialXCore.dll) | ||
else() | ||
set(MATERIALX_CORE_STATIC_LIB_NAME libMaterialXCore.a) | ||
if (APPLE) | ||
set(MATERIALX_CORE_DYNAMIC_LIB_NAME libMaterialXCore.dylib) | ||
else() | ||
set(MATERIALX_CORE_DYNAMIC_LIB_NAME libMaterialXCore.so) | ||
endif() | ||
endif() | ||
|
||
find_path(MATERIALX_LIB_DIRS | ||
"${MATERIALX_CORE_STATIC_LIB_NAME}" | ||
"${MATERIALX_CORE_DYNAMIC_LIB_NAME}" | ||
HINTS | ||
"${MATERIALX_ROOT}" | ||
"$ENV{MATERIALX_ROOT}" | ||
"${MATERIALX_BASE_DIR}" | ||
"${MATERIALX_LIB_DIR}" | ||
"$ENV{MATERIALX_LIB_DIR}" | ||
PATH_SUFFIXES | ||
lib | ||
DOC | ||
"MaterialX Library Path" | ||
) | ||
|
||
foreach(MATERIALX_LIB | ||
Core | ||
Format | ||
GenGlsl | ||
GenOsl | ||
GenShader | ||
Render | ||
RenderGlsl | ||
RenderHw | ||
RenderOsl | ||
) | ||
find_library(MATERIALX_${MATERIALX_LIB}_LIBRARY | ||
MaterialX${MATERIALX_LIB} | ||
HINTS | ||
"${MATERIALX_LIB_DIRS}" | ||
DOC | ||
"MaterialX's ${MATERIALX_LIB} library path" | ||
NO_CMAKE_SYSTEM_PATH | ||
) | ||
|
||
if (MATERIALX_${MATERIALX_LIB}_LIBRARY) | ||
list(APPEND MATERIALX_LIBRARIES ${MATERIALX_${MATERIALX_LIB}_LIBRARY}) | ||
endif () | ||
endforeach() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(MaterialX | ||
REQUIRED_VARS | ||
MATERIALX_BASE_DIR | ||
MATERIALX_INCLUDE_DIRS | ||
MATERIALX_LIB_DIRS | ||
MATERIALX_LIBRARIES | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
set(SRC | ||
main.cpp) | ||
main.cpp) | ||
|
||
add_executable(arnold_to_usd ${SRC}) | ||
target_link_libraries(arnold_to_usd PRIVATE translator) | ||
target_include_directories(arnold_to_usd PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../translator/writer") | ||
|
||
install(TARGETS arnold_to_usd | ||
DESTINATION "${PREFIX_BIN}") | ||
DESTINATION "${PREFIX_BIN}") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.