decentraland / unity-explorer

Apache License 2.0
9 stars 10 forks source link

Some wearables textures are not properly displayed #506

Closed olavra closed 7 months ago

olavra commented 7 months ago

In the backpack, when equipping some particular wearables, the textures seem to be wrong. I was not able to got it on video, but I've seen this hat with 3 different sets of textures while equipping and unequipping.

https://github.com/decentraland/unity-explorer/assets/41490935/000df68f-389c-4e10-bc83-4ee92b056e80

GBirch33 commented 7 months ago

The error at the bottom highlighted that the texture size does not fit the texture array, as the system scales automatically it would suggest that the texture isn't power of two, so with this theory Juani managed to confirm and has made a few basic hacky changes and it does indeed fix the issue. The solution will require more work, but it's not a great solution but good enough to get by for now. However Juani and I have spoken about controlling the texture sizes and compression etc in the asset bundle convertor, the best solution is to have merge 4x 256x256 into one 512x512 texture slot, then have UV offsets set into shader variables.

anicalbano commented 7 months ago

Fixed with #577