Topic locked

Stretched GUITextures

July 25, 2011 - 4:01am #1

I'm having some issues using GUITextures. Whenever I have a normal scene (without AR) they show up just fine, but when using AR they all get vertically streched. The streching changes when switching between different Camera Device Modes (default, optimize_speed etc.), but I cannot get them nice and square. I suspect this has something to do with the camera image being set to a different aspect ratio then my device screen and thus stretching my GUI in the process, but I cant quite tell for sure. Is there any way to fix this? I am using a HTC Desire and a HTC HD2 running on android, both with a native resolution of 800x480.

Stretched GUITextures

June 20, 2014 - 5:39am #6

Hi VGSIprog ,

the issue you are observing with GUITexture is connected to the use of the VideoPlayback feature and is discussed in this thread:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/guitexture-aspect-ratio-gets-stretched-during-texture-v

Please follow up in that thread, where the solution is also provided.

 

 

Stretched GUITextures

June 18, 2014 - 10:41am #5

We're having the same stretched GUI texture, when we play video-on-texture with vuforia.

 

However, the  TrackerBehaviour script mentionned in that other thread seems to have been removed in favor to some other package.

 

Those stretched GUI textures ruins our user interface. Is there anything that can be done about it?

 

Thanks

Re: Stretched GUITextures

July 26, 2011 - 12:35am #4

Excellent!
That thread didnt show up during my search, but it works nicely.
Thanks!

Re: Stretched GUITextures

July 25, 2011 - 2:56pm #3

You're exactly right, this is an issue with the camera aspect ratio not matching the screen aspect ratio. See this thread for a fix: http://ar.qualcomm.at/node/2000543

- Kim

Re: Stretched GUITextures

July 25, 2011 - 11:56am #2

Hello,

Can you post a screenshot of what you are seeing?

Thank you,

-Peter

Topic locked