-
Notifications
You must be signed in to change notification settings - Fork 59
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
Support Basis format files #69
Comments
Hi, happy to see you here! In case you haven't seen: #62 and #65 ... and for vcpkg at least, we're relying on your fork :) I'm just now in process of integrating the first of those PRs (pushing to the
That's done in these PRs already, however right now it's just the first mip for each (blocked by mosra/magnum#369). |
Oh, cool. I didn't think to look in the PR tab since I assumed you'd have a tracking issue. I brought it up because I'm working on a set of OpenXR examples. Since I want the code to be focused on the OpenXR API and not go too far into the weeds on how to render a scene I've been trying to sort out what to use as a rendering backend and Magnum seems like a good fit, but I also wanted to make sure I used basis and gltf for all assets, so good to hear work is in progress. Thanks. |
The web player has a support now, if you want to check it out on random files: https://twitter.com/czmosra/status/1178089815021178884 (issue reports very welcome!) Current magnum master (last push from ~1h ago) has additional compressed texture formats and some scaffolding needed by Basis added, and the There's one unresolved issue about Y flip on importer that I'm planning to PR to Basis itself but as long as you pre-Y-flip during encoding, it won't bother you -- it's more an issue for general viewers/players that can't control how the file was produced. |
#62 is merged now, docs for it are up as well. The converter part from #65 not yet, plus there's some work left to be done on the Basis side (see #70). Keeping this open until those two are resolved. |
#65 is now merged, and since mosra/magnum@dac61f5, the magnum-imageconverter utility now supports passing options to it. So it can be used as a full replacement to the What's left is #70 (and BinomialLLC/basis_universal#79), but those are just minor interoperability issues, not blockers. So with that I'd consider Basis support being ready. I'm preparing a stable release with all this in the next week or so, subscribe to mosra/magnum#340 for updates. |
Basis universal is an open source GPU-oriented image format. Images are stored in a compressed format (with compressed sizes comparable to PNG) but can be transcoded to a variety of compressed GPU formats (ASTC, ETC2, BC3) or to RGBA.
This functionality allows developers to push a single asset to all platforms without worrying about which GPU compression formats are supported on the target.
The basis format itself can store multiple images and multiple mips, so it can be used comparably to DDS or KTX in functionality. In fact a single basis file can store an entire texture catalog of varying image sizes, although it would probably be reasonable to implement logic that just loads the first image in a file
The text was updated successfully, but these errors were encountered: