HaxeFlixel / HaxeFlixel/flixel

FlxSprite+FlxAtlas distortions on native targets

Open
#1,861 70 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.