Game Asset Generator logo

Game Asset Generator

by MubarakHAlketbi

The Game Asset Generator simplifies game asset creation by leveraging AI-powered generation. It enables you to create 2D and 3D game assets from text prompts effortlessly.

View on GitHub

Last updated: N/A

What is Game Asset Generator?

The Game Asset Generator is a tool that uses AI models from Hugging Face Spaces and the Model Context Protocol (MCP) to generate 2D and 3D game assets from text prompts.

How to use Game Asset Generator?

Interact with the server via an MCP client (e.g., Claude Desktop) or programmatically by submitting text prompts to the generate_2d_asset or generate_3d_asset tools. Configure the server by setting the Hugging Face API token and model space in the .env file. Install the required dependencies and run the server using Node.js.

Key features of Game Asset Generator

  • 2D Asset Generation from text prompts

  • 3D Asset Generation (OBJ and GLB formats) from text descriptions

  • Supports multiple 3D model spaces: InstantMesh, Hunyuan3D-2, and Hunyuan3D-2mini-Turbo

  • Seamless integration with MCP-compatible clients like Claude Desktop

  • Automatic file management and organization of assets with resource URIs

Use cases of Game Asset Generator

  • Rapid prototyping of game assets

  • Generating 2D sprites and pixel art

  • Creating 3D models for game environments

  • Exploring generative AI models for game development

FAQ from Game Asset Generator

What is the Model Context Protocol (MCP)?

MCP enables secure interaction with AI clients, allowing the Game Asset Generator to serve AI clients like Claude Desktop.

What are the prerequisites for running this server?

You need Node.js (version 16+), Git, Internet access, a Hugging Face account with an API token, and several NPM packages.

How do I configure the server?

Customize the server via the .env file, setting the Hugging Face API token (HF_TOKEN) and the duplicated 3D model space (MODEL_SPACE).

Where are the generated assets stored?

Assets are saved in the ./assets directory within the working directory.

What do I do if I encounter API errors?

Check your network connectivity, Hugging Face API rate limits, and review the ./logs/server.log file.