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 'variants' lib and CLI function

See original GitHub issue

See https://github.com/KhronosGroup/glTF/pull/1681, similar to https://github.com/facebookincubator/glTFVariantMeld. Would be added to the lib package and available through the CLI. Not sure whether the existing meld API is the right one, maybe this should take a config file pointing to external textures, and a single glTF, instead?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
echadwick-wayfaircommented, Jan 25, 2021

Lately I’ve been exporting variants models to ASCII glTFs, then manually editing one of them to add the variant syntax (copied directly from a Sample Model), then copying in the materials info from the other glTFs I exported. Visual Studio Code with the glTF Tools extension is pretty good for this.

It would be great to have it built into an exporter, like the Max2Babylon that we use here to export from 3ds Max. Then artists wouldn’t have to do a bunch of typing. Max2Babylon has a nice multi-export GUI already, for splitting up a single scene file into multiple .glTF or .GLB files. It shouldn’t be too hard to adapt a similar approach using Layers (or another common 3D scene organization system) to organize models & materials into their corresponding variants, then let the exporter combine them all.

image

In the meantime it would be nice to have a command-line tool that combined exported models together. I guess I should be using glTFVariantMeld, but that requires building it first which is a bit of a hurdle. https://github.com/facebookincubator/glTFVariantMeld

On Mon, Jan 25, 2021 at 4:19 PM Don McCurdy notifications@github.com wrote:

@echadwick-wayfair https://github.com/echadwick-wayfair do you have any preferences on how a variant-authoring workflow might work for an artist? Would you want to export a GLB for each variant and then merge them into one GLB with variants? Or create a “source” file and somehow inject variants into that?

Trying to figure out how to add support here (via CLI and/or scripting), and then — potentially — someone else could use this tool to create a web UI to do the same.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/donmccurdy/glTF-Transform/issues/64#issuecomment-767119491, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJSQ3DG5JRG2GSGJ6JRT36LS3XN6ZANCNFSM4P6VOEXQ .

0reactions
donmccurdycommented, Dec 21, 2022

I’m concerned that I don’t personally understand the requirements for what would make a good material variants implementation. For example, what the input files look like, what workflows are used to create them, and a sufficient number of examples to test.

I’d rather not implement this speculatively; it’s a bit complex for that. But I would welcome PRs, or might be open to sponsored work to implement this with a team that has a clearer sense of the desired art workflow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure build variants | Android Developers
This page shows you how you can configure build variants to create different versions of your app from a single project and how...
Read more >
Boost Getting Started on Unix Variants - 1.64.0
Nothing to Build? Most Boost libraries are header-only: they consist entirely of header files containing templates and inline functions, and require no ...
Read more >
Modeling feature variants and optional dependencies
Feature variants let consumers choose what features of a library they need: the dependency management engine will select the right artifacts and dependencies....
Read more >
CLI11 is a command line parser for C++11 - GitHub
CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface. -...
Read more >
Variant Manager for Simulink - MathWorks
Use a central tool to manage all variation points in a variant model.
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