Thread Tools Display Modes
11-24-14, 10:15 PM   #1
fic
A Kobold Labourer
Join Date: Nov 2014
Posts: 1
Distorted textures

http://i.imgur.com/mfPAWSj.jpg

Firstly I have no idea what im doing so assume the worst.

In the top section you can see the texture that ive placed in the game as it should look. The texture file is 256x128 and the frame size in wow is 256x128, the lines are 3 pixels with 20 pixel spaces.

As I fiddle around, after a while the texture starts to resemble the latter half and I start to see gaps between bars and textures, things stop lining up properly and I spend about 3 days working backwards trying to find out what the problem is until theres nothing left T.T

I tried tying it to anti aliasing but thats just a wild guess I have no idea. Anyones time would be greatly appreciated.
  Reply With Quote
11-25-14, 01:59 AM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
1. If you have UI scaling turned on in the System Options panel, turn it off.

2. Make sure your frame is aligned on whole pixels. Only pass integers to SetPoint, and if you drag it around in-game have your OnDragStop script round the final coordinates to integers and SetPoint again.

3. Don't use SetScale on your frame, or if you do, only use scales result in integers when multiplying your SetPoint offsets.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Distorted textures


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off