Improve LLM prompts with Ogre3D material reference and available textures#105
Merged
fernandotonon merged 2 commits intomasterfrom Feb 3, 2026
Merged
Improve LLM prompts with Ogre3D material reference and available textures#105fernandotonon merged 2 commits intomasterfrom
fernandotonon merged 2 commits intomasterfrom
Conversation
…ures - Enhanced system prompt with comprehensive Ogre3D material attributes: - Pass attributes (ambient, diffuse, specular, emissive, lighting, blending, etc.) - Texture unit attributes (texture, filtering, addressing, transforms, etc.) - Multiple examples (textured, transparent, animated materials) - Added available textures context to prompts: - Gets list of textures from Ogre's TextureManager - Filters out internal Ogre textures (RTT, Ogre/, etc.) - Instructs LLM to only use textures from the available list - Limits to 50 textures to avoid prompt bloat - Improved retry logic to include texture list on validation failures This helps the LLM generate valid material scripts that reference actual project textures rather than non-existent files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Simplified system prompt to focus on basic color operations - Added explicit rule: "Do NOT add texture_unit unless specifically asked" - Textures list only included when prompt contains texture-related keywords (texture, image, map, .png, .jpg, etc.) - Clearer color reference with simple RGB values - Bump version to 2.1.1 This fixes the issue where the LLM was adding unwanted textures for simple color change requests. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Enhanced System Prompt
Added comprehensive documentation for:
Available Textures Context
Improved Retry Logic
Benefits
Related Issues
Test Plan
🤖 Generated with Claude Code