Texture Filtering shows lines on models

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
User avatar
Mini--Joe
Posts: 97
Joined: Sun Jul 27, 2014 10:25 am

Texture Filtering shows lines on models

Post by Mini--Joe »

If the texture filtering is set to anything other than "none", the textures on my model do this:




It appears to be showing more of the model's texture than it should. It seems to happen when viewing from certain angles and from far away. I am new to modelling and UV mapping, and I don't understand what is doing this.
Does anyone know how to stop this from happening?
User avatar
Hipshot
Posts: 55
Joined: Wed Feb 03, 2016 1:45 pm
Location: Sweden

Re: Texture Filtering shows lines on models

Post by Hipshot »

Paste the texture, I just assume there's a white pixel row or similar outside the "dark" uvmapped area? This is not uncommon, happens in a lot of games, even modern, you just don't see it there because of the high resolution.

Like this, the white you see there might be the "face" part of the texture.
User avatar
Cherno
Posts: 1322
Joined: Tue Dec 06, 2016 11:25 am

Re: Texture Filtering shows lines on models

Post by Cherno »

Since texture filtering interpolates the pixels, there may be cases where the UV map gets "bleeding" from pixels of an unwanted adjacent color. The only thing to avoid this is to make sure that the UV mapping has extras space of at least one pixel around each area.

Return to “Assets (and other stuff)”