惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
博客园 - Franky
Martin Fowler
Martin Fowler
U
Unit 42
阮一峰的网络日志
阮一峰的网络日志
Recent Announcements
Recent Announcements
The Cloudflare Blog
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
宝玉的分享
宝玉的分享
J
Java Code Geeks
B
Blog RSS Feed
博客园 - 三生石上(FineUI控件)
MongoDB | Blog
MongoDB | Blog
腾讯CDC
博客园_首页
博客园 - 司徒正美
D
DataBreaches.Net
I
InfoQ
GbyAI
GbyAI
IT之家
IT之家
罗磊的独立博客

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Brute force can't compete with better ideas
Zeid Diez · 2026-04-30 · via DEV Community

I had a peculiar problem trying to have AI generate a tileset for use in developing 2D games as a placeholder and I think it taught me a bit of a lesson. I think we need to think of how these models handle things beyond the simple benchmarks or the idea that they all do pretty much the same thing.

The Prompt:

"Create a top-down, 32x32 pixel art tileset for a 2D RPG town scene similar to games like a link to the past and final fantasy. Include grass, dirt, pavement, sidewalk, cars and various objects and water tiles. Create a clear, orderly sprite sheet with sharp, 1-pixel outlines and a consistent 16-color palette. Include some city assets as well as a building that says 'About me', a building that says 'Projects' and a building that says 'Get in touch', make the buildings look appropriate to their name."

The Gemini Attempt

Gemini's tileset

I tried gemini (Using nano banana I assume, free account on web app) first and it took a while to get it to make proper perspective that didn't look like it was pulled directly off a major copyrighted work (In this case stardew valley).

Eventually I also found that Gemini seems to be bound somehow to make images across the whole canvas only, unable to specify that we want for example 32x32 pixel tiles in a 512x512 canvas, for example.

The ChatGPT Attempt

ChatGPT

I then tried ChatGPT (in free mode, webapp) who had a similar issue, but more readily understood the needed perspective and tiles.

ChatGPT then let me know that it had the same issue when generating individual parts within a canvas, and could not ensure that my canvas would be the size I requested.

The Grok Attempt (for what it's worth)

Grok

Grok (in free mode on webapp) generated multiple blank images and then informed me that I had reached my quota. Nice.

The Z.ai Anomaly

Z.ai

Then I tried z.ai (free, using GLM 5 Turbo) and it immediately set out to do things differently by creating a site where each tile was being generated pixel by pixel.

And while I'll admit that the images produced were much more rudimentary they were the only tiles which were indeed 32x32 pixels.

DISCLAIMER: I got this HTML code from the 'thinking' section as I think the free token limit was hit or something because there was no output outside of thinking. Furthermore the site did not actually work, and the color palette also did nothing. You be the judge as to whether this should disqualify z.ai or whether that even addresses the difference in approach here.

In conclusion - I saw some 'smart' models handle the problem by attempting to brute force methods which were ineffective be beaten by a more elegant thought process.