We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

ambient occlusion maps on gltf materials

Home Forums Graphics / Blender ambient occlusion maps on gltf materials

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #34886
    thomasup
    Customer

    we are trying to convert our materials to gltf-compatible, to cut down on loading time.

    most of our materials are a pricipled shader + ambient occlusion mixed in.
    usually mixed into base color + specular (see attachements), or mixed to black via a shader mix node (this has some issues with the gamma beeing different in the browser though).

    now, verge3d-3-4-for-blender-released states that

    Finally, there is now possibility to use external occlusion maps in gltf-compatible materials (before AO had always to be packed to the ORM texture).

    but, it is not described how this can be done.
    docs/manual/en/blender/GLTF-Materials
    also does not mention this.
    how can we set the nodes up, so that the ambient occlusion is used in a gltf material?

    also, part2: some of our material have the ambient occlusion baked into vertex colors, is there a way to use these?

    #35012

    Hi,
    indeed, user manual is a bit outdated (going to fix it). See Pbr demo in your Verge3D installation to see how to assign AO in glTF-based materials.

    As for part 2, unfortunately vertex colors are not supported for glTF shaders.

    Attachments:
    You must be logged in to view attached files.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #35021
    thomasup
    Customer

    thank you for the info!

    how would this look, if we only have an ao texture, and all other parameters are solid color?
    can we omit the separateRGB node, like in the screenshot?

    Attachments:
    You must be logged in to view attached files.
    #35025
    thomasup
    Customer

    it seems to work!
    the map is visible, and the material is a MeshStandardMaterial in the browser.

    nice!

    #35028

    Glad you figured it out. See the updated manual here.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #35032
    thomasup
    Customer

    the gltf material seems to indroduce some differences in shading, though.
    maybe there it is mixed differently, or it uses a different gamma, but we are not able to reproduce the same strength of ao in the browser, as we have in eevee.

    Attachments:
    You must be logged in to view attached files.
    #35040
    thomasup
    Customer

    as a fallback, we wanted to use the AO as base color on metallic surfaces, but it seems the multiply node does not work on our end. (v3d 3.4.0)

    the texture is not applied, when the node is attached in between.
    without the multiply node, the texture is loaded.

    Attachments:
    You must be logged in to view attached files.
    #35142

    the texture is not applied, when the node is attached in between.
    without the multiply node, the texture is loaded.

    that’s strange. Can you create a sample .blend file for us to check this?

    Chief 3D Verger | LinkedIn | Twitter

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.