|
MaterialXWeb 1.39.5
Utilities for using MaterialX Packages with Web clients
|
Files | |
| MaterialXConversionApp.py | |
| usdmtlx.py | |
This sample package shows the basic components required to connect MaterialX running in Python to a Web client running Javascript in order to run conversion or rendering applications.
Server-side rendering using MaterialXView | Server-side conversion from MaterialX to USD and glTF (top and bottom respectively) |
The following packages are installed by default as part of the pip installation.
Rendering depends on the environment variable: MATERIALX_DEFAULT_VIEWER being set to the location of the MaterialXView binary. This is part of the MaterialX release distribution as found here
Either install the package from PyPi:
or clone the materialXWeb repository and install from the root folder:
or
if planning to perform edits on the repository.
Run the main package using:
or directly with Python:
By default the application is running a local server. To access the client page open the following in a Web browser:
This application is not currently deployed on any platform, though it should run properly with the exception of rendering in a Render container.