Quantcast
Channel: Latest Questions by username132323232
Viewing all articles
Browse latest Browse all 58

Weird texture stretching problem.

$
0
0
I'm making a 2D game and struggling with a weird problem with using texture on a quad. The actual scenario is more involved, but I was able to reduce it to these simple steps: 1. Create a 512x512 background .png image and drop it into the Assets folder. A sprite texture is created. 2. Create a quad and set its size to 30x30x1. 3. Drop the sprite texture into the quad Inspector area. Now the image is displayed on the quad. 4. Add offset 0.2 to the texture. The image shifts by 20% and wraps inside the quad. **So far so good. The weird part follows.** 5. Go to the image import settings, change format to Truecolor and hit "Apply". Now part of the image is lost. It seems that a one-pixel column is **stretched**. 6. Try to go back to format Compressed and observe that the image is **still distorted**. I'm new to Unity, so please let me know am I doing something wrong or is it a bug? ![alt text][1] [1]: /storage/temp/37920-texture_question.png

Viewing all articles
Browse latest Browse all 58

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>