|
Is it possible to download textures which are 16bits into a 16bits texture directly? Right now, when its downloaded its always 32 bits. Which is silly, since I want the 16bits. SO I need to convert it to another texture... Can it be done in one go?
Feb 21 '11 at 04:09 PM
rudolfwm
(comments are locked)
|
|
You could use an AssetBundle to download assets exactly as you imported them into Unity. Why do you require your textures to be in 16 bit format? Edit: AssetBundles are indeed a Pro only feature. But, to save memory, compressed textures are much more useful then 16-bit textures anyways, as they are smaller and natively supported by the GPU. compressed textures can be loaded using WWW.LoadImageIntoTexture! Its for the iPhone. I need to save memory. Unfortunately I need to download textures from a website. I can only preprocess them with a .NET tool I build for this purpose.
Feb 22 '11 at 07:52 AM
rudolfwm
IS there a way to generate on your own (outside of Unity) assetbundles? (I guess not since its a Pro feature)
Feb 22 '11 at 07:57 AM
rudolfwm
I edited my answer with more information based on your comments.
Feb 22 '11 at 09:28 AM
jonas echterhoff ♦♦
(comments are locked)
|
|
No, 16-bit is not supported for downloads through WWW. There's no such thing as a 16-bit JPG or PNG anyway. Good point, I would like to point out the following though: I use a .NET tool to download and process images from a website that I need in the app. When I set the bitformat to System.Drawing.Imaging.PixelFormat.Format16bppRgb565 the SIZE of the fileis 92.7 Kb versus 172.3 Kb when I use the default format. Based on this I assumed (perhaps wrongly) that there is such a thing as 16bits .jpg, otherwise I cant explain it.
Feb 22 '11 at 07:51 AM
rudolfwm
(comments are locked)
|
