Hmm, centering a texture...

Questions and answers about the how and why of making maps.
Post Reply
User avatar
ducatiwannabe
Private First Class
Private First Class
Posts: 3249
Joined: Tue Aug 10, 2004 3:55 pm
Location: Planet Earth
Contact:

Hmm, centering a texture...

Post by ducatiwannabe » Sun Dec 17, 2006 4:31 pm

Alright, I have a box sized and located:
position 177 287.5 0
size 12.5 2 11
But I don't know how to make a texture stretch over it just once and look good. As it is, it's tiling, and not centered. I'm trying to use the texture out of the bzflag data folder...and I'll attatch it so you know which one...
Attachments
tex
tex
bzflag-256x256.png (17.62 KiB) Viewed 483 times

User avatar
knoxkorner
Private First Class
Private First Class
Posts: 112
Joined: Sat Aug 26, 2006 7:24 pm

Post by knoxkorner » Sat Jan 20, 2007 6:18 pm

you cannot stretch it if its the same size (EX: 256x256) i changed one of mine to 150x151 not much of a difference

User avatar
CannonBallGuy
Private First Class
Private First Class
Posts: 2083
Joined: Wed Apr 12, 2006 1:31 am
Contact:

Post by CannonBallGuy » Sat Jan 20, 2007 9:16 pm

A texture's dimensions should be powers of 2... 128, 256, 512, etc.
Image

Merry Christmas!

"Look, if I don't buy booze for the kids, I don't get any incriminating pictures to show to their parents, my business goes down the sink, my girlfriend leaves me and the baby goes on ebay. So help me search..."

"go Play With Toys urself in a dark alley u donkey ******" - Lt-Kirby2007

Post Reply