nicolashognon
Topic Author
Posts: 3
Joined: 15 Feb 2016, 13:27

SetWidth/Height -> Offscreen atlas texture is full

15 Feb 2016, 13:50

Hello,

I want to be able to resize a FrameworkElement at runtime.
So I use SizeWidth/SizeHeight.
When I scale up I finish by raising a error "Offscreen atlas texture is full. Can't find space for 447x447 rectangle. Please increase Offscreen size in renderer".

How can I prevent it ? Looking at the forum I understand I can set the offscreen size, but how find a good size ? Or can know the problem will occure before increasing the width/height of the element so I stop scaling up it ?

Thanks
 
nicolashognon
Topic Author
Posts: 3
Joined: 15 Feb 2016, 13:27

Re: SetWidth/Height -> Offscreen atlas texture is full

15 Feb 2016, 16:34

So at this time I simply call "SetOffscreenSize" with a value greater the default size.
 
User avatar
sfernandez
Site Admin
Posts: 3222
Joined: 22 Dec 2011, 19:20

Re: SetWidth/Height -> Offscreen atlas texture is full

16 Feb 2016, 05:44

Hi,

The offscreen size limitation is causing lots of problems and is one of the things we are changing for 1.3 version.

Meanwhile the only solution is to set the offscreen size big enough to avoid filling it. In normal conditions, a size of (2,1) should be enough to fade 2 full screen panels. If you need more than that, it probably means you are abusing opacity groups, which is not recommended as explained here.

About using FrameworkElement.Width and Height properties to scale an element, you should consider using an ScaleTransform instead (set in the UIElement.RenderTransform property), which won't require a re-Measure of your element (and probably a lot more elements).

Regards.
 
nicolashognon
Topic Author
Posts: 3
Joined: 15 Feb 2016, 13:27

Re: SetWidth/Height -> Offscreen atlas texture is full

16 Feb 2016, 09:03

Thanks for the answer.
I will look at ScaleTransform.

About version 1.3, any idea when it will be released ?
 
User avatar
jsantos
Site Admin
Posts: 4265
Joined: 20 Jan 2012, 17:18
Contact:

Re: SetWidth/Height -> Offscreen atlas texture is full

16 Feb 2016, 19:31

About version 1.3, any idea when it will be released ?
Soon is all we can say right now. Before 1.3 beta, 1.2.6 is coming with many many improvements. : )

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 1 guest