You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the code as it is: two objects will show up. Then activate anti-aliasing on the filter and run it again: now the second object will disappear. It's visible only during the very first frame, then it's gone.
Starling's filters draw into a texture, passing antiAliasing property is passed to 'context.setRenderToTexture. Otherwise, the antiAliasing` setting does not change any of Starling's logic. Thus, I would conclude that Stage3D has a problem when stencil masks are used while drawing anti-aliased to a texture.
BTW: on iOS, the behavior is different: the code from above displays correctly, but if you animate victim, the output becomes strange. To reproduce, append this code:
Starling developers can use the filter.resolution property instead of filter.antiAliasing. That makes Starling simply render the filter to a bigger texture, scaling it down manually.
The text was updated successfully, but these errors were encountered:
Problem Description
It was noticed that when using a mask in Starling, objects with a FragmentFilter suddenly disappear if they have
antiAliasing
enabled.Steps to Reproduce
You can reproduce this with the following simple Starling code:
Run the code as it is: two objects will show up. Then activate anti-aliasing on the filter and run it again: now the second object will disappear. It's visible only during the very first frame, then it's gone.
Starling's filters draw into a texture, passing
antiAliasing
property is passed to 'context.setRenderToTexture. Otherwise, the
antiAliasing` setting does not change any of Starling's logic. Thus, I would conclude that Stage3D has a problem when stencil masks are used while drawing anti-aliased to a texture.BTW: on iOS, the behavior is different: the code from above displays correctly, but if you animate
victim
, the output becomes strange. To reproduce, append this code:Known Workarounds
Starling developers can use the
filter.resolution
property instead offilter.antiAliasing
. That makes Starling simply render the filter to a bigger texture, scaling it down manually.The text was updated successfully, but these errors were encountered: