Home › Forums › Graphics / 3ds Max › Replace Texture in GLTF Material
- This topic has 12 replies, 2 voices, and was last updated 1 year, 9 months ago by jamjam.
-
AuthorPosts
-
2023-02-10 at 1:18 pm #60291jamjamCustomer
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!
2023-02-10 at 8:56 pm #60299kdvParticipantThe “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 coding. 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 the meaning at all.
2023-02-13 at 9:34 am #60321jamjamCustomerThanks 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.2023-02-13 at 9:40 am #60325kdvParticipantThe 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 coding. 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 the meaning at all.
2023-02-13 at 10:31 am #60332jamjamCustomerI 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.2023-02-13 at 10:34 am #60334kdvParticipantSee no problem…
Puzzles and JS coding. 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 the meaning at all.
2023-02-13 at 12:56 pm #60338jamjamCustomerSorry, 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!
2023-02-13 at 1:04 pm #60339kdvParticipantWhere’s the new archive? Attach it.
Puzzles and JS coding. 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 the meaning at all.
2023-02-13 at 1:15 pm #603402023-02-13 at 1:29 pm #60343kdvParticipantthe
replace texture
puzzle knows only two materials:MeshNodeMaterial
andMeshStandardMaterial
)))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/f70Puzzles and JS coding. 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 the meaning at all.
2023-02-13 at 1:40 pm #60349jamjamCustomerThanks 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.htmlI really like verge3d, but the support could be a lot better.
2023-02-13 at 2:00 pm #60353kdvParticipanthere’s the patched file
puzzles.min.js
4.2.0. It knows aboutMeshPhysicalMaterial
)))Puzzles and JS coding. 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 the meaning at all.
2023-02-13 at 2:20 pm #60356jamjamCustomerWow, thanks so much kdv!
-
AuthorPosts
- You must be logged in to reply to this topic.