[DiscordArchive] Hey guys, how do I work with these TexCoords: `<TexCoords left=".5" right="1" top="0" bottom=".5"/>`
[DiscordArchive] Hey guys, how do I work with these TexCoords: `<TexCoords left=".5" right="1" top="0" bottom=".5"/>`
Archived author: Deleted User • Posted: 2021-10-14T17:15:16.589000+00:00
Original source
Hey guys, how do I work with these TexCoords: `<TexCoords left=".5" right="1" top="0" bottom=".5"/>`, how do I know which ones do I have to set on my .blp?
![[Image: unknown.png?ex=690c2f85&is=690ade05&hm=f...e5b419e1a&]](https://cdn.discordapp.com/attachments/415944535718494208/898258339845251112/unknown.png?ex=690c2f85&is=690ade05&hm=f0cf615e340a51d3371c0090e01e3d3e2356d9931b22529a5e7810be5b419e1a&)
Archived author: Titi • Posted: 2021-10-14T17:17:57.555000+00:00
Original source
I made this paint when working with them cuz I get confused everytime
![[Image: unknown.png?ex=690c2f85&is=690ade05&hm=f...e5b419e1a&]](https://cdn.discordapp.com/attachments/415944535718494208/898258339845251112/unknown.png?ex=690c2f85&is=690ade05&hm=f0cf615e340a51d3371c0090e01e3d3e2356d9931b22529a5e7810be5b419e1a&)
Archived author: Titi • Posted: 2021-10-14T17:22:39.344000+00:00
Original source
the values are just a percentage, since X is wider it only increase by 0.125, if you're working with a square BLP then it's probably just 0.5,0.5 or whatever for each
Archived author: Deleted User • Posted: 2021-10-14T17:28:26.721000+00:00
Original source
To add onto what Titi said, the fix ended up being that the spell family needed to be defined in the core, using the number 18 and defining that SpellFamily made the talent and ability finally work Thanks guys!
Archived author: Deleted User • Posted: 2021-10-14T17:28:45.227000+00:00
Original source
12 was taken by some other junk, which interfered with it
Archived author: Deleted User • Posted: 2021-10-14T17:34:00.260000+00:00
Original source
Titi thank you for your quick answer, tho I have already fixed my issue
Archived author: Deleted User • Posted: 2021-10-14T17:34:12.465000+00:00
Original source
By following this:
```
Calculating Pixels to UV
To pull in a specific part of a sprite sheet, you need to translate the pixel locations to the proper UV coordinates. To do this:
Note the image file's total width and height, in pixels.
Determine exactly what part of the image you want to use. Open the image in the image editor of your choice. Zoom in around the specific area and find the upper-leftmost pixel of the area you wish to use, note the coordinates of that pixel. Do the same for the bottom-rightmost pixel (This is easiest in an editor like Photoshop, GIMP, or Paint.Net, but you can do this even in MS Paint).
Take the X-coordinate of the top-left pixel, and divide it by the image width.
Add 1/<image width> to the value you just calculated. This is your U-coordinate for the top attribute.
Repeat those two steps, but instead divide the Y-coordinate by the image height and add half of 1 ÷ <image height> to get the V-coordinate for your the left attribute. This little bit of addition prevents other parts of the sheet from bleeding into your texture.
Repeat these three steps with the bottom-right pixel to get the values for the bottom and right attributes, except instead of adding the half-1 ÷ height/width, subtract it.
```
Archived author: Deleted User • Posted: 2021-10-14T17:34:21.164000+00:00
Original source
https://wowwiki-archive.fandom.com/wiki/XML/TexCoords
Archived author: Vlad • Posted: 2021-10-14T17:41:55.146000+00:00
Original source
https://media.discordapp.net/attachments...nknown.png
Archived author: Vlad • Posted: 2021-10-14T17:42:01.627000+00:00
Original source
This is why I hate texture coordinates