oglu
beside USD there is coming some more open source, now for materials...
http://www.materialx.org/
Reply 0 0
pshipkov
One can tell the vfx industry is maturing when look at these emerging standards.
Reply 0 0
Toast
Is this a competitor to OSL? 
Reply 0 0
oglu
i dont think so... its using OSL to store the shader data...
like USD is using alembic to store the pointdata...
Reply 0 0
oglu
good info about MDL...


Quote:


Hi, i am Jan Jordan and the product manager of MDL at NVIDIA.

like remydrh said, Material Definition Language (MDL) and MaterialX serve different purposes. Like with many technologies there is of course a certain feature overlap and feature similarity (both separate texturing from actual shading, both are designed to express nodegraphs of some sort, both being independent of an actual render) But that does not mean they solve the same problem.

Part of the problem is certainly that both have the term material in their name which might mean different things to different people. 

MaterialX cares not only about materials but ultimately about looks, the combination of material and object, potentially specialize for individual shots. In that context its a schema for documenting not only the material structure but also its use in a production pipeline, from prerender to postrender shading. It does not define what the material actually looks like because it treats "shaders" as black boxes. For texture processing it does define some semantic but also allows completely custom nodes. So if the shader is for example the "Vray standard material", then its up to you to make sure you have a matching implementation on a different renderer.

MDL on the other hand is a programming language designed to solve some of the issues we had with traditional shading languages. It ultimately concentrates on defining the actual light-surface/volume interaction for a material in physical terms, while still being independent of the actual rendering algorithm. So the material type in MDL can easily serve as the material shader in MaterialX. For texture processing, MDL is a full programming language and can serve both for implementing the semantic of MaterialX's standard texture processing nodes or additional ones.
On the other hand, MDL is agnostic of production pipelines, so we expect people to have additional solutions for managing those. MaterialX is a very nice solution for that.

In general, one big point of MDL is to allow the definition of materials independent of actual geometry, addressing material exchange between individuals and independent programs, especially between radically different applications (from CAD to VFX) We allow the creation of material libraries and reusable material content that can last beyond the current shot/production/use on a specific object. 
The strengths of MDL become most valuable if you regularly deal with multiple renderers of different architectures and applications with different workflows and want to share content between those.

I don't want to go into more depth about what other differentiating features MDL has and invite interested people to take a look themselves:
http://www.nvidia.com/object/materi...n-language.html
http://www.mdlhandbook.com/


but want to address some of the specific criticism:

quote:
MDL at VFX level - it's much more comprehensive and well thought out than MDL is - implicit colourspace, coordinate system, attribute, primvar support, supports collections, overrides, etc. MDL barely has any support for that, and where it does it's mostly in very hacky/non-optimal ways (e.g. using inheritance for overrides).


A lot of this is "pipeline" and customization within a pipeline. MDL is not about that.

-collections (recipies for list of geometries) are outside of MDL's scope 
-implicit colourspace: MDL defines a working color space for RGB colors in MaterialX terms. MDL might expand in the future here based on actual requests, but in general often color management would be a task for an additional management layer (MaterialX, DCC level) and there are good software packages available to do so. In addition, color is an abstract data type in MDL that is not limited to RGB but can support spectral rendering directly.
-primvars: custom primvars can easily restrict a material to a specific geometry and pipeline. We want to avoid that. Depending on the actual usecase we would need to discuss individual solutions. Constant primvars for example could easily be resolved outside MDL, for example using MaterialX. 
- coordinate system: MaterialX has imho *one* space MDL does not have: "model" which is pre-deformation object space. Interestingly that's also a classic usecase for primvar afair, and can often be solved by baking to uv channels. And for many renderers you would need to resort to baking to uv anyway to support this "model" space at shadetime. In general we try to settle on *one* way for implementing a certain mechanism to keep the language simple. 
-inheritance vs overrides: MDL is not rich on object oriented concepts. We do not speak of inheritance in our documentation at all and in some cases we draw heavy inspiration from functional languages. The material type is essentially a struct type with default values and you deal with instances of this type. The "material definition" is technically a function returning a instance of the material type, providing the input parameters and essentially filling in the struct fields. There is a very simple syntactical mechanism to create a variant of a material with just one or a few parameter values changes that works well with the override mechanism of MaterialX, MaterialX would manage the lifetime of the variant. With MDL 1.3 we introduced a similar mechanism for texture processing functions. 

all the best
Jan


Reply 0 0
Reply