Plugin for building MaterialX Graphs in Substance Designer 2020.1.
Note, this is a beta version and it's not ready for production use yet.

Installation and usage instructions can be found in the file doc/README.md in the package.

A video getting started tutorial is avialble here: https://www.youtube.com/watch?v=bduf3TWmeMY

v 0.1.3
* Split out glsl codegen to a separate python module
* Added a configuration file for configuring paths and the viewer
* Removed issue related to finding the Substance Designer Document directory when HOME environment variable specified on windows
* Added documentation for what features are supported and not in standard surface in different implementations
* Updated floor sample for smaller export
* Added missing image for floor sample documentation
* Changed mat ball mesh in the package to make object space align with the MatXViewer object space for the default version of that model in Substance Designer
* Added documentation notes on how to make coordinate systems align between applications
* Corrected iRay/MDL implementation of modulo to be consistent with GLSL

Full changelog available in the package

Uploaded: about 2 months ago
Updated: 28 days ago
Version: 4
File Name: substance-designer-material...
Size: 7.25 MB

DownloadblackDOWNLOAD



DISCUSS
about 2 months ago

"sduserplugin" folder default install folder name is "sduserplugins"


about 2 months ago

YEESSSS!!


about 2 months ago

Огонь!


about 2 months ago

@Barecore, good catch. I'll update it for the next version!


about 2 months ago

@remark3dcz
Ignore the layout in the previous response. The message was incorrectly formatted to show exactly how things should NOT be :)
MaterialX should be a subdirectory od sdmatxplugin and nothing else


about 2 months ago

Hi David, I tried yet before, but same error


about 2 months ago

I do not know why, but if I do all according to readme.md, both MaterialX and sdmatxplugin are with errors under Plugin Manager. If I look into console protocol, I can see that sdmatxplugin do not see MaterialX. I t is ok. But MateriaX can not find "MaterialX.PyMaterialXCore". So it means that MaterialX is not "install" correctly. Is somewhere manual how implement MateralX correctly to SD? Is need some python 3 or another else? Anyway MaterialX console errors:

[ERR][2987][Python]Traceback (most recent call last):
[ERR][2988][Python] File "C:/Users/xboxp/Documents/Allegorithmic/Substance Designer/python/sduserplugins\MaterialX\__init__.py", line 1, in
[ERR][2989][Python]
[ERR][2990][Python]from .main import *
[ERR][2991][Python] File "C:/Users/xboxp/Documents/Allegorithmic/Substance Designer/python/sduserplugins\MaterialX\main.py", line 3, in
[ERR][2992][Python]
[ERR][2993][Python]from .PyMaterialXCore import *
[ERR][2994][Python]ModuleNotFoundError
[ERR][2995][Python]:
[ERR][2996][Python]No module named 'MaterialX.PyMaterialXCore'

---

sdmatxplug console errors:

[ERR][2997][Python]Traceback (most recent call last):
[ERR][2998][Python] File "C:/Users/xboxp/Documents/Allegorithmic/Substance Designer/python/sduserplugins\sdmatxplugin\__init__.py", line 66, in
[ERR][2999][Python]
[ERR][3000][Python]raise BaseException('MaterialX not found')
[ERR][3001][Python]BaseException
[ERR][3002][Python]:
[ERR][3003][Python]MaterialX not found


about 2 months ago

@remark3dcz
From the error it looks like MaterialX is directly in the sduserplugins. It shound be in the directory sdmatxplugin where the plugin is located.
The directory should be
sduserplugins
|__sdmatxplugin
|__...
|__MaterialX


about 2 months ago

I do not know why happen this:
[ERR][704][Python] File "C:/Users/xyj/Documents/Allegorithmic/Substance Designer/python/sduserplugins\sdmatxplugin\__init__.py", line 88, in initializeSDPlugin
[ERR][705][Python]
[ERR][706][Python]_buildMDLFiles()
[ERR][707][Python] File "C:/Users/xyj/Documents/Allegorithmic/Substance Designer/python/sduserplugins\sdmatxplugin\__init__.py", line 47, in _buildMDLFiles
[ERR][708][Python]
[ERR][709][Python]content = sdmatx.mtlx2mdl_library(m, 'shared', mtlx_search_path)
[ERR][710][Python] File "C:\Users\xyj\Documents\Allegorithmic\Substance Designer\python\sduserplugins\sdmatxplugin\python\sdmatx\mtlx2mdl.py", line 801, in mtlx2mdl_library
[ERR][711][Python]
[ERR][712][Python]if isNodeSupported(node_def):
[ERR][713][Python] File "C:\Users\xyj\Documents\Allegorithmic\Substance Designer\python\sduserplugins\sdmatxplugin\python\sdmatx\mtlx2mdl.py", line 96, in isNodeSupported
[ERR][714][Python]
[ERR][715][Python]nodeTypeSupported = mtlx_nodeDef.getType() in mtlxToMdl_types
[ERR][716][Python]LookupError
[ERR][717][Python]:
[ERR][718][Python]Nodedef: TestSuiteOptions has no outputs


about 2 months ago

remark3dcz: What version of designer are you using. It looks like it tries to load materialx but it fails which might be related to being on 2019 where the python version 3.6


about 2 months ago

xianyaoji
Your issue should be fixed in the updated release. Sorry for the inconvenience


about 2 months ago

Thank you!


about 2 months ago

Thanks Dave, I did how you desribed, but still different errors:

[ERR][2994][Python]Traceback (most recent call last):
[ERR][2995][Python] File "C:/Users/xboxp/Documents/Allegorithmic/Substance Designer/python/sduserplugins\sdmatxplugin\__init__.py", line 74, in initializeSDPlugin
[ERR][2996][Python]
[ERR][2997][Python]import sdmatx
[ERR][2998][Python] File "C:\Users\xboxp\Documents\Allegorithmic\Substance Designer\python\sduserplugins\sdmatxplugin\python\sdmatx\__init__.py", line 1, in
[ERR][2999][Python]
[ERR][3000][Python]from .paths import getDataDirectory, \
[ERR][3001][Python] File "C:\Users\xboxp\Documents\Allegorithmic\Substance Designer\python\sduserplugins\sdmatxplugin\python\sdmatx\paths.py", line 6, in
[ERR][3002][Python]
[ERR][3003][Python]import MaterialX as mx
[ERR][3004][Python] File "C:\Users\xboxp\Documents\Allegorithmic\Substance Designer\python\sduserplugins\sdmatxplugin\MaterialX\python\MaterialX\__init__.py", line 1, in
[ERR][3005][Python]
[ERR][3006][Python]from .main import *
[ERR][3007][Python] File "C:\Users\xboxp\Documents\Allegorithmic\Substance Designer\python\sduserplugins\sdmatxplugin\MaterialX\python\MaterialX\main.py", line 3, in
[ERR][3008][Python]
[ERR][3009][Python]from .PyMaterialXCore import *
[ERR][3010][Python]ModuleNotFoundError
[ERR][3011][Python]:
[ERR][3012][Python]No module named 'MaterialX.PyMaterialXCore'
[WRN][3013][Default](0): QSqlDatabasePrivate::database: requested database does not belong to the calling thread.
[WRN][3014][Default](0): QSqlQuery::prepare: database not open


27 days ago

<>1>


27 days ago

alert()


27 days ago

<.1


27 days ago

<>hello