Page 1 of 1

Non powers of 2 texture import

Posted: Wed Dec 07, 2022 12:18 am
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.

Re: Non powers of 2 texture import

Posted: Wed Dec 07, 2022 2:13 am
by fudgonaut
Textures must be a factor of two. For a 75x15 surface you'd need to import a 128x16 texture.

Re: Non powers of 2 texture import

Posted: Wed Dec 07, 2022 3:15 am
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.