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.

Replace Texture in GLTF Material

Home Forums Graphics / 3ds Max Replace Texture in GLTF Material

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #60291
    jamjam
    Customer

    Hey,

    How can we replace a texture when using gltf Material?
    The “Replace Texture” puzzle doesn´t show any textures.
    Is this not supported yet?

    If not, is it possible to replace it with javascript?
    Any code example would be great!

    Thanks!

    #60299
    kdv
    Participant

    The “Replace Texture” puzzle doesn´t show any textures. Is this not supported yet?

    Probably textures in your materials have no names.

    Testures without names cannot be replaced via puzzles.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #60321
    jamjam
    Customer

    Thanks for your reply kdv.
    Not sure where this screenshot is from, but I didn´t post any file.
    I´ve attached screenshots from my settings.

    If someone from the verge3d team could reply, I would appreciate it.
    Thanks!

    Attachments:
    You must be logged in to view attached files.
    #60325
    kdv
    Participant

    The screenshot is mine, from my app ))) it just shows how textures are represented in standard materials after importing from .gltf.

    Share your app or a simple example with the same problem.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #60332
    jamjam
    Customer

    I modified the gltf_compat example file, now the app is just a box with this single material.

    I´ve attached the app.

    Attachments:
    You must be logged in to view attached files.
    #60334
    kdv
    Participant

    See no problem…

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #60338
    jamjam
    Customer

    Sorry, I´ve uploaded the wrong version, Material#17 is a PhyiscalMaterial.

    Attached you will find the version with the GLTF Material.

    Thanks for your time and support! :good:

    #60339
    kdv
    Participant

    Where’s the new archive? Attach it.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #60340
    jamjam
    Customer

    woops, File was too big

    Attachments:
    You must be logged in to view attached files.
    #60343
    kdv
    Participant

    the replace texture puzzle knows only two materials: MeshNodeMaterial and MeshStandardMaterial )))

    It cannot replace textures in all other materials: MeshBasicMaterial, MeshPhongMaterial, MeshLambertMaterial, MeshPhysicalMaterial, ShaderMaterial etc.
    Two ways: re-work this function in puzzles.min.js or use JS directly.
    https://v3d.net/f70

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #60349
    jamjam
    Customer

    Thanks for the confirmation, kdv.
    That´s what I asked in the original post, sadly my javascript knowledge is pretty limited.

    If not, is it possible to replace it with javascript?
    Any code example would be great!

    Question for the developers:
    Why is glTF the recommended material for 2023+ if this basic feature is not supported?
    Also there is no hint in the manual, that it is not supported.
    https://www.soft8soft.com/docs/manual/en/max/GLTF-Materials.html

    I really like verge3d, but the support could be a lot better.

    #60353
    kdv
    Participant

    here’s the patched file puzzles.min.js 4.2.0. It knows about MeshPhysicalMaterial )))

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #60356
    jamjam
    Customer

    Wow, thanks so much kdv!

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