HaxeFlixel / HaxeFlixel/flixel
FlxSprite+FlxAtlas distortions on native targets
Nobody has claimed this yet.
- Dominant language
- Haxe
- Stars
- 2.2k
- Forks
- 522
- Avg merge
- 34m
- Merged PRs (30d)
- 1
Description
- Flixel version: dev, c561696
- OpenFL version: 3.6.1
- Lime version: 2.9.1
- Affected targets: neko, windows
Hello, I've come across an issue with sprite rendering using atlases. It doesn't occur on Flash, and it doesn't occur when not using FlxAtlas nodes for sprite graphics. It seems to occur more frequently with 3x zoom, and subpixel sprite positions.
Here is a little demo that shows the issue:
https://github.com/starry-abyss/render_test_cpp
Here are some grabs from main project:
http://imgur.com/a/cqvbM
Take attention to bear's eyes, ears and honey cut into halves with diagonal corner-to-corner line (apparently, triangles in quad). Also on GIFs you can see that the frame with bear's eyes shut is rendered differently from other frames.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the linked render_test_cpp demo on the affected native targets and compare atlas sprites with Flash and non-atlas graphics. Reproduce the distortions at 3x zoom and subpixel positions; done means atlas rendering is consistent across the reported targets and frames.
Written by the indexing model from the issue text.
Assessment
- Domain
- computer-graphics, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100