- Home /
Changing scale of WebCamTexture
I'm trying to invert the scale of a WebCamTexture whenever a device changes orientation so that the captured image has always the right orientation. I'm facing a problem where whenever I change the scale the texture is stretched.
It's exactly the same problem related in this question: http://answers.unity3d.com/questions/51374/gui-and-npot-textures-blur-when-tiling-is-negative.html?sort=oldest
However changing the wrap mode didn't solve it for me.
Thanks,
Answer by SantosR · Feb 14, 2014 at 09:49 PM
Just found out that when scaling NPOT (non power of two) textures it is necessary to add change the offset value.
In my case where the scale values were -1, the offset had to be set to 1. No offset changes are necessary if using POT textures.
Thanks,
Your answer
Follow this Question
Related Questions
Dynamic Texture Tiling 1 Answer
Texture tiling based on Object size/scale 4 Answers
How can I tile a texture on a Skybox? 2 Answers
How do I set pixels with WebCamTexture.GetPixels 1 Answer
Texture2D Width problem - C# Android school project 2 Answers