-
- nicolashognon
- Posts: 3
- Joined:
SetWidth/Height -> Offscreen atlas texture is full
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
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
- Posts: 3
- Joined:
Re: SetWidth/Height -> Offscreen atlas texture is full
So at this time I simply call "SetOffscreenSize" with a value greater the default size.
-
-
sfernandez
Site Admin
- Posts: 3222
- Joined:
Re: SetWidth/Height -> Offscreen atlas texture is full
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.
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
- Posts: 3
- Joined:
Re: SetWidth/Height -> Offscreen atlas texture is full
Thanks for the answer.
I will look at ScaleTransform.
About version 1.3, any idea when it will be released ?
I will look at ScaleTransform.
About version 1.3, any idea when it will be released ?
Re: SetWidth/Height -> Offscreen atlas texture is full
Soon is all we can say right now. Before 1.3 beta, 1.2.6 is coming with many many improvements. : )About version 1.3, any idea when it will be released ?
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 1 guest