terraingenerator: output image contains copies of the entire input image
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: 
Output image:

**Specifications:**
- OS: Ubuntu 22.04
- Tiled Version: 1.9.2
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
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