Large Textures vs Small Textures

Post all UT Building, Coding, Modding, Tutorials and Non-Mapping content here!
Post Reply
User avatar
*POTS*
Posts: 2233
Joined: Fri Oct 17, 2008 8:50 pm

Large Textures vs Small Textures

Post by *POTS* » Tue Mar 23, 2010 8:12 pm

First of all, I'm not going to speak of the S3TC high resolution textures.
What puzzles me is the max allowed resolution for both stock and custom UT textures.

According to UnrealWiki, you should be able to import images up to a resolution of 1024x1024:
UnrealWiki wrote: UT

* A power-of-two number of pixels across (64x128, 256x256, ...) up to 1024x1024.
* Using 8-bit color (256 color indexed) .pcx or .bmp format.
But then I've found this:
Waffnuffly wrote:1. Note that the stock D3D renderer WILL NOT WORK with EXU; update to D3D8 or OpenGL, both of which are included. This is because the stock renderer cannot handle 512x512 textures (which is "Expletive Deleted" retarded; even the SOFTWARE RENDERER can handle them).
and also this:
Psychic_313 wrote:Also, please don't make any textures over 256x256 pixels. The Unreal engine used in UT has a
hard-coded limit of 256 pixels, and will resize anything larger to fit. If you use larger textures,
you're just wasting memory and bandwidth for no benefit - you might as well resize it yourself
before you import it.
I only say this because I've seen one skin including a 1024x1024 texture. Hmm, 16 times the normal
file and memory size - ouch!
Now not that I care that much, but bigger textures = bigger file size = waste of time and space. So who's right and who's wrong? :?
Plain Old Telephone Service

gopostal
Posts: 1396
Joined: Tue Nov 18, 2008 9:32 am

Re: Large Textures vs Small Textures

Post by gopostal » Tue Mar 23, 2010 8:19 pm

Max resolution is 1024 square according to the wiki:
http://wiki.beyondunreal.com/Legacy:Import_The_Texture

Best to always keep things at 256 max, and for God's sake use mipmaps!

User avatar
Blood Asp
Posts: 454
Joined: Thu Aug 20, 2009 11:18 am
NoMoreSpam: Silver
Location: The Skaarj Universe

Re: Large Textures vs Small Textures

Post by Blood Asp » Tue Mar 23, 2010 8:41 pm

They are all right and all wrong in different ways, Yes, the max IS 1024, anything else would crash the editor if u try to import.
No, any of the graphics can handle more than 256, just some look better visualized than others
the thing with textures 256 and under is that compressing them into the map can often lead to having dodgy looking textures and/or bad graphics, whereas with over 256 they are easily compressed and able to keep their good graphical detail, in other words you can make a 1024 texture a similar file size to a 256 if u got the proper tools.

So basically you can have anything up to 1024 at 256 colours, and it shouldnt aggrovate the size of the package too much. If u know how to do it properly
Image

User avatar
Feralidragon
Posts: 100
Joined: Thu Mar 12, 2009 4:32 am

Re: Large Textures vs Small Textures

Post by Feralidragon » Sun Apr 11, 2010 6:20 am

*Pots* wrote:
Psychic_313 wrote:Also, please don't make any textures over 256x256 pixels. The Unreal engine used in UT has a
hard-coded limit of 256 pixels, and will resize anything larger to fit. If you use larger textures,
you're just wasting memory and bandwidth for no benefit - you might as well resize it yourself
before you import it.
I only say this because I've seen one skin including a 1024x1024 texture. Hmm, 16 times the normal
file and memory size - ouch!
Now not that I care that much, but bigger textures = bigger file size = waste of time and space. So who's right and who's wrong? :?
Wrong. I don't know about the old Direct3D rendering, but at least the ones that came after don't have that problem at all. Either you use them in BSP or meshes, you get indeed more detail when you import larger textures, although I personally would advice the limit of 512x512 textures for meshes (limit I personally use for my weapons and vehicles in UT, and they get indeed much more detailed than if I used plain 256x256 ones) and a limit of 1024x1024 textures for mapping (I used 2 or 3 for an Egypt themed CTF map I made last year).

Plus I underlined the "bandwidth" because, clearlly, that guy doesn't know how this thing works and was been told by some rumour how it's supposed to work. So basically, even if you had a colossal 10.240.000x10.240.000 texture, it wouldn't affect on anything in bandwidth. Why? Because the texture is not replicated, it's downloaded instead. It only rises the filesize a bit, but even so, downloading a 100kb or a 1Gb file from a server doesn't affect "bandwidth", it just accupies some space of it during more or less time, and it keeps somewhat the same, so the "bandwidth" usage amount is not affected by filesizes nor texture resolutions. So textures don't affect bandwidth anyhow.

Regarding memory, yes, the bigger the texture, more memory it will occupy, but in that case look at our machines nowadays, any decent VCard can save all the UT textures with no space or speed problems, so you don't have to worry with "memory".

All you have to worry about is filesize. The bigger the filesize, more time it will take to load up from the HDD or download it from a server. So when mapping, if you're using a custom 256x256 texture, and you will use it always scaled down in the whole map, resize it to 128x128 or lower instead (depending on the scaling), and it will save you space on your file.
The same with skins and HUD elements: if you don't need it to be so big, resize it or make it small when doing it from scratch. For instance I have 512x512 both in weapons and vehicles, but I only use 512x512 skins when I really must o, otherwise I make my UVs so I can create the skins as 512x256, or 256x256, or even 128x128 or even lower than that, depending on how much detail I really need. Otherwise my filesizes would jump from 80Mb to 200Mb, and take a sh*t load of more time to load up.

UT doesn't have anything like that hardcoded afaik, what can limit the texture resolution is the renderer used, but generally the old D3D crashes instead of resizing, unless it has mipmaps.

Also, you can save memory and processing enabling mipmaps on texture import. Well, in case of 256x256 textures and below for SKINS and HUD, it should have indeed mipmaps disabled and lodset=2 and lodset=0 respectivelly (skin detail or no detail algorithm option, and belive me or not, it makes a use difference in texture detail on a mesh or HUD), but anything above 256x256 or even for mapping has to have ALWAYS mipmaps enabled, no matter what's used for.

In case you don't know what mipmaps are, they are "texture clones" with lower resolution from the original texture, so let's say you have a 256x256 texture and mipmaps enabled, it will save also a 128x128 copy, 64x64, 32x32, 16x16, etc, within the texture itself, used mostly by BSP surface processing when you're far from a surface, so instead of showing up the whole 256x256 set, since you're looking at it far away it might be showing its 128x128 or 64x64 version, avoiding a jittered look (that can give some headaches), and still look detailed enough, somewhat a bilinear filtering.

User avatar
Hook
Posts: 3444
Joined: Fri Feb 16, 2007 9:41 am
NoMoreSpam: Silver
Location: Minnesota USA (Just West of MPLS - by a pond beneath a tree - Dead & Buried)
Contact:

Re: Large Textures vs Small Textures

Post by Hook » Sun Apr 11, 2010 12:00 pm

Yep, I agree - always use mipmaps (have it checked when importing) for any mapping textures other than a preview screen shot. :wink:
As Gopo says also! - and so say the game designers too.
I have actually chatted with Inoxx VIA e-mail (author of Original maps such as CTF-FACE) and other members of the Unreal team of mappers quite a few times in years past.
They agree. :wink:
=Hook= of Hook's UT Place - Hopelessly Addicted to UT99!
Forum: https://hooksutplace.freeforums.net
CROSSBONES Missile Madness {CMM} (GT Top 50)
PRO-Redeemer | PRO-SNIPER-Redeemer | SEEKER-Redeemer
Birth Place of ALL Seeker/Scoped Deemers!
IP: NEW IP to come!
CROSSBONES Monster Hunt {CMH} (Special Edition MH by mars007)
IP: 108.61.238.93:7777

User avatar
*POTS*
Posts: 2233
Joined: Fri Oct 17, 2008 8:50 pm

Re: Large Textures vs Small Textures

Post by *POTS* » Sun Apr 11, 2010 6:03 pm

That's a pretty detailed explanation, I also appreciated the tips regarding skin textures; that explains why some custom skins look blurry and others look more detailed. :)

I actually believed mipmapping was some sort of interpolation. :roll:
Plain Old Telephone Service

Post Reply