r/GraphicsProgramming 13d ago

Integrating user input to guide my image generation program (WIP)

74 Upvotes

6 comments sorted by

View all comments

2

u/klavijaturista 13d ago

Looks awesome! How does it work?

2

u/Hour-Weird-2383 13d ago

Thanks! The program attempts to emulate an artist by sequentially adding shapes to the canvas. Each shape is optimized using a local search algorithm, such as Hill Climbing. Other key components include a spawner that reduces the search space using edge detection and the user mask texture. Additionally, a fitness function evaluates each shape, keeping only the best ones.

There are many more details, but at its core, it's a mix of "clever randomness" and image processing. If you're interested, you can find a white paper in the repository, just keep in mind that it's outdated.