|
Hello everyone, I am making an isometric game with sprites. I decided to make the textures be loaded from the HDD at startup, so people can make their own textures, and it makes it easier to see of new textures are good looking. I already implemented the possibility to load textures from the HDD, but whenever I load a texture, it is heavily compressed and looks really ugly, cropped, and streched out when using it in a GUI.DrawTexture. So my question is, how can I change the texturetype when loading a texture from a WWW call? (GUI texture format, point filter mode, 4096 max size and truecolor format to be precise) Thanks in advance.
(comments are locked)
|
|
Please use this: http://unity3d.com/support/documentation/ScriptReference/WWW.LoadImageIntoTexture.html For instance. in your case you could do: Now you can just add texture string names for each texture you wish. That still made it be strechted, but I got it to work by just adding I can't believe it was that simple. Thanks, I woudln't have found it if you didn't suggest: I am forever grateful!
Apr 11 '12 at 02:47 PM
citiral
You are very welcome mate :)
Apr 11 '12 at 04:42 PM
GuyTidhar
(comments are locked)
|

When you create the 2D texture into which you wish to download the texture, what parameters did you give it?
For instance: new Texture2D(4096, 4096, TextureFormat.DXT1, false); ???
What file type for the textures are you using?
I just initialized an array: var texturearr : Texture2D[];
and loaded the textures in like this: