Common Texture Mistakes: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Gildoran (talk | contribs)
No edit summary
Gildoran (talk | contribs)
No edit summary
Line 2: Line 2:


--[[User:Gildoran|Gildoran]] 22:18, 24 August 2006 (CDT)
--[[User:Gildoran|Gildoran]] 22:18, 24 August 2006 (CDT)


; Not using exponent-of-2 image dimensions : Any images used by your textures need to have dimensions that are of the form ''2^x'' since those are the only sizes that graphics cards can accept.
; Not using exponent-of-2 image dimensions : Any images used by your textures need to have dimensions that are of the form ''2^x'' since those are the only sizes that graphics cards can accept.

Revision as of 03:19, 25 August 2006

I've noticed certain mistakes are made by a lot of new or even experienced texture artists, so I thought I'd list them here in the hopes that it might prove helpful.

--Gildoran 22:18, 24 August 2006 (CDT)

Not using exponent-of-2 image dimensions
Any images used by your textures need to have dimensions that are of the form 2^x since those are the only sizes that graphics cards can accept.

Such sizes include: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, etc If an image has a weird size like 300x100, D3 will resize it down to the nearest exponent of 2 (300x100 would become 256x64) resulting is lost image quality.

Lighting baked into the diffusemap
One of D3's big advantages is its fully-dynamic lighting with bumpmapping and specular highlights... a texture that properly uses these features can look very realistic, especially since its lighting always matches the situation it is used in. Unfortunately, gone are the days of just taking a photo and making it tilable; care must be taken to ensure that the lighting information comes from the normalmap rather than the diffusemap. The diffusemap must not be lit from any one direction, or it interferes with the normalmapping, causing the texture to look ugly when lit from new directions. Taking photos on cloudy days helps. Photos of walls are particularly prone to problems, since they're often lit from above by the sky. If you can flip your photo in any direction without the direction of the light appearing to change, it probably has good lighting.
Having apparent repetitions
The human brain is designed to be good at finding patterns. Unfortunately, this makes it very easy to notice a tiled texture, ruining suspension of disbelief for things like cobble floors, irregular stone walls and dirt. Often the differene between a mediocre texture and a great one is how well it tiles without being noticed. Special/interesting features that stand out tend to draw a player's attention towards the fact that the texture is repeating. Slightly monotonous textures, on the other hand, often have their repetition go unnoticed. It may be a good idea to leave features to things like decals and models.