glTF icon indicating copy to clipboard operation
glTF copied to clipboard

What would you like to see in next gen materials?

Open sbtron opened this issue 8 years ago • 63 comments

There have been some discussions lately around an updated glTF material model to support additional capabilities. Please consider this a requirements gathering exercise to understand what kind of capabilities everyone would like to see in the next gen material model for glTF.

Below are just some suggestions in no particular order

  • Better Transparency (Refractions etc)
  • Subsurface scattering
  • Anisotropy
  • Coating

Are there additional capabilities anyone would like to see? Any preferences or priorities on what we should go after next from the list above? Without getting into details on how exactly we would implement this (for now) our high level goal would still be to ensure any new capability is implementable across all graphics APIs.

sbtron avatar Sep 05 '18 20:09 sbtron

Visibility keyframes--they make possible small cache-style animations of individual frames.

n1ckfg avatar Sep 06 '18 18:09 n1ckfg

Please add official support for Lightmap 👍

Popular 3D engines all have lightmap in their PBR material.

It's an essential feature to achieve much better lighting quality and performance for static objects (benefit not just for game industry but also product visualization, arch viz...)

stevenvergenz already created an extension for it here: https://github.com/KhronosGroup/glTF/pull/1017

Ben-Mack avatar Sep 07 '18 14:09 Ben-Mack

MDL support would be great. https://developer.nvidia.com/mdl-sdk

vsnappy avatar Sep 07 '18 16:09 vsnappy

  • Thin film
  • Multi-layer

see https://blog.selfshadow.com/publications/s2017-shading-course/drobot/s2017_pbs_multilayered.pdf

UX3D-nopper avatar Sep 12 '18 15:09 UX3D-nopper

  • Backscattering (cloth)
  • Thin translucency

romainguy avatar Sep 12 '18 16:09 romainguy

If that's useful we have a document with real-time definitions for clear coat, anisotropy and cloth which can be added to existing PBR engines: https://google.github.io/filament/Filament.md.html

romainguy avatar Sep 12 '18 16:09 romainguy

Photogrammetry users of Cesium have a slight request for refraction and reflection. The later, I think is already covered enough in today's glTF PBR.

pjcozzi avatar Sep 15 '18 18:09 pjcozzi

See also:

  • Comments on clear coat from #1040
  • Comments on IOR from #1079

emackey avatar Sep 19 '18 18:09 emackey

  • Toon shaded materials
  • Outlines

for non-photorealistic rendering.

vyv03354 avatar Sep 21 '18 09:09 vyv03354

Handle UV tiles/UDIMs in the specification.

As described here in blender (https://developer.blender.org/T55435); we essentially only need a level between a glTF "image" and a "texture":

a tiled image consists of multiple files, where each file covers one unit square in the UV space.

The UV tiles is only the idea to have multiple image files to cover the UV space whereas UDIM is more a naming scheme. It is really used in the VFX world so it could be a nice improvement to have a standard support; or at least an extension.

More info here: https://support.allegorithmic.com/documentation/spdoc/udim-144310352.html

jbouny avatar Sep 21 '18 14:09 jbouny

@jbouny I was wondering if anyone would ask for UDIMs, I've been interested in them for a while. But I'm concerned that they're not very compatible with realtime shaders.

In that Allegorithmic documentation page you linked to, there's a section titled "Are UDIM compatible with game engines?" and ends with this assessment: "Therefore using UDIMs for real-time rendering is not recommended for the moment."

Of course, glTF is meant to be a general delivery format, for end-user consumption be it realtime or not. Currently though, a large percentage of the glTF ecosystem is realtime interactive, so ecosystem support for UDIMs could be limited.

Even so, it's the sort of thing that could be specified as a glTF extension fairly easily, for any implementations that were willing to take on the UDIM challenge.

emackey avatar Sep 21 '18 15:09 emackey

While it's cool to see so much momentum around glTF, there's also a danger that it becomes unusable because it would be considered to be too complex at some point... thinking about COLLADA, or even X3D, I believe it's very important to keep the standard neat and lean... or, in other words: If the mission of glTF is to be the "JPEG for 3D", let's be very careful not to make it the "SVG/PSD/AVI... for 3D", all at the same time, because that won't work and some other format will just come and replace glTF in certain domains, as it would be considered too bloated to be usable.

With that said, it would probably be useful to focus on glTF's mission as a lean ready-to-render delivery format, and less on artistic aspects that would be more relevant for an editing/exchange format... so, if 95% of engines would support UDIM, for example, it would make sense to have it in glTF, otherwise one should probably take another detailed look to figure out why it's not broadly used (yet?) and hold off with adoption into the standard until there's a broad support and demand for the feature itself in real-time rendering applications. Again, just an example and some general thoughts, don't want to start a big discussion about UDIM here... that should probably be a different thread.

Would be interested to learn what kind of non-glTF PBR texture maps or material properties the large user community of Sketchfab (@AurL?) is making heavy use of - it's always nice to have statistics ;-)

mlimper avatar Oct 04 '18 09:10 mlimper

@sbtron would you be able to post a summary of the discussion thus far?

pjcozzi avatar Oct 09 '18 18:10 pjcozzi

Will try to summarize discussion so far (please correct if I miss anything and I will update this comment)

I was initially thinking about this from the perspective of what material properties are missing from the PBR (BSDF) style of materials but looks like there are some broader material requests (and maybe we should split them apart into multiple issues).

Additional properties from Disney principled BRDF

Unity Unreal Filament three.js Babylon.js UX3D
ClearCoat ❓ ❓ ✅ ✅ ❌ ❌
Subsurface ❓ ❓ ❓ ❌ ❌ ✅
Anisotropic ❓ ❓ ❓ ❌ ❓ ❌
Sheen ❓ ❓ ❓ ❌ ❓ ❌

Transparency

Unity Unreal Filament three.js Babylon.js UX3D
Additional alpha properties #1457 ❓ ❓ ❓ ✅ ❓ ❌
IOR ❓ ❓ ❓ ❌ ❓ ❌
Thin Film Transparency ❓ ❓ ❓ ❌ ❓ ✅

Fabric/Cloth

Unity Unreal Filament three.js Babylon.js UX3D
Backscattering ❓ ❓ ❓ ❌ ❓ ❌

Additional Maps

Unity Unreal Filament three.js Babylon.js UX3D
Lightmaps ❓ ❓ ❓ ✅ ❓ ❌
DisplacementMaps ❓ ❓ ❓ ✅ ❓ ✅

Non Photo Realistic

Unity Unreal Filament three.js Babylon.js UX3D
Toon Shaded ❓ ❓ ❓ ✅ ❓ ❌
Outlines ❓ ❓ ❓ ❓ ❓ ❌

Couple of other comments UDIM support seems to be independent of extending the material definitions so maybe we track that separately.

Ensuring that the materials work for realtime interactive type of scenarios is certainly an important consideration and maybe next step is to evaluate current engine support and usage similar to what was done in #696

Updated (10/24/18): Recategorized capabilites and added Engine support column.

sbtron avatar Oct 10 '18 15:10 sbtron

Here's one I lost track of: Parallax Occlusion using height maps. #948

emackey avatar Oct 10 '18 15:10 emackey

I just came here to add a reference to #948 :) Adobe will most likely be very interested in this in the coming months.

MiiBond avatar Oct 12 '18 21:10 MiiBond

Updated comment above with additional capabilities and a column for engine support. It would be very useful if folks could leave comments with information about specific engines what capabilities they support. I can keep the table updated as a summary.

sbtron avatar Oct 24 '18 15:10 sbtron

Not sure Sketchfab could fit in the list but here what we are supporting: clearCoat subSurface lightmaps anisotropy is coming soon

on transparency: dithering refraction/ior blending additive mask

cedricpinson avatar Oct 25 '18 16:10 cedricpinson

@cedricpinson Thank you! I hope this isn't a crazy request but is there any chance you'd be able to share (privately, if necessary) some rough percentages of assets you see using these techniques?

donmccurdy avatar Oct 25 '18 22:10 donmccurdy

For AR-related projects, I'd like to see a DepthMask shader beeing supported. i.e. to render stairs leading down in a floor. The DepthMask would be on a virtual floor surface and hide any geometry behind it, but pixels of the AR video layer show through. Possible in game engines like Unity and UE4

PixelPartner avatar Oct 26 '18 07:10 PixelPartner