Texture bug

Status
Not open for further replies.

Metal96

Member
Hello again,

So made a few tree textures and put them on middle textures to make trees larger than sprites could handle; they've all worked but one of them. This texture is 320x544, made of four 256x136 and four 64x136 tiles. However, the texture starts repeating after 256 horizontal units (this doesn't happen vertically.) I originally had the texture made of four 320x136 chunks, and the same thing happened; I thought maybe I went over some 256-horizontal width (like the 256 height limit) that I didn't know about. Other non-128-multiple unit textures work fine, in case it helps...and it works fine in SRB2DB...screenies:

EgYyP.jpg


QGhQY.png


EDIT: Textures work fine in OpenGL. Seems to be a software bug:

ZWKn9.jpg
 
Last edited:
Textures have to have a width of a power of 2 - I think. Break it up into multiple textures, anyway, that should fix it.

Nice tree.
 
Last edited:
Probably will. Or I'll just add blank space until it's 512 px wide. And thanks :-)

EDIT: Added blank space to 512px and it works fine. A little glitchy around the edges but I'm working on a workaround for that.
 
Last edited:
Status
Not open for further replies.

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top