Tabletop Simulator

Tabletop Simulator

Anime Memory(with numbers) -Waifu Edition- v1.07
 This topic has been pinned, so it's probably important
M4he 10 Mar, 2015 @ 8:54am
UV texture mapping issue
I have to report an issue with your card textures: please see this screenshot[i.imgur.com].
At the top of any card which doesn't belong to the first row of the face texture, there's a 1px line where it visually blends into the card which is located above it in the texture.

This is not your fault, though. I ran into the same issue while creating custom card textures. It is only visible on card games that don't use bordered card images, like yours. It is an old but still unfixed UV mapping bug of TTS that fortunately can be worked around:

Let's say you have 320 x 480 cards, then the game only reads the first 479 px (original height minus 1) from the top of the face texture and then continues with 480 px steps. Thus every card is read 1 px too early from the top.
Workaround: make the first row in the face image 1px less in height, then continue with the full height for the other rows, leaving a 1px blank line at the bottom of the face texture.
I've tried this with your texture and it seems to work for this size too.


Otherwise good job on the cards and HD textures!
Last edited by M4he; 10 Mar, 2015 @ 8:55am
< >
Showing 1-7 of 7 comments
Excuritas  [developer] 10 Mar, 2015 @ 10:54am 
I knew this bug but didn't know that there was a workaround for this! Thanks, i will try to fix them now :)
Last edited by Excuritas; 10 Mar, 2015 @ 12:58pm
Excuritas  [developer] 10 Mar, 2015 @ 1:05pm 
@M4he i tried to add 1 or even 2 white rows making the image 7150x7001/7002 pixels and it didn't work. After that i tried what you told me to do and took the whole image and moved it 1 px up so it created a bottom line of 1 white px but that did not fully fix the problem eighter :/ I see some little improvements but it is not completly gone. I don't get it :/
M4he 10 Mar, 2015 @ 1:15pm 
No, don't adjust the image height! Keep it at 7000 px.
Crop the images in the first row to a height of 999, keeping the other at 1000 and leaving a blank line of 1 px at the bottom of the image (this 1px line is completely ignored by TTS).
So: 999 + 6*1000 + 1 = 7000.

You can do this easily with the finished texture:
Just take your original texture and simply move the whole image up by 1 px. This will cut 1 px from the top row and leave the other rows at full height. Ignore the emerging 1 px line at the bottom.
Excuritas  [developer] 10 Mar, 2015 @ 1:23pm 
Originally posted by M4he:
No, don't adjust the image height! Keep it at 7000 px.
Crop the images in the first row to a height of 999, keeping the other at 1000 and leaving a blank line of 1 px at the bottom of the image (this 1px line is completely ignored by TTS).
So: 999 + 6*1000 + 1 = 7000.

You can do this easily with the finished texture:
Just take your original texture and simply move the whole image up by 1 px. This will cut 1 px from the top row and leave the other rows at full height. Ignore the emerging 1 px line at the bottom.

thats what i did too, i tried both this and just enlarging the whole thing, both ways don't seem to fix it completly.
Excuritas  [developer] 10 Mar, 2015 @ 1:41pm 
@M4he its gone if you zoom in[i.imgur.com] but as soon as you zoom out[i.imgur.com] :<
Last edited by Excuritas; 10 Mar, 2015 @ 1:44pm
M4he 10 Mar, 2015 @ 1:47pm 
Okay, I had a closer look at it again. Seems like the bottom cards like Rikka or Tsukiko still have a tiny line which is almost invisible up close but still apparent when zooming out due to the way the downscaling algorithm works (it interprets the tiny line as important color information and tries to preserve it when scaling down).

I assume that especially for those card texture sizes, the 1px trick only helps to some extend. Since UV is floating point calculation, there will still be some inaccuracy if the gap is not exactly equivalent to 1px for the mapping (maybe 0.98) which will add up for each row, making it most apparent on bottom rows.
The only chance is to report this to the devs again and hope for a fix, or to use bordered cards.
Excuritas  [developer] 10 Mar, 2015 @ 1:52pm 
@M4he mhm, that sucks :/ well i would rather want to wait for a fix then since a border would kinda ruin some images :< Im doing an update for now, so atleast some cards get fixed!
PS: It shows me that you are offline Oo
Last edited by Excuritas; 10 Mar, 2015 @ 2:06pm
< >
Showing 1-7 of 7 comments
Per page: 1530 50