Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed 2.0 materials common #965

Closed
wants to merge 3 commits into from
Closed

Proposed 2.0 materials common #965

wants to merge 3 commits into from

Conversation

lasalvavida
Copy link
Contributor

@lasalvavida lasalvavida commented May 19, 2017

This is my perspective on how to update the materials common extension.

  • Drop lights out (it should be a separate KHR_lights extension as in glTF 2.0: New KHR_lights extension #945)
  • Use the existing pbr and pbrSpecularGlossiness properties to compute the specular lighting parameters in the context of the lighting models
  • Very simple extension, just define a technique, and use the existing material to do the rest
  • enum for techniques to be more in line with the rest of the spec
{
    "materials" : [{
        ...
        "extensions" : {
            "KHR_materials_common" : {
                "technique": 0 // Blinn
            }
        }
    }]
}

Feedback appreciated

@pjcozzi
Copy link
Member

pjcozzi commented May 20, 2017

Thanks @lasalvavida!

I think @McNopper would be a good person to review and collaborate with here.

@McNopper
Copy link
Contributor

Please let us optimze/finalize #947, which will become the offical KHR_materials_common extension sooner or later. This will be a "real" Phong, Blinn etc. material model, with the well known parameters which already do exist.

As far as I know, @bghgary is working on some math, where you can make out of Phong etc. a PBR material. As far as I understood your suggestion, you are doing the opposite way: Making out of a PBR material a Phong etc. material.

I think both directions do make sense in a manner of compatibility e.g. an engine does not support a specific renderer.
But a quality loss (PBR -> Phong) is to be expected and the impact should also be discussed in the glTF working group.

If we follow this path, I suggest we define an extension e.g. KHR_materials_conversion, which allows to convert between materials.

@pjcozzi
Copy link
Member

pjcozzi commented Jun 14, 2017

Also see #824 for discussion on spotlight falloff angle.

@pjcozzi
Copy link
Member

pjcozzi commented Jul 16, 2017

@McNopper OK to close as duplicate with #947 and #945?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants