Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Combine .PVR files at runtime?

Discussion in 'iOS and tvOS' started by techmage, Mar 13, 2012.

  1. techmage

    techmage

    Joined:
    Oct 31, 2009
    Posts:
    2,133
    Is there any way, any method, anything, that would let you somehow take a bunch of different .pvr textures, and then put them all into one texture, at runtime, on an iPad?

    Any sort of function, or library, even just a white paper outlining how it could be possible to combine PVR textures.

    I believe there is a way with DXT textures where you can do something like this, you can combine the binary data of two DXT compressed textures together in a way as to just make them one, with little computing overhead and no need to recompress them. Is there anything like that for PVR?
     
  2. Dodzilla

    Dodzilla

    Joined:
    Nov 19, 2010
    Posts:
    14
    If you have Unity Pro I'd try using a RenderTexture.
     
  3. techmage

    techmage

    Joined:
    Oct 31, 2009
    Posts:
    2,133
    Could you explain more? I don't think that has anything to do with what I am seeking.
     
  4. Dodzilla

    Dodzilla

    Joined:
    Nov 19, 2010
    Posts:
    14
    "Is there any way, any method, anything, that would let you somehow take a bunch of different .pvr textures, and then put them all into one texture, at runtime, on an iPad?"

    You'd load the pvr textures, render them into the RenderTexture, then you can access the bitmap data from those textures. If you want to combine pvr textures then aren't you seeking the bitmap data from those textures?
     
  5. techmage

    techmage

    Joined:
    Oct 31, 2009
    Posts:
    2,133
    Id want to keep them as .pvr though, which rendertexture won't do I am pretty sure. The issue is that you can't compress to .pvr at runtime because it's too slow, and powervr has not released any source code for people to make their own compressors. So I was wondering if some technique exists to combine already pre-compressed pvr textures into a new single compressed texture.