Skip to content

Commit 05e7b4a

Browse files
Merge pull request AcademySoftwareFoundation#137 from materialx/dev_1.36
Merge branch 'dev_1.36' into master
2 parents d16eff0 + 9b13158 commit 05e7b4a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+9412
-5329
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Change Log
22

3+
## [1.36.0] - 2018-07-23
4+
5+
Updated the MaterialX library to the v1.36 specification.
6+
7+
### Added
8+
- Added support for Element namespaces.
9+
- Added support for NodeDef inheritance.
10+
- Added support for root-level node elements.
11+
- Added support for inheritance attributes on MaterialX\:\:Material and MaterialX\:\:Look.
12+
- Added support for include and exclude attributes on MaterialX\:\:Collection.
13+
- Added the MaterialX\:\:Token class for string substitutions.
14+
- Added the MaterialX\:\:Variant, MaterialX\:\:VariantSet, and MaterialX\:\:VariantAssign classes.
15+
- Added the MaterialX\:\:GeomPath class for geometry name comparisons.
16+
- Added the Collection\:\:matchesGeomString method, for testing matches between collections and geometries.
17+
- Added the Material\:\:getGeometryBindings method, for finding the bindings of a material to specific geometries.
18+
19+
### Removed
20+
- Removed the MaterialX\:\:MaterialInherit and MaterialX\:\:LookInherit classes.
21+
- Removed the MaterialX\:\:CollectionAdd and MaterialX\:\:CollectionRemove classes.
22+
- Removed the MaterialX\:\:Override class and support for public names.
23+
- Removed the 'channels' attribute from MaterialX\:\:InterfaceElement.
24+
- Removed the Material::getReferencingMaterialAssigns method (deprecated in Python).
25+
326
## [1.35.5] - 2018-05-07
427

528
### Added

CMakeLists.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(MaterialX)
22
set(MATERIALX_MAJOR_VERSION 1)
3-
set(MATERIALX_MINOR_VERSION 35)
4-
set(MATERIALX_BUILD_VERSION 5)
3+
set(MATERIALX_MINOR_VERSION 36)
4+
set(MATERIALX_BUILD_VERSION 0)
55
set(MATERIALX_LIBRARY_VERSION ${MATERIALX_MAJOR_VERSION}.${MATERIALX_MINOR_VERSION}.${MATERIALX_BUILD_VERSION})
66

77
cmake_minimum_required(VERSION 3.1)
@@ -68,12 +68,9 @@ endif()
6868
add_subdirectory(source/MaterialXCore)
6969
add_subdirectory(source/MaterialXFormat)
7070
add_subdirectory(source/MaterialXTest)
71+
add_subdirectory(documents)
7172

7273
if(MATERIALX_BUILD_PYTHON)
7374
add_subdirectory(source/PyMaterialX)
7475
add_subdirectory(python)
7576
endif(MATERIALX_BUILD_PYTHON)
76-
77-
if(MATERIALX_BUILD_DOCS)
78-
add_subdirectory(documents)
79-
endif(MATERIALX_BUILD_DOCS)

documents/CMakeLists.txt

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
1-
set(DOXYGEN_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
2-
set(DOXYGEN_HTML_OUTPUT_DIR ${DOXYGEN_OUTPUT_DIR}/MaterialXDocs)
3-
set(DOXYGEN_INPUT_LIST ${CMAKE_SOURCE_DIR}/documents/DeveloperGuide
4-
${CMAKE_SOURCE_DIR}/source/MaterialXCore
5-
${CMAKE_SOURCE_DIR}/source/MaterialXFormat)
6-
string (REPLACE ";" " " DOXYGEN_INPUT_STR "${DOXYGEN_INPUT_LIST}")
1+
install(DIRECTORY ${CMAKE_SOURCE_DIR}/documents/Libraries/
2+
DESTINATION "${CMAKE_INSTALL_PREFIX}/documents/Libraries")
73

8-
find_package(Doxygen)
4+
if(MATERIALX_BUILD_DOCS)
5+
set(DOXYGEN_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
6+
set(DOXYGEN_HTML_OUTPUT_DIR ${DOXYGEN_OUTPUT_DIR}/MaterialXDocs)
7+
set(DOXYGEN_INPUT_LIST ${CMAKE_SOURCE_DIR}/documents/DeveloperGuide
8+
${CMAKE_SOURCE_DIR}/source/MaterialXCore
9+
${CMAKE_SOURCE_DIR}/source/MaterialXFormat)
10+
string (REPLACE ";" " " DOXYGEN_INPUT_STR "${DOXYGEN_INPUT_LIST}")
911

10-
if(DOXYGEN_FOUND)
11-
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
12-
add_custom_target(MaterialXDocs ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
13-
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
14-
COMMENT "Generating HTML documentation: ${DOXYGEN_HTML_OUTPUT_DIR}/index.html")
15-
add_custom_command(TARGET MaterialXDocs PRE_BUILD
16-
COMMAND ${CMAKE_COMMAND} -E copy_directory
17-
${CMAKE_SOURCE_DIR}/documents/Images ${CMAKE_CURRENT_BINARY_DIR})
18-
install(DIRECTORY ${DOXYGEN_HTML_OUTPUT_DIR}
19-
DESTINATION "${CMAKE_INSTALL_PREFIX}/documents")
20-
endif(DOXYGEN_FOUND)
12+
find_package(Doxygen)
13+
14+
if(DOXYGEN_FOUND)
15+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
16+
add_custom_target(MaterialXDocs ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
17+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
18+
COMMENT "Generating HTML documentation: ${DOXYGEN_HTML_OUTPUT_DIR}/index.html")
19+
add_custom_command(TARGET MaterialXDocs PRE_BUILD
20+
COMMAND ${CMAKE_COMMAND} -E copy_directory
21+
${CMAKE_SOURCE_DIR}/documents/Images ${CMAKE_CURRENT_BINARY_DIR})
22+
install(DIRECTORY ${DOXYGEN_HTML_OUTPUT_DIR}
23+
DESTINATION "${CMAKE_INSTALL_PREFIX}/documents")
24+
endif(DOXYGEN_FOUND)
25+
endif(MATERIALX_BUILD_DOCS)

documents/Examples/BxDF/Disney_BRDF_2012.mtlx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<materialx version="1.35" cms="ocio" colorspace="lin_rec709">
3-
<nodedef name="nd_d2012" type="surfaceshader" node="Disney_BRDF_2012">
2+
<materialx version="1.36" cms="ocio" colorspace="lin_rec709">
3+
<nodedef name="ND_DisneyBRDF2012_surface" type="surfaceshader" node="Disney_BRDF_2012">
44
<input name="baseColor" type="color3" value="0.16, 0.16, 0.16"/>
55
<input name="metallic" type="float" value="0"/>
66
<input name="subsurface" type="float" value="0"/>
@@ -13,5 +13,6 @@
1313
<input name="clearcoat" type="float" value="0"/>
1414
<input name="clearcoatGloss" type="float" value="1"/>
1515
</nodedef>
16-
<implementation name="im_d2012" nodedef="nd_d2012" target="BRDF_Explorer" language="glsl" file="https://github.com/wdas/brdf/blob/master/src/brdfs/disney.brdf"/>
16+
<implementation name="IM_DisneyBRDF2012_surface_brdfExplorer" nodedef="ND_DisneyBRDF2012_surface"
17+
target="BRDF_Explorer" language="glsl" file="https://github.com/wdas/brdf/blob/master/src/brdfs/disney.brdf"/>
1718
</materialx>

documents/Examples/BxDF/Disney_BSDF_2015.mtlx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<materialx version="1.35" cms="ocio" colorspace="lin_rec709">
3-
<nodedef name="nd_d2015" type="surfaceshader" node="Disney_BSDF_2015">
2+
<materialx version="1.36" cms="ocio" colorspace="lin_rec709">
3+
<nodedef name="ND_DisneyBSDF2015_surface" type="surfaceshader" node="Disney_BSDF_2015">
44
<input name="baseColor" type="color3" value="0.16, 0.16, 0.16"/>
55
<input name="metallic" type="float" value="0"/>
66
<input name="roughness" type="float" value="0.5"/>
@@ -15,9 +15,10 @@
1515
<input name="scatterDistance" type="vector3" value="0, 0, 0"/>
1616
<input name="flatness" type="float" value="0"/>
1717
<input name="diffTrans" type="float" value="0"/>
18-
<parameter name="thin" type="bool" value="false"/>
18+
<parameter name="thin" type="boolean" value="false"/>
1919
</nodedef>
20-
<implementation name="im_d2015" nodedef="nd_d2015" target="pbrt" language="c++" file="https://github.com/mmp/pbrt-v3/blob/master/src/materials/disney.cpp" function="DisneyMaterial::DisneyMaterial">
20+
<implementation name="IM_DisneyBSDF2015_surface_pbrt" nodedef="ND_DisneyBSDF2015_surface" target="pbrt" language="cpp"
21+
file="https://github.com/mmp/pbrt-v3/blob/master/src/materials/disney.cpp" function="DisneyMaterial::DisneyMaterial">
2122
<input name="baseColor" type="color3" implname="color"/>
2223
<input name="ior" type="float" implname="eta"/>
2324
</implementation>

0 commit comments

Comments
 (0)