Non powers of 2 texture import

Discussions about Coding and Scripting
User avatar
Posts: 154
Joined: Mon Jan 24, 2011 3:22 am
Personal rank: Codezilla

Non powers of 2 texture import

Post by The_Cowboy »

Since mip-map is irrelevant in the context I am working in, I was wondering if there is a way to import the textures of the resolution 72 * 15 (pixels) types, via code, like so

Code: Select all

#exec Texture Import File=Textures\04_SHOCK08.pcx  Name=ANEShock0    Mips=off
The Engine (469c release) is still giving me pain with the import.
Feralidragon wrote:Trial and error is sometimes better than any tutorial, because we learn how it works for ourselfs, which kills any doubts about anything :tu:
User avatar
Posts: 344
Joined: Sat Oct 05, 2013 7:20 am
Personal rank: Easy Target
Location: "The Butthole of the World"

Re: Non powers of 2 texture import

Post by fudgonaut »

Textures must be a factor of two. For a 75x15 surface you'd need to import a 128x16 texture.
Posts: 2148
Joined: Sat Mar 21, 2020 5:32 am

Re: Non powers of 2 texture import

Post by Buggie »

Some work about NPOT (Non Power Of Two) has be done, but not include in v469c. Possible it appear in v469d.
But in general you better avoid NPOT textures. It can hurt old clients even if v469d allow import it.

Current D3D9 driver not able handle NPOT textures properly. And this always be since even if it be fixed for D3D9 v436 not all users update their clients.