Now Reading
Modding Age of Empires II with a Sprite-Diffuser – ENGINE

Modding Age of Empires II with a Sprite-Diffuser – ENGINE

2023-05-21 18:14:26

Final month I got down to create a approach for my mates to make customized civilization sprites for our Age of Empires II lobbies.

Beneath are some ideas and course of on find out how to create a flexible prompt-based picture generator. For rookies I’d suggest Alpaca, and for these snug with coding – Stable Diffusion Web UI and Python.

Particular because of the AoEII modding communities OpenAge, SLX Studio, and Age of Kings Heaven.

Visible Explorations

Screenshot Transfers

This concept took place whereas taking part in with picture switch (img2img) on Age of Empires II screenshots. All of the methods described under use the Steady Diffusion generative “AI” (which I additionally seek advice from because the mannequin or community).

I began in Photoshop with Alpaca and labored on full sport screenshots. Largely what I used to be searching for was how the mannequin behaved, what shapes and textures it selected to protect and what it discarded in its stylistic wanderings. Total it managed to remain in perspective and theme fairly properly.

Age of Empires II in anime, Martian, painterly, and different kinds.

What was instantly fascinating was how components of the picture began working collectively. Tiled terrain gave strategy to roads and paths – there’s communication between the buildings and setting. For now we are going to solely be working with constructing sprites – however it demonstrates that machine studying may very well be an excellent software for mixing procedural components of a sport.

The Caspar David Friedrich Benchmark

Following this I prompted the community to output photographs right into a strongly isometric perspective, trying to get constant outcomes throughout lighting, shade, form, and texture.

Some actually superior outcomes, because the energy of the picture switch will increase, components of the minimap and UI would develop into different buildings or terrain.

Sprite-Diffuser

Anime Loyalists vs. Moon Colonists vs. Zombie Romans

Now it was time to make some civilizations.

When producing the mannequin requires 512×512 photographs, fortunately all of the Age of Empires II sprites are about half that so we don’t have to fret about resizing. These have been the primary outcomes.

These buildings have been cherrypicked and cleaned in Photoshop and weren’t batched. So as to get numerous outcomes the energy of the picture switch was set very excessive, however because of this the lighting, proportion, and stage of element various enormously. The citadel asset (left) would proceed to be a ache level as it’s 2x bigger most buildings, however the community would insist it was an outsized home.

Refining Outputs with Management Internet and Loopbacks

To get constant outcomes whereas having a excessive switch energy I wanted to make use of Management Internet, a system that guides technology utilizing enter like lineart, depth, or segmentation.

At this level every little thing labored, sprites stayed in perspective and listened to the immediate, however they didn’t be imaginative or sudden. This may’t be solved by making the immediate energy extraordinarily excessive, the lighting or shade will begin to differ an excessive amount of, management internet can not assist there.



Source Link

What's Your Reaction?
Excited
0
Happy
0
In Love
0
Not Sure
0
Silly
0
View Comments (0)

Leave a Reply

Your email address will not be published.

2022 Blinking Robots.
WordPress by Doejo

Scroll To Top