|
MaterialXMaterials 0.0.3
Utilities for retrieving materials from remote servers
|
MaterialX Materials.
PhysicallyBased database Material descriptions can be downloaded with additional utilities to create materials using either: Autodesk Standard Surface, OpenPBR, or glTF PBR shading model shaders.
AMD GPUOpen database MaterialX packages can be downloaded (as zip files). Images and MaterialX documents can be extracted for any of the posted materials in the database.
PolyHaven Library MaterialX assets can be downloaded (as zip files). Images and MaterialX documents can be extracted for any of the posted materials in the database. Python or Javascript implementations.Node.js to allow access to fetch materials from the GPU Open site(which is not available via a web page). ambientCg and GPUOpen currently with the intent to add new libraries as they become available.
polyHavenLoader and polyHavenLoaderCmd are currently available which can produce a filtered list of assets (textures) which have MaterialX representations. This list cna be used to download specific assets and save to zip format. | | |
PhysicallyBased, GPU Open, ambientCg> and PolyHaven (left to right images respectively).GPU Open and ambientCg is directly read into the editor via it's zip loading option. PolyHaven builds a zip to allow loading via the zip loading option. | | | |
requests package.pillow package for image handling for GPUOpen package handlingnode-fetch if fetch is not available in the version of Node.js used.yargs for the command line utilityutilities folder.build.sh will install the package and run package commands to update package data.buildDocs.sh will prepare documents and run Doxygen to build API docs.javascript\JsGPUOpenLoaderPackage) the following should be run:Query all materials fom PhysicallyBased and convert them to all support shading models. Save the material list and corresponding MaterialX files in the default output location. The build will include this information Python package under the data folder.
or
Query all materials fom GPUOpen. Extract out a few material packages (zip). Save the material lists, material names and unzipped packages (MaterialX and images) in the default output location. The build will include this information Python package under the data folder.
Download the materials list fom ambientCG:
Extract out a material package for the "WoodFloor038" material from ambientCG requesting the package where the images are 2K PNG files:
Examine all texture assets on PolyHaven, and find all ones which have MaterialX resources. Does not download the asset.
Scan locally downloaded MaterialX asset information to download.
javascript\JsGPUOpenLoaderPackage folder as follows:Jupyter notebook demonstrates the direct usage of the Python library. The output of the notebook can be found here. The notebook can found in the Github repository under the examples folder.MaterialXView utility which is part of the MaterialX binary distribution.| Emerald Peaks Wallpaper | Indigo Palm Wallpaper | Oliana Blue Painted Wood |
|---|---|---|
| | |
| Ketchup | Cooking Oil | Brass |
|---|---|---|
| | |
| Metal (53) | Paving Stones (142) | Wood Floor (38) |
|---|---|---|
| | |
| | |
GPUOpen PhysicallyBased, and ambientCG and PolyHaven from top to bottom respectively.