Tabletop Simulator

Tabletop Simulator

Anime Memory(with numbers) -Waifu Edition- v1.07
 此主题已被置顶,因此可能具有重要性
M4he 2015 年 3 月 10 日 上午 8:54
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!
最后由 M4he 编辑于; 2015 年 3 月 10 日 上午 8:55
< >
正在显示第 1 - 7 条,共 7 条留言
Excuritas  [开发者] 2015 年 3 月 10 日 上午 10:54 
I knew this bug but didn't know that there was a workaround for this! Thanks, i will try to fix them now :)
最后由 Excuritas 编辑于; 2015 年 3 月 10 日 下午 12:58
Excuritas  [开发者] 2015 年 3 月 10 日 下午 1:05 
@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 2015 年 3 月 10 日 下午 1:15 
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  [开发者] 2015 年 3 月 10 日 下午 1:23 
引用自 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  [开发者] 2015 年 3 月 10 日 下午 1:41 
@M4he its gone if you zoom in[i.imgur.com] but as soon as you zoom out[i.imgur.com] :<
最后由 Excuritas 编辑于; 2015 年 3 月 10 日 下午 1:44
M4he 2015 年 3 月 10 日 下午 1:47 
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  [开发者] 2015 年 3 月 10 日 下午 1:52 
@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
最后由 Excuritas 编辑于; 2015 年 3 月 10 日 下午 2:06
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50