Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autopacking #4

Open
JJL772 opened this issue Jul 20, 2022 · 0 comments
Open

Autopacking #4

JJL772 opened this issue Jul 20, 2022 · 0 comments
Assignees

Comments

@JJL772
Copy link
Member

JJL772 commented Jul 20, 2022

Support automatic packing of MRAO maps and height into normal. This is for compatibility with the PBR shader.

The following rules should be adhered to:

  • ambient occlusion: _ao.xxx or _ambientocclusion.xxx
  • metalness: _metal.xxx or _m.xxx
  • roughness: _r.xxx or _roughness.xxx
  • color: No postfix or _c.xxx or _color.xxx or _albedo.xxx
  • height: _h.xxx or _height.xxx
  • normal: _n.xxx or _normal.xxx

Each file in the directory needs to be processed. If the file matches any of the color map specification (_c, _color, no postfix or _albedo), then vtex2 will determine the "stem" file name. It will then figure out the other map components for packing.

The implementation should probably defer actual processing until it's actually read all of the directory's contents. Upon encountering the base name, it should create a new "texture set". Anything that matches an existing texture sets stem will then be added to the texture set. At the end of processing, all files will be packed.

@JJL772 JJL772 self-assigned this Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant