This sample package shows the basic components required to connect MaterialX running in Python to a Web client running Javascript in order to access materials on the AMD GPUOpen material site.
- Usage of the
materialxMaterials
Python package flask
andflask-socketio
Python packagessocket-io
Javascript library
Either install the package from PyPi
:
pip install materialx_gpuopen_app
or clone the materialXWeb
repository and install from the root folder:
pip install .
or
pip install -e .
if planning to perform edits on the repository.
Run the main package using:
materialx-gpuopen-app
or directly with Python:
python MaterialXGPUOpenApp.py
By default the application is running a local server. To access the client page open the following in a Web browser:
http://127.0.0.1:8080