Author Topic: MaterialX  (Read 2174 times)

The directory in the plugin should look like this when MaterialX is properly placed:
Code: [Select]
sdmatxplugin
    ├── MaterialX
    │   ├── bin
    │   ├── cmake
    │   ├── include
    │   ├── lib
    │   ├── libraries
    │   ├── python
    │   └── resources
    ├── data
    ├── doc
    └── python

Yhe MaterialX directory should be a child of sdmaterialxplugin directory not a sibling.

yes this is working for me now.

thanks

Even with the new plugin it doesnt work for me.
Get new Errors.



[MSG][1][ApplicationVersion]Version 10.1.1 build 3475 commit 0xe94872d4 (2020-04-10)



[ERR][855][Python]Traceback (most recent call last):

[ERR][856][Python] File "C:/Users/mir/Documents/Allegorithmic/Substance Designer/python/sduserplugins/sdmatxplugin\__init__.py", line 102, in initializeSDPlugin

[ERR][857][Python]

[ERR][858][Python]ShadergraphPlugin.initializeShaderGraph()

[ERR][859][Python] File "C:\Users\mir\Documents\Allegorithmic\Substance Designer\python\sduserplugins\sdmatxplugin\python\ShadergraphPlugin\__init__.py", line 22, in initializeShaderGraph

[ERR][860][Python]

[ERR][861][Python]MaterialXEditor.init()

[ERR][862][Python] File "C:\Users\mir\Documents\Allegorithmic\Substance Designer\python\sduserplugins\sdmatxplugin\python\ShadergraphPlugin\MaterialXEditor.py", line 88, in init

[ERR][863][Python]

[ERR][864][Python]sdGraphDefinition.addType(sdType)

[ERR][865][Python] File "C:/Program Files/Allegorithmic/Substance Designer/resources/python\sd\api\sdgraphdefinition.py", line 128, in addType

[ERR][866][Python]

[ERR][867][Python]raise APIException(SDApiError(_res))

[ERR][868][Python]sd.api.apiexception

[ERR][869][Python].

[ERR][870][Python]APIException

[ERR][871][Python]:

[ERR][872][Python]SDApiError.Undefined

[WRN][873][Python]Failed to load plugin '__init__'

[ERR][874][Python]Traceback (most recent call last):

[ERR][875][Python] File "C:/Users/mir/Documents/Allegorithmic/Substance Designer/python/sduserplugins/sdmatxplugin\python\__init__.py", line 67, in <module>

[ERR][876][Python]

[ERR][877][Python]raise BaseException('MaterialX not found')

[ERR][878][Python]BaseException

[ERR][879][Python]:

[ERR][880][Python]MaterialX not found

[WRN][881][Python]Failed to load plugin 'python'

@mudoglu

That error is not obvious to me.
Can you PM me and we can try to figure out a way of debugging this together?

Sorry for the inconvenience

Thanks David you have a PM.

New release today
Changelog:

v 0.1.2 changes
* Fixed issue with the path for user mdl documents breaking subgraph export
* Added missing sample Floor.sbs
* Added toolbar icon for the MaterialX toolbar
* Added translation for atan2
* Added compatibility checks on startup to make it easier to understand what goes wrong during initialization
* Added check for changes to mtlx modules on startup to decide on whether to rebuild mdl files
* Corrected behavior for tweaking parameters with min/max defined in GL viewport
* More feedback when exporting subgraphs

New version tested.
New log.

[ERR][899][Python]Traceback (most recent call last):
[ERR][900][Python]  File "C:/Users/mir/Documents/Allegorithmic/Substance Designer/python/sduserplugins/sdmatxplugin\__init__.py", line 153, in initializeSDPlugin
[ERR][901][Python]   
[ERR][902][Python]ShadergraphPlugin.initializeShaderGraph()
[ERR][903][Python]  File "C:\Users\mir\Documents\Allegorithmic\Substance Designer\python\sduserplugins\sdmatxplugin\python\ShadergraphPlugin\__init__.py", line 22, in initializeShaderGraph
[ERR][904][Python]   
[ERR][905][Python]MaterialXEditor.init()
[ERR][906][Python]  File "C:\Users\mir\Documents\Allegorithmic\Substance Designer\python\sduserplugins\sdmatxplugin\python\ShadergraphPlugin\MaterialXEditor.py", line 87, in init
[ERR][907][Python]   
[ERR][908][Python]sdGraphDefinition.addType(sdType)
[ERR][909][Python]  File "C:/Program Files/Allegorithmic/Substance Designer/resources/python\sd\api\sdgraphdefinition.py", line 128, in addType
[ERR][910][Python]   
[ERR][911][Python]raise APIException(SDApiError(_res))
[ERR][912][Python]sd.api.apiexception
[ERR][913][Python].
[ERR][914][Python]APIException
[ERR][915][Python]:
[ERR][916][Python]SDApiError.Undefined
[WRN][917][Python]Failed to load plugin '__init__'
[MSG][918][SDMaterialX]Found Substance Designer Version 10.1.1
[MSG][919][SDMaterialX]Found Substance Designer Version 10.1.1
[MSG][920][SDMaterialX]Found Substance Designer Version 10.1.1
[MSG][921][SDMaterialX]Found Python version 3.7.6
[MSG][922][SDMaterialX]Found Python version 3.7.6
[MSG][923][SDMaterialX]Found Python version 3.7.6
[ERR][924][SDMaterialX]Failed to initialize MaterialX plugin: MaterialX not found
[ERR][925][SDMaterialX]Failed to initialize MaterialX plugin: MaterialX not found
[ERR][926][SDMaterialX]Failed to initialize MaterialX plugin: MaterialX not found

To get it working i had to set my Python Path to the correct folder.




Here is a install video from Xolotl Studio.
https://www.youtube.com/watch?v=Ref1ZZUtSIg

Hi everyone,

We finally made our own getting started video. This should make installation easier:
https://www.youtube.com/watch?v=bduf3TWmeMY

New release is out:
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

https://share.substance3d.com/libraries/6111

New release out. Mainly about making creating shaders for Painter better/easier.
There is a new video about this workflow too:
https://academy.substance3d.com/courses/GLSL-Shaders-for-Substance-Painter-with-MaterialX/youtube-5VLs9nRqOAA

Plugin page:
https://share.substance3d.com/libraries/6111

Release notes:
v 0.1.4
* Added Painter Template and Sample
* Corrected painter shader so specular color affects non-metallic materials instead of metallic ones
* Corrected Painter Normal map tangent base to adapt automatically for the baked normals
* Added html documentation
* Added support for upcoming changes to MaterialX master preserving 1.37.1 compatibility