Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera Filters not working correctly when scrolling #2194

Closed
MiniBobbo opened this issue Nov 30, 2018 · 2 comments
Closed

Camera Filters not working correctly when scrolling #2194

MiniBobbo opened this issue Nov 30, 2018 · 2 comments

Comments

@MiniBobbo
Copy link

Haxe version: 3.4.7
Flixel version: 4.5.1 (first noticed on 4.4.1)
OpenFL version: 8.5.0 (first noticed on 8.1.0)
Lime version: 7.1.1 (first noticed on 6.3.1)
Affected targets: HTML5, CPP, maybe others


Code snippet reproducing the issue:

package;

import flixel.FlxState;

class PlayState extends FlxState
{
	override public function create():Void
	{
		super.create();
		var s = new FlxSprite();
		s.makeGraphic(100, 100, FlxColor.RED);
		add(s);
		FlxTween.tween(FlxG.camera.scroll, {y:100}, 1, {type:FlxTweenType.PINGPONG});
		FlxG.camera.bgColor = FlxColor.GRAY;
		FlxG.camera.setFilters([new BlurFilter()]);
		
	}
}

Observed behavior:
When a filter is applied to the camera and the camera scrolls, the top of the camera are not rendering correctly. I've never seen the problem on the left and right.

haxeerror

Strangely, this only happens when a sprite is scrolling off the screen. If you remove the sprite the background renders fine.

Expected behavior:

haxeerror2

@JoeCreates
Copy link
Member

This is an openfl issue openfl/openfl#2107

@JoeCreates
Copy link
Member

This is now fixed in openfl and can be closed.

@Gama11 Gama11 closed this as completed Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants