Log in or register to post comments

Issue when setting screen resolution

July 5, 2013 - 1:37am #1

Dear support,

For performances reasons, I need to modify the screen resolution of Unity player.

To do this, I am using the following method offered by Unity : 

SetResolution (width : int, height : int, fullscreen : boolean, preferredRefreshRate : int = 0) 

As soon as the resolution is modified, the background camera image displayed by vuforia is zoomed.

Is there any way to re-initialize the background for the current resolution in order to avoid this zoom effect ?

Please note that I dont have this issue when deploying on Android, it works perfectly.

Thank you again for your feedback.

Christophe Montandon.

Issue when setting screen resolution

July 5, 2013 - 10:19am #5

Thanks for sharing Christophe !

N

Issue when setting screen resolution

July 5, 2013 - 7:12am #4

Thank you for your reply N.

For people who would have the same issue, I got around this limitation while displaying the video within a texture (see  VideoTextureBehaviiour script).

Thanks to this, I managed to switch the resolution of Unity player, even on IOs.

Best regards,

Christophe.

Issue when setting screen resolution

July 5, 2013 - 3:42am #3

For performances reasons, I need to modify the screen resolution of Unity player.

Sorry, at present non-native resolutions are not explicitly supported in Unity / iOS, and we do not currently have a date for this.

 

N

Issue when setting screen resolution

July 5, 2013 - 2:05am #2

Hello again,

I've tried the following code which should do the job:

QCARRenderer.VideoBGCfgData backgroundData = QCARRenderer.Instance.GetVideoBackgroundConfig();
backgroundData.size.x = (int)(0.5F * backgroundData.size.x);
backgroundData.size.y = (int)(0.5F * backgroundData.size.y);
QCARRenderer.Instance.SetVideoBackgroundConfig(backgroundData);

But it doesn't affect anything :/

Am I missing something ?

Thanks for your reply.

Log in or register to post comments