Skip to content

Commit

Permalink
Merge pull request #5418 from johnhaddon/dependenciesUpdate
Browse files Browse the repository at this point in the history
1.3.1.0 release prep
  • Loading branch information
johnhaddon authored Aug 9, 2023
2 parents 526d18b + 3270d88 commit b951b75
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main/installDependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

# Determine default archive URL.

defaultURL = "https://github.com/GafferHQ/dependencies/releases/download/7.0.0/gafferDependencies-7.0.0-{platform}.{extension}".format(
defaultURL = "https://github.com/ImageEngine/cortex/releases/download/10.5.1.0/cortex-10.5.1.0-{platform}-python3.{extension}".format(
platform = { "darwin" : "osx", "win32" : "windows" }.get( sys.platform, "linux" ),
extension = "tar.gz" if sys.platform != "win32" else "zip"
)
Expand Down
11 changes: 9 additions & 2 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
1.3.x.x (relative to 1.3.0.0)
1.3.1.0 (relative to 1.3.0.0)
=======

Features
--------

- USDShader : Added a node for loading shaders from USD's `SdrRegistry`. This includes shaders such as `UsdPreviewSurface` and `UsdUVTexture`, which are now available in the `USD/Shader` section of the node menu.
- USDLight : Added a node for defining UsdLux lights. This is available from the `USD/Light` section of the node menu.
- SceneReader, SceneWriter : Added limited support for reading and writing Usd Volume prims.

Improvements
------------

- LightEditor : Added section displaying UsdLux shadow parameters.
- Cycles : Added support for UsdLux lights.
- LightTool : Added support for editing animated plugs.
- Median/Erode/Dilate : Dramatic speedup of these nodes for wide filters. Measured improvements of 100X faster for Erode/Dilate, and 10X faster for Median.
- Median, Erode, Dilate : Improved performance significantly for wide filters. Measured improvements of 100x faster for Erode/Dilate, and 10x faster for Median.

Fixes
-----

- SceneWriter : Fixed writing of UsdLux lights.
- Viewer : Fixed visualisation of shaping cones for UsdLux lights, which were previously drawn at half the correct angle.
- DisplayTransform : Fixed missing `view` presets when `display` is at the default value (#5392).
- Arnold
Expand All @@ -43,6 +45,11 @@ API
- OptionalValuePlug : Added a new plug type that pairs an `enabled` BoolPlug with a `value` ValuePlug.
- Shader : Added support for using OptionalValuePlug to represent optional parameters.

Build
-----

- Cortex : Updated to version 10.5.1.0.

1.3.0.0 (relative to 1.2.10.0)
=======

Expand Down
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if codecs.lookup( locale.getpreferredencoding() ).name != "utf-8" :

gafferMilestoneVersion = 1 # for announcing major milestones - may contain all of the below
gafferMajorVersion = 3 # backwards-incompatible changes
gafferMinorVersion = 0 # new backwards-compatible features
gafferMinorVersion = 1 # new backwards-compatible features
gafferPatchVersion = 0 # bug fixes
gafferVersionSuffix = "" # used for alpha/beta releases : "a1", "b2", etc.

Expand Down
4 changes: 4 additions & 0 deletions python/GafferSceneTest/SceneReaderTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,9 +617,13 @@ def testExplicitUSDDefaultLights( self ) :

light1 = GafferSceneTest.TestLight()
light1["name"].setValue( "light1" )
light1["lightShaderName"].setValue( "SphereLight" ) # USDScene requires valid USD light type
light1["parameters"]["intensity"] = Gaffer.FloatPlug( defaultValue = 1 ) # USD expects float, not colour
light1["defaultLight"].setValue( False )

light2 = GafferSceneTest.TestLight()
light2["lightShaderName"].setValue( "SphereLight" )
light2["parameters"]["intensity"] = Gaffer.FloatPlug( defaultValue = 1 )
light2["name"].setValue( "light2" )

group = GafferScene.Group()
Expand Down
3 changes: 2 additions & 1 deletion src/GafferSceneTest/TestLight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ GAFFER_NODE_DEFINE_TYPE( TestLight )
TestLight::TestLight( const std::string &name )
: Light( name )
{
addChild( new StringPlug( "lightShaderName", Plug::In, "testLight" ) );
parametersPlug()->addChild( new Color3fPlug( "intensity" ) );
parametersPlug()->addChild( new FloatPlug( "exposure" ) );
parametersPlug()->addChild( new BoolPlug( "__areaLight" ) );
Expand All @@ -68,7 +69,7 @@ void TestLight::hashLight( const Gaffer::Context *context, IECore::MurmurHash &h

IECoreScene::ConstShaderNetworkPtr TestLight::computeLight( const Gaffer::Context *context ) const
{
IECoreScene::ShaderPtr shader = new IECoreScene::Shader( "testLight", "light" );
IECoreScene::ShaderPtr shader = new IECoreScene::Shader( getChild<StringPlug>( "lightShaderName" )->getValue(), "light" );

for( const auto &c : ValuePlug::Range( *parametersPlug() ) )
{
Expand Down

0 comments on commit b951b75

Please sign in to comment.