MoGraphGPT: Creating Interactive Scenes Using Modular LLM and Graphical Control
Hui Ye, Chufeng Xiao, Jiaye Leng, Pengfei Xu, Hongbo Fu
TL;DR
MoGraphGPT addresses the difficulty of generating reliable, interactive 2D scene code with LLMs by introducing an element-level modularization scheme and a central orchestrator augmented by a graphical interface. It maintains independent LLM modules for each element and a central module that manages interactions, enabling precise, graphically informed prompts and automatically generated sliders for parameter control. The paper derives insights from video tutorials and AI coding tools, proposes design considerations, and demonstrates through a comparative study and an open-ended usability study that MoGraphGPT improves ease, controllability, and refinement relative to Cursor Composer. The work suggests practical impact for non-programmers creating games, animations, and demonstrations, and outlines future directions including context management and scalability.
Abstract
Creating interactive scenes often involves complex programming tasks. Although large language models (LLMs) like ChatGPT can generate code from natural language, their output is often error-prone, particularly when scripting interactions among multiple elements. The linear conversational structure limits the editing of individual elements, and lacking graphical and precise control complicates visual integration. To address these issues, we integrate an element-level modularization technique that processes textual descriptions for individual elements through separate LLM modules, with a central module managing interactions among elements. This modular approach allows for refining each element independently. We design a graphical user interface, MoGraphGPT , which combines modular LLMs with enhanced graphical control to generate codes for 2D interactive scenes. It enables direct integration of graphical information and offers quick, precise control through automatically generated sliders. Our comparative evaluation against an AI coding tool, Cursor Composer, as the baseline system and a usability study show MoGraphGPT significantly improves easiness, controllability, and refinement in creating complex 2D interactive scenes with multiple visual elements in a coding-free manner.
