mapeditor / mapeditor/tiled

terraingenerator: output image contains copies of the entire input image

Open
#3,528 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

**Describe the bug**
When using the terraingenerator tool, instead of each tile being painted into the new image, an entire copy of the original tileset image is pasted.

(Suspect it was broken by this change: https://github.com/mapeditor/tiled/commit/7f7589e54d824fc28949f5ad914a8e5b2377f7cd#diff-c944b3b1ed7da5b5abd516d87830bafe51b96c7491a490e3a9093c5e025b8c2d )

**To Reproduce**
Steps to reproduce the behavior:
1. Create a tileset using wangtiles for the "base terrains"
2. Use `tiled.terraingenerator` to build a complete terrain set
3. Look at the output image

**Expected behavior**
Each tile combination is added to the image, instead of the entire source terrain

**Media**
Input terrain image: ![terrain_grass](https://user-images.githubusercontent.com/54027992/202908882-1f229a72-c6e7-4f63-a602-229aad72642a.png)

Output image:
![grass-full](https://user-images.githubusercontent.com/54027992/202908898-f94ffbc7-da48-4d89-b2b5-f1640d0a41ce.png)

**Specifications:**
- OS: Ubuntu 22.04
- Tiled Version: 1.9.2

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

Reproduce the issue with the listed terraingenerator steps and the linked change as the starting point for investigation. Trace how each tile combination is written to the output image; done means the output contains the generated tile combinations rather than full copies of the source terrain image.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.