Skip to content

Rendering artifacts #1552

Closed
Closed
@Nordsoft91

Description

@Nordsoft91

While rendering of tiles I'm observing graphical artifacts:
Снимок экрана 2023-12-28 в 17 37 48

I use tiles 32x32 pix and place them one by one as Sprite instances in same layer in the same z-order.

UPD:

  • MacOS M1
  • axmol 2.1.0-rc7

Steps to reproduce:

  1. Copy image attached to content folder (or use any image with alpha transparency, but on first example above I used image without alpha channel)
    grid_color
    2.. add following code into scene::init
for(int j = 0; j < 20; ++j)
{
	for(int i = 0; i < 20; ++i)
	{
		auto * s = ax::Sprite::create("grid_color.png", ax::Rect(192, 0, 32, 32));
		s->setPosition(i * 32, j * 32);
		addChild(s);
	}
}

Expected result: seamless colored rectangle
Actual results: grid appeared
Снимок экрана 2023-12-30 в 23 44 52

Metadata

Metadata

Assignees

No one assigned

    Labels

    HelpDeskdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions