You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NPOT textures work fine by themselves, but all miplevels higher than 0 seem to contain garbage (other textures seem to bleed into them). Maybe mipmaps are not properly aligned or are generated without taking proper stride into account? Turning on NPOT textures in Xash gives me a large memory usage decrease, so I'm interested in making this work. Both glGenerateMipmap and manual mipmap generation give the same results, which is expected.
The text was updated successfully, but these errors were encountered:
Turns out each consecutive miplevel needs to be offset from the previous not by its actual size, but by the nearest power of two of its actual size, AND the width/stride for every miplevel has to be aligned by 8 texels. I'll try to fix this tomorrow. Doesn't also save that much memory if you try to do it "correctly".
NPOT textures work fine by themselves, but all miplevels higher than 0 seem to contain garbage (other textures seem to bleed into them). Maybe mipmaps are not properly aligned or are generated without taking proper stride into account? Turning on NPOT textures in Xash gives me a large memory usage decrease, so I'm interested in making this work. Both glGenerateMipmap and manual mipmap generation give the same results, which is expected.
The text was updated successfully, but these errors were encountered: