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

Further improvemens to texture resolution. #16

Merged
merged 2 commits into from
Oct 20, 2017
Merged

Further improvemens to texture resolution. #16

merged 2 commits into from
Oct 20, 2017

Conversation

zellski
Copy link
Contributor

@zellski zellski commented Oct 20, 2017

  • Move towards std::string over char * and FbxString where convenient,
  • Make a clear distinction between textures whose image files have been
    located and those who haven't; warn early in the latter case.
  • Extend RawTexture so we always know logical name in FBX, original file
    name in FBX, and inferred location in local filesystem.
  • In non-binary mode, simply output the inferred local file basename as
    the URI; this will be the correct relative path as long as the texture
    files are located next to the .gltf and .bin files.

Primary remaining urge for a follow-up PR:

  • We should be copying texture image files into the .gltf output folder,
    but before that we should switch to an off-the-shelf cross-platform
    file manipulation library like https://github.com/cginternals/cppfs.
    When we make that transition, all this texture resolution code will
    undergo another refactoring.

- Move towards std::string over char * and FbxString where convenient,
- Make a clear distinction between textures whose image files have been
  located and those who haven't; warn early in the latter case.
- Extend RawTexture so we always know logical name in FBX, original file
  name in FBX, and inferred location in local filesystem.
- In non-binary mode, simply output the inferred local file basename as
  the URI; this will be the correct relative path as long as the texture
  files are located next to the .gltf and .bin files.

Primary remaining urge for a follow-up PR:

- We should be copying texture image files into the .gltf output folder,
  but before that we should switch to an off-the-shelf cross-platform
  file manipulation library like https://github.com/cginternals/cppfs.
  When we make that transition, all this texture resolution code will
  undergo another refactoring.
@zellski zellski merged commit 8cf7f44 into facebookincubator:master Oct 20, 2017
@zellski zellski deleted the feat-more-texture-resolution-cleanup branch October 20, 2017 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants