question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add 'material' command to CLI to add/modify textures and properties

See original GitHub issue

Proposed usage:

gltf-transform material input.glb output.glb \
  --baseColorTexture base-color.png \
  --transmissionTexture transmission.png \
  --ior 1.5

This should automatically add the appropriate extensions.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dbuckcommented, Feb 9, 2021

No, I misread my results, realized right after that that it won’t allow external references in the written glb

1reaction
dbuckcommented, Feb 9, 2021

Just wanted to tag on here that I also found that hint helpful, I was looking to use the package to work with some gltf files, but needed to have external textures at the final step, this worked to export out the embedded textures, but wasn’t clear from the docs.

for (const tex of gltfDocument.getRoot().listTextures()) {
   tex.setURI(tex.getName() + '.jpg');
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating a Material - Valve Developer Community
This tutorial is a step-by-step guide to creating a brand new material, including the creation of the material's texture.
Read more >
Creating and Using Materials - Unity - Manual
To create a new Material, use Assets->Create->Material from the main menu or the ... The Shader you choose will dictate the available properties...
Read more >
Materials and texture mapping in Rhino 6 for Windows
In this video, learn how to access and use the Rhino 6 for Windows material library. Texture mapping default settings and customization are ......
Read more >
CLI | glTF-Transform - Don McCurdy
Documentation for CLI in glTF-Transform, a glTF 2.0 SDK for JavaScript, TypeScript, and Node.js.
Read more >
Creating and Using Material Instances | Unreal Engine 4.27 ...
Your Material instance will derive its name from the Material that you are using to create it. You can rename the Material instance...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found