A generic, URI based resolver for USD, support custom plugins. This is a fork of https://github.com/LumaPictures/usd-uri-resolver with support for S3 object storage.
- Resolve custom URI based for USD files.
- Provide a generic plugin registry to extend the resolver without modifying its source code.
- Include example resolvers supporting database based files.
- Highly available and scalable asset store
- Versioning support
- Uses only 1 request per fetch for optimal performance (MySQL uses 3 queries initially and 2 on reload)
- Local cache reuse
- MySQLResolver - custom resolver for USD assets in a MySQL database.
- S3Resolver - custom asset resolver for USD assets in an S3 object store.
- usd_sql::SQL - MySQL database access.
- usd_s3::S3 - S3 object store access.
- obfuscate_pass - A simple tool to convert passwords to a z85 encoded string. WARNING !!! This is not for encrypting your password, but to hide it from artists in an environment. It is extremely simple to "decrypt" and offers no protection.
- Create a plugin registry for extending URIResolver.
- Move the SQL accessor to a separate plugin and load it dynamically.
- Windows support.
- Simplify the build process.
You'll need the following libraries to build the project; newer versions most likely work as well, but they are not tested. Currently, the cmake files are looking for the openexr libs, but only use the half headers. This will be removed in the future.
Package | Version |
---|---|
USD | 0.7.6+ (stock) |
TBB | 4.3+ |
OpenEXR | 2.2.0+ |
Boost | 1.61.0+ |
CMAKE | 3.1+ |
If you want to build the MySQL resolver, you need the MySQL Connector C library version 6.1.9+. You can download the MySql library here or use the package manager.
sudo apt install libmysqlclient-dev
Enable the cmake option BUILD_MYSQL_RESOLVER
. You may want to use MYSQL_USE_STATIC_LIB
and a custom MYSQL_ROOT
too.
mkdir build && cd build
cmake -G 'Unix Makefiles' -DBUILD_MYSQL_RESOLVER ..
Get the AWS sdk for C++.
git clone https://github.com/aws/aws-sdk-cpp
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="s3" ../aws-sdk-cpp/
make && sudo make install
Enable the cmake option BUILD_S3_RESOLVER
when creating the makefiles.
There are two main ways to configure a library location. 1, configure an environment variable. 2, pass the location of the library using -D<varname>=<path> to cmake. This will be simplified soon, once we add proper find modules.
- Point the USD_ROOT environment variable to the location of the installed USD.
- Point the MYSQL_CONNECTOR_ROOT variable to the location of the extracted MySql connector C library.
- Pass OPENEXR_LOCATION to the CMake command or setup the OPENEXR_LOCATION environment variable. They have to point at a standard build of OpenEXR, including IlmBase.
- Point TBB_ROOT_DIR}, TBB_INSTALL_DIR or TBBROOT at your local TBB installation.
See also vscode tasks for some pointers.
TODO.
Consult the README.md installed alongside the resolvers.