Forums WoW Modding Support Archives WoWModding Support Archives [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"/>`

[DiscordArchive] Hey guys, how do I work with these TexCoords: `<TexCoords left=".5" right="1" top="0" bottom=".5"/>`

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
10-14-2021, 05:15 PM
#1
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?
rektbyfaith
10-14-2021, 05:15 PM #1

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?

rektbyfaith
Administrator
0
10-14-2021, 05:17 PM
#2
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&]
rektbyfaith
10-14-2021, 05:17 PM #2

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&]

rektbyfaith
Administrator
0
10-14-2021, 05:22 PM
#3
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
rektbyfaith
10-14-2021, 05:22 PM #3

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

rektbyfaith
Administrator
0
10-14-2021, 05:28 PM
#4
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!
rektbyfaith
10-14-2021, 05:28 PM #4

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!

rektbyfaith
Administrator
0
10-14-2021, 05:28 PM
#5
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
rektbyfaith
10-14-2021, 05:28 PM #5

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

rektbyfaith
Administrator
0
10-14-2021, 05:34 PM
#6
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
rektbyfaith
10-14-2021, 05:34 PM #6

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

rektbyfaith
Administrator
0
10-14-2021, 05:34 PM
#7
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.
```
rektbyfaith
10-14-2021, 05:34 PM #7

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.
```

rektbyfaith
Administrator
0
10-14-2021, 05:34 PM
#8
Archived author: Deleted User • Posted: 2021-10-14T17:34:21.164000+00:00
Original source

https://wowwiki-archive.fandom.com/wiki/XML/TexCoords
rektbyfaith
10-14-2021, 05:34 PM #8

Archived author: Deleted User • Posted: 2021-10-14T17:34:21.164000+00:00
Original source

https://wowwiki-archive.fandom.com/wiki/XML/TexCoords

rektbyfaith
Administrator
0
10-14-2021, 05:41 PM
#9
Archived author: Vlad • Posted: 2021-10-14T17:41:55.146000+00:00
Original source

https://media.discordapp.net/attachments...nknown.png
rektbyfaith
10-14-2021, 05:41 PM #9

Archived author: Vlad • Posted: 2021-10-14T17:41:55.146000+00:00
Original source

https://media.discordapp.net/attachments...nknown.png

rektbyfaith
Administrator
0
10-14-2021, 05:42 PM
#10
Archived author: Vlad • Posted: 2021-10-14T17:42:01.627000+00:00
Original source

This is why I hate texture coordinates
rektbyfaith
10-14-2021, 05:42 PM #10

Archived author: Vlad • Posted: 2021-10-14T17:42:01.627000+00:00
Original source

This is why I hate texture coordinates

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)