Skip to content

Commit 97754ec

Browse files
committed
Merge branch 'meshSplit' into RB-10.4
2 parents 44e4dd5 + 0195899 commit 97754ec

File tree

73 files changed

+2255
-962
lines changed

Some content is hidden

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

73 files changed

+2255
-962
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,6 @@ jobs:
154154
echo CORTEX_DEPENDENCIES_HASH=`python config/installDependencies.py --archiveURL ${{ matrix.dependenciesURL }} --dependenciesDir ${{ env.CORTEX_BUILD_NAME }} --outputFormat "{archiveDigest}"` >> $GITHUB_ENV
155155
shell: bash
156156

157-
- name: Install 3Delight
158-
run: |
159-
python ./.github/workflows/main/installDelight.py
160-
echo DELIGHT=$GITHUB_WORKSPACE/3delight >> $GITHUB_ENV
161-
shell: bash
162-
163157
- name: Cache
164158
uses: actions/cache@v3
165159
with:

.github/workflows/main/installDelight.py

Lines changed: 0 additions & 90 deletions
This file was deleted.

.github/workflows/main/options.posix

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ build = "./" + os.environ.get( "CORTEX_BUILD_NAME" )
99

1010
INSTALL_PREFIX = build
1111
INSTALL_DOC_DIR = build + "/doc"
12-
INSTALL_RMANPROCEDURAL_NAME = build + "/build/renderMan/procedurals/iePython"
13-
INSTALL_RMANDISPLAY_NAME = build + "/renderMan/displayDrivers/ieDisplay"
1412
INSTALL_PYTHON_DIR = build + "/python"
1513
INSTALL_IECORE_OPS = ""
1614

@@ -64,7 +62,6 @@ USD_LIB_PREFIX = "usd_"
6462
# Renderers
6563
# =========
6664

67-
RMAN_ROOT = os.environ["DELIGHT"]
6865
APPLESEED_ROOT = deps + "/appleseed"
6966
APPLESEED_INCLUDE_PATH = deps + "/appleseed/include"
7067
APPLESEED_LIB_PATH = deps + "/appleseed/lib"

.github/workflows/main/options.windows

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ build = os.environ.get( "CORTEX_BUILD_NAME" )
88

99
INSTALL_PREFIX = build
1010
INSTALL_DOC_DIR = build + "\\doc"
11-
INSTALL_RMANPROCEDURAL_NAME = build + "\\build\\renderMan\\procedurals\\iePython"
12-
INSTALL_RMANDISPLAY_NAME = build + "\\renderMan\\displayDrivers\\ieDisplay"
1311
INSTALL_PYTHON_DIR = build + "\\python"
1412
INSTALL_IECORE_OPS = ""
1513

@@ -52,8 +50,6 @@ DOXYGEN = deps + "\\doxygen\\doxygen.exe"
5250
# Renderers
5351
# =========
5452

55-
RMAN_ROOT = os.environ["DELIGHT"]
56-
5753
APPLESEED_ROOT = deps + "\\appleseed"
5854
APPLESEED_INCLUDE_PATH = deps + "\\appleseed\\include"
5955
APPLESEED_LIB_PATH = deps + "\\appleseed\\lib"

SConstruct

Lines changed: 6 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -339,14 +339,6 @@ o.Add(
339339
"",
340340
)
341341

342-
# Renderman options
343-
344-
o.Add(
345-
"RMAN_ROOT",
346-
"The directory in which your RenderMan renderer is installed.",
347-
"",
348-
)
349-
350342
# Nuke options
351343

352344
o.Add(
@@ -711,12 +703,6 @@ o.Add(
711703
"$INSTALL_PREFIX/glsl",
712704
)
713705

714-
o.Add(
715-
"INSTALL_RMANDISPLAY_NAME",
716-
"The name under which to install the renderman displays.",
717-
"$INSTALL_PREFIX/rmanDisplays/$IECORE_NAME",
718-
)
719-
720706
o.Add(
721707
"INSTALL_MEL_DIR",
722708
"The directory in which to install mel scripts.",
@@ -1123,10 +1109,13 @@ if env["PLATFORM"] != "win32" :
11231109

11241110
elif env["PLATFORM"]=="posix" :
11251111
if "g++" in os.path.basename( env["CXX"] ) and not "clang++" in os.path.basename( env["CXX"] ) :
1126-
gccVersion = subprocess.check_output( [ env["CXX"], "-dumpversion" ], env=env["ENV"], universal_newlines=True )
1127-
gccVersion = gccVersion.strip()
1112+
gccVersion = subprocess.check_output( [ env["CXX"], "-dumpversion" ], env=env["ENV"], universal_newlines=True ).strip()
1113+
if "." not in gccVersion :
1114+
# GCC 7 onwards requires `-dumpfullversion` to get minor/patch, but this
1115+
# flag does not exist on earlier GCCs, where minor/patch was provided by `-dumpversion`.
1116+
gccVersion = subprocess.check_output( [ env["CXX"], "-dumpfullversion" ], env=env["ENV"], universal_newlines=True ).strip()
11281117
gccVersion = [ int( v ) for v in gccVersion.split( "." ) ]
1129-
if gccVersion >= [ 5, 1 ] :
1118+
if gccVersion >= [ 5, 1 ] and gccVersion < [ 11, 2 ] :
11301119
env.Append( CXXFLAGS = [ "-D_GLIBCXX_USE_CXX11_ABI=0" ] )
11311120

11321121
env.Append( CXXFLAGS = [ "-std=$CXXSTD", "-fvisibility=hidden" ] )
@@ -2130,43 +2119,6 @@ if doConfigure :
21302119
NoCache( vdbTest )
21312120
vdbTestEnv.Alias( "testVDB", vdbTest )
21322121

2133-
###########################################################################################
2134-
# Build and install the renderman display driver
2135-
###########################################################################################
2136-
2137-
if doConfigure :
2138-
2139-
riDisplayDriverEnv = env.Clone( IECORE_NAME = "ieDisplay", SHLIBPREFIX="" )
2140-
riDisplayDriverEnv.Append( CXXFLAGS = [ systemIncludeArgument, "$RMAN_ROOT/include" ] )
2141-
2142-
c = configureSharedLibrary( riDisplayDriverEnv )
2143-
if not c.CheckCXXHeader( "ndspy.h" ) :
2144-
2145-
sys.stderr.write( "WARNING : ndspy.h not found - check RMAN_ROOT.\n" )
2146-
c.Finish()
2147-
2148-
else :
2149-
2150-
c.Finish()
2151-
2152-
# we can't append this before configuring, as then it gets built as
2153-
# part of the configure process
2154-
riDisplayDriverEnv.Append(
2155-
LIBS = [
2156-
os.path.basename( coreEnv.subst( "$INSTALL_LIB_NAME" ) ),
2157-
os.path.basename( imageEnv.subst( "$INSTALL_LIB_NAME" ) ),
2158-
]
2159-
)
2160-
2161-
riDisplayDriver = riDisplayDriverEnv.SharedLibrary( "src/rmanDisplays/ieDisplay/" + os.path.basename( riDisplayDriverEnv.subst( "$INSTALL_RMANDISPLAY_NAME" ) ), "src/rmanDisplays/ieDisplay/IEDisplay.cpp" )
2162-
riDisplayDriverInstall = riDisplayDriverEnv.Install( os.path.dirname( riDisplayDriverEnv.subst( "$INSTALL_RMANDISPLAY_NAME" ) ), riDisplayDriver )
2163-
riDisplayDriverEnv.NoCache( riDisplayDriverInstall )
2164-
riDisplayDriverEnv.AddPostAction( riDisplayDriverInstall, lambda target, source, env : makeLibSymLinks( riDisplayDriverEnv, libNameVar="INSTALL_RMANDISPLAY_NAME" ) )
2165-
riDisplayDriverEnv.Alias( "install", riDisplayDriverInstall )
2166-
riDisplayDriverEnv.Alias( "installRI", riDisplayDriverInstall )
2167-
2168-
Default( [ riDisplayDriver ] )
2169-
21702122
###########################################################################################
21712123
# Build, install and test the optional CoreGL library and bindings
21722124
###########################################################################################

config/ie/options

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -252,20 +252,6 @@ if targetApp :
252252
else:
253253
appPrefix = os.path.join( installPrefix, targetApp, targetAppMajorVersion )
254254

255-
# find 3delight. we only build the 3delight stuff if the compiler we're building with is suitable.
256-
dlReg = None
257-
dlVersion = getOption( "DL_VERSION", os.environ.get( "DL_VERSION", None ) )
258-
try :
259-
dlReg = IEEnv.registry["apps"]["3delight"][dlVersion][platform]
260-
if dlReg["compiler"]==compiler :
261-
RMAN_ROOT = dlReg["location"]
262-
os.environ["DELIGHT_CONF"] = "/software/config/3delight"
263-
264-
# Add ribdepends location to path
265-
os.environ["PATH"] = os.path.join( RMAN_ROOT, "bin" ) + ":" + os.environ["PATH"]
266-
except :
267-
pass
268-
269255
appleseedReg = None
270256
appleseedVersion = getOption( "APPLESEED_VERSION", os.environ.get("APPLESEED_VERSION", "") )
271257
try :
@@ -482,8 +468,6 @@ testLibs = [
482468
os.path.join( pythonReg["location"], compiler, compilerVersion, "lib" ),
483469
os.path.join( compilerReg["location"], "lib" ),
484470
]
485-
if dlReg :
486-
testLibs.append( dlReg["location"] + "/lib" )
487471
if appleseedReg :
488472
testLibs.extend( [ APPLESEED_LIB_PATH, OSL_LIB_PATH, OIIO_LIB_PATH ] )
489473
TEST_LIBPATH = ":".join( testLibs )
@@ -500,29 +484,16 @@ if targetApp :
500484
INSTALL_LIB_NAME = os.path.join( appPrefix, "lib", "$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION" )
501485
INSTALL_PYTHONLIB_NAME = os.path.join( appPrefix, "lib", "$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION-python$PYTHON_VERSION" )
502486
INSTALL_PYTHON_DIR = os.path.join( appPrefix, "python" )
503-
INSTALL_RMANLIB_NAME = os.path.join( appPrefix, "lib", "$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION" )
504487
INSTALL_APPLESEEDLIB_NAME = os.path.join( appPrefix, "lib", "$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION" )
505488
INSTALL_ALEMBICLIB_NAME = os.path.join( appPrefix, "lib", "$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION" )
506489
INSTALL_USDLIB_NAME = os.path.join( appPrefix, "lib", "$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION" )
507-
# we don't want to build the renderman procedurals when we build apps, as otherwise they end
508-
# up causing linking conflicts at rendertime. this is because the procedural would be linking to the
509-
# boost version an app needs, whereas the other libraries are linking to the correct boost version for
510-
# 3delight, so we just install the procedurals into a temp directory where they can't do any harm.
511-
INSTALL_RMANPROCEDURAL_NAME = os.path.join( "tmp", os.environ['USER'], "unwantedRManProcedurals/$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION" )
512-
INSTALL_RMANDISPLAY_NAME = os.path.join( "tmp", os.environ['USER'], "unwantedRManDisplays/$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION" )
513490
INSTALL_APPLESEEDOUTPUTDRIVER_NAME = os.path.join( "tmp", os.environ['USER'], "unwantedAppleseedDrivers/$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION" )
514491
else :
515492
INSTALL_HEADER_DIR = os.path.join( basePrefix, "include" )
516493
INSTALL_USD_RESOURCE_DIR = os.path.join( basePrefix, "resource" )
517494
INSTALL_LIB_NAME = os.path.join( basePrefix, "lib", compiler, compilerVersion, "$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION" )
518495
INSTALL_PYTHONLIB_NAME = os.path.join( basePrefix, "lib", compiler, compilerVersion, "$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION-python$PYTHON_VERSION" )
519496
INSTALL_PYTHON_DIR = os.path.join( basePrefix, "python", pythonVersion, compiler, compilerVersion )
520-
# We use basePrefix for IECoreRI, but dlPrefix for the renderman procedurals. See the note in
521-
# the dlReg section for an explanation.
522-
INSTALL_RMANLIB_NAME = os.path.join( basePrefix, "lib", compiler, compilerVersion, "$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION" )
523-
if dlVersion:
524-
INSTALL_RMANPROCEDURAL_NAME = os.path.join( basePrefix, "3delight", dlVersion, "procedurals", "python", "$PYTHON_VERSION", compiler, compilerVersion, "$IECORE_NAME" )
525-
INSTALL_RMANDISPLAY_NAME = os.path.join( basePrefix, "3delight", dlVersion, "displayDrivers", compiler, compilerVersion, "$IECORE_NAME" )
526497
INSTALL_APPLESEEDLIB_NAME = os.path.join( basePrefix, "appleseed", appleseedVersion, "lib", compiler, compilerVersion, "$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION" )
527498
INSTALL_APPLESEEDOUTPUTDRIVER_NAME = os.path.join( basePrefix, "appleseed", appleseedVersion, "plugins", compiler, compilerVersion, "$IECORE_NAME" )
528499
INSTALL_ALEMBICLIB_NAME = os.path.join( basePrefix, "lib", compiler, compilerVersion, "$IECORE_NAME-$IECORE_COMPATIBILITY_VERSION" )

config/installDependencies.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@
113113
os.path.join( "lib", "IECore*" ),
114114
os.path.join( "python", "IECore*" ),
115115
os.path.join( "resources", "IECore*" ),
116-
"renderMan",
117116
"procedurals",
118117
] :
119118
for f in glob.glob( os.path.join( args.dependenciesDir, pattern ) ) :

contrib/IECoreUSD/src/IECoreUSD/SceneCacheData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ void SceneCacheData::loadSceneIntoCache( ConstSceneInterfacePtr scene )
294294
spec.fields.push_back( FieldValuePair( SdfFieldKeys->TimeCodesPerSecond, m_fps ) );
295295

296296
// figure out start and end frame based on timeSamples in header
297-
float minTime = Imath::limits<float>::max();
297+
float minTime = std::numeric_limits<float>::max();
298298
float maxTime = 0;
299299
bool validTimeSampleRange = false;
300300
if ( auto sampleTimesDir = m_sceneio->subdirectory( g_sampleTimes, IndexedIO::MissingBehaviour::NullIfMissing ) )

include/IECore/BoundedKDTree.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ template<class BoundIterator>
135135
unsigned char BoundedKDTree<BoundIterator>::majorAxis( PermutationConstIterator permFirst, PermutationConstIterator permLast )
136136
{
137137
BaseType min, max;
138-
vecSetAll( min, Imath::limits<typename BaseType::BaseType>::max() );
139-
vecSetAll( max, Imath::limits<typename BaseType::BaseType>::min() );
138+
vecSetAll( min, std::numeric_limits<typename BaseType::BaseType>::max() );
139+
vecSetAll( max, std::numeric_limits<typename BaseType::BaseType>::lowest() );
140140

141141
for( PermutationConstIterator it=permFirst; it!=permLast; it++ )
142142
{

include/IECore/ByteOrder.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
#ifndef IE_CORE_BYTEORDER_H
3636
#define IE_CORE_BYTEORDER_H
3737

38-
#include "OpenEXR/ImfInt64.h"
39-
4038
#include "boost/static_assert.hpp"
4139

4240
#include <stdint.h>
@@ -138,7 +136,7 @@ inline float reverseBytes<float>( const float &x )
138136
}
139137

140138
template<>
141-
inline Imf::Int64 reverseBytes<Imf::Int64>( const Imf::Int64 &x )
139+
inline uint64_t reverseBytes<uint64_t>( const uint64_t &x )
142140
{
143141
return ((x & 255) << 56) |
144142
(((x >> 8) & 255) << 48) |
@@ -153,13 +151,13 @@ inline Imf::Int64 reverseBytes<Imf::Int64>( const Imf::Int64 &x )
153151
template<>
154152
inline double reverseBytes<double>( const double &x )
155153
{
156-
BOOST_STATIC_ASSERT( sizeof(Imf::Int64) == sizeof(double) );
154+
BOOST_STATIC_ASSERT( sizeof(uint64_t) == sizeof(double) );
157155
union {
158-
Imf::Int64 i;
156+
uint64_t i;
159157
double d;
160158
} xx;
161159
xx.d = x;
162-
xx.i = reverseBytes<Imf::Int64>(xx.i);
160+
xx.i = reverseBytes<uint64_t>(xx.i);
163161
return xx.d;
164162
}
165163

0 commit comments

Comments
 (0)