forked from swift502/Sketchbook
-
Notifications
You must be signed in to change notification settings - Fork 3
Examples
Igor edited this page Nov 27, 2025
·
1 revision
This page contains examples of what you can create with Sketchbook AI using natural language prompts.
Prompt: "Create a character that walks around randomly"
Generated Code Concept:
// AI generates code similar to:
let character = new Character(world);
character.setPosition(0, 0, 0);
character.addAIBehaviour(new RandomWalkBehaviour());
world.add(character);Prompt: "Spawn a red sports car"
Generated Code Concept:
let car = new Car(world);
car.setColor(0xff0000); // Red color
car.setPosition(10, 0, 0);
world.add(car);Prompt: "Create a racing track with 3 AI cars competing"
What the AI generates:
- Racing track terrain
- Multiple AI-controlled vehicles
- Race logic and waypoints
- Leaderboards and timing
Prompt: "Make a village with NPCs that greet the player"
Generated features:
- Multiple buildings and structures
- NPC characters with dialogue
- Interaction triggers
- Pathfinding between locations
Prompt: "Add a day/night cycle with rain effects"
Implementation:
- Sky shader modifications
- Lighting changes over time
- Particle effects for rain
- Audio ambience changes
- Instead of "add a car", try "add a blue Formula 1 racing car at position (5, 0, 10)"
- Include coordinates, colors, and specific behaviors
- Start with basic elements: "create a cube"
- Then enhance: "make the cube bounce when clicked"
- Finally polish: "add particle effects when the cube bounces"
- Reference existing objects: "make the character from before drive the new car"
- Build relationships: "connect these two buildings with a path"
- "The character should patrol between these points"
- "The vehicle should follow the player but keep distance"
- "This object should react to physics collisions"
- If the AI generates invalid code, try rephrasing your prompt
- Be more specific about what classes/methods to use
- Check the browser console for error messages
- Large scenes may cause slowdown - try "optimize the scene for performance"
- Too many AI agents can impact framerate - reduce count or simplify behaviors
- Use "debug the [specific behavior]" to get the AI to analyze and fix issues
- Try "simplify the code" if things get too complex