{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/KTX/issues/8","labels_url":"https://api.github.com/repos/KhronosGroup/KTX/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/KTX/issues/8/comments","events_url":"https://api.github.com/repos/KhronosGroup/KTX/issues/8/events","html_url":"https://github.com/KhronosGroup/KTX/issues/8","id":83688753,"number":8,"title":"Feature request: Texture loading without OpenGL context","user":{"login":"TheOnlyJoey","id":1831986,"avatar_url":"https://avatars.githubusercontent.com/u/1831986?v=3","gravatar_id":"","url":"https://api.github.com/users/TheOnlyJoey","html_url":"https://github.com/TheOnlyJoey","followers_url":"https://api.github.com/users/TheOnlyJoey/followers","following_url":"https://api.github.com/users/TheOnlyJoey/following{/other_user}","gists_url":"https://api.github.com/users/TheOnlyJoey/gists{/gist_id}","starred_url":"https://api.github.com/users/TheOnlyJoey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheOnlyJoey/subscriptions","organizations_url":"https://api.github.com/users/TheOnlyJoey/orgs","repos_url":"https://api.github.com/users/TheOnlyJoey/repos","events_url":"https://api.github.com/users/TheOnlyJoey/events{/privacy}","received_events_url":"https://api.github.com/users/TheOnlyJoey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-01T20:53:52Z","updated_at":"2015-06-04T10:07:17Z","closed_at":null,"body":"I am currently working on KTX support for Blender together with a developer from the Blender Institute and came across the issue that it does not seem to be possible to load a KTX texture without having access to a OpenGL context.\r\n\r\nSince some libraries will not have access to this (library files, loading in background thread etc) I would request a method of loading the texture in raw data so it can be used in all cases.\r\n\r\nFor people interested, a patch for Blender can currently be found on https://developer.blender.org/rB5e060bed27bd3e2a5e75f0c16ea65dc4534fdf04"},"comment":{"url":"https://api.github.com/repos/KhronosGroup/KTX/issues/comments/108821751","html_url":"https://github.com/KhronosGroup/KTX/issues/8#issuecomment-108821751","issue_url":"https://api.github.com/repos/KhronosGroup/KTX/issues/8","id":108821751,"user":{"login":"msc-","id":2244683,"avatar_url":"https://avatars.githubusercontent.com/u/2244683?v=3","gravatar_id":"","url":"https://api.github.com/users/msc-","html_url":"https://github.com/msc-","followers_url":"https://api.github.com/users/msc-/followers","following_url":"https://api.github.com/users/msc-/following{/other_user}","gists_url":"https://api.github.com/users/msc-/gists{/gist_id}","starred_url":"https://api.github.com/users/msc-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msc-/subscriptions","organizations_url":"https://api.github.com/users/msc-/orgs","repos_url":"https://api.github.com/users/msc-/repos","events_url":"https://api.github.com/users/msc-/events{/privacy}","received_events_url":"https://api.github.com/users/msc-/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T10:07:17Z","updated_at":"2015-06-04T10:07:17Z","body":"The proposed solution would not need OpenGL calls. Those would only be made by the default callbacks, which you would be overriding with your own.\r\n\r\nI think you still do not understand the complexity of OpenGL textures. It is not just R/RG, etc. There is also the data type, including floats, and some textures are not image data at all and may require some sort of filtering to make a suitable visual representation.\r\n\r\nRegarding the compressed formats I do not know if there are open source decompressors available for all the supported formats. Even the ETC decompressor, the only one currently included in libktx, is not open source. The license restricts how it may be used. I think ARM may have an open source decompressor for ASTC. I don't know about any of the other compressed formats. Any that are available can be added to libktx guarded by #ifdefs like ETC.\r\n\r\nYour opening comment makes me wonder if you realize the whole point of compressed texture formats is that they remained compressed. The needed texels are decompressed on the fly during sampling. Decompressed images are never stored."}}