Creator Notes
Tripo to Godot: Turn an AI 3D Model into a Playable Prop
Author
Lunah
Date Published

::blockquote
This tutorial follows one prop from an AI-generated 3D model to a working interaction. I used Tripo, Blender, and Godot to turn a red-and-white clay mushroom into something the player can pick up, set into a socket, and use to raise a nearby step. Copy the English prompt, the mesh-reduction snippet, and the Godot code below. The path runs from the downloaded high-poly GLB to a desktop build you can actually play.
::
Please Leave the Name Blank is a fairytale game about an afternoon tea where a seat has been saved for you. You choose the heroine's outfit, take a photo, then enter the tearoom and meet four attendants.
::media-caption
---
media: $media__6ad705ab0165290334809d5f
---
::
The game combines two visual styles and two mediums: the dress-up sequences and character conversations use 2D animation, while players explore the tearoom and interact with props in a 3D environment. Cream-colored walls, blue curtains, antique-gold decorations, and rounded clay props make the room feel like a handmade fairytale setting, filled with objects that look as though you could reach out and touch them. Players can trigger dialogue and changes in the scene with just a few simple actions.
This tutorial focuses on Mushroom Corner, one of the interactive areas in the game. I'll explain how I used GPT-6 Astra, Tripo, Blender, and Godot to turn an initial design idea into a working puzzle that players can interact with.
In the finished version, the player approaches Mushroom Corner and enters interaction mode, picks up the mushroom, and places it in a leaf-patterned socket. The mushroom lines up with the socket, drops into place, and bounces gently. The nearby platform then slowly rises, and the corresponding dialogue plays.
::media-caption
---
media: $media__6ad708a8016529033480de2e
---
::
## From Model to Mechanism: The Full Workflow
I began by deciding what actions the player would take, then divided the mechanism into parts that could be controlled separately. Next, I generated the model with Tripo, inspected it, made adjustments, and reduced its polygon count in Blender. Finally, I added the interaction logic in Godot and tested everything in the game scene.
GPT-6 Astra helped turn my Chinese requirements into prompts and assisted with scripts and game logic. To judge whether the design suited the tearoom and whether the controls felt natural, I still needed to see the prop in the scene and try the interaction myself.
Before starting, you'll need Godot, Blender, and a Tripo account that allows you to generate and download models. For this project, I used the Tripo plugin for Codex and the Tripo API.
There are four production stages, then a separate test pass:
1. Define the Mechanism, Then Split It into Controllable Parts
2. Generate the High-Poly Mushroom in Tripo from a Reference and a Prompt
3. Inspect, Repair, and Optimize the Model in Blender, Then Build a Separate Socket
4. Hook Up Pickup, Socket Placement, the Rising Step, and Dialogue in Godot
5. Test Cancel, Retry, Repeated Actions, and How It Fits the Scene
### 1. Define the Mechanism, Then Split It into Controllable Parts
I first asked GPT-6 Astra to build a rough version of the entire tearoom in Blender. We worked out where to place the table, how to arrange the four corners, and how much room the player needed to walk around before replacing the placeholder props one at a time.
This meant I could always judge an interactive object's size, color, and position within the actual scene. It helped avoid a common problem: a model looks good on its own but feels out of place when added to the room.
::media-caption
---
media: $media__6ad7060d016529033480a119
---
::
Mushroom Corner is beside the window at the back left of the room. After approaching the display stand, the player places the mushroom in the leaf-patterned socket, causing a platform beside them to rise slowly. This is a relaxed interaction rather than a jumping challenge: players do not need to make difficult jumps, and mistakes are not penalized. Once the platform has risen, players can stand on it for a slightly higher view of the room, then simply walk back down.
To make this sequence work, the mechanism needs three parts that can be controlled separately. They can be stored in the same scene or GLB file, but they must not be combined into a single mesh that prevents you from controlling each part on its own.
- **Mushroom**—a movable prop: It needs its own collision detection and must respond to clicks. Keep the lower stem as smooth and even as possible, and make sure the bottom is closed so it can fit neatly into the socket.
- **Socket**—a fixed base: It stays attached to the display stand. Size it to fit the mushroom stem, leaving a little clearance, and define a specific position inside it where the mushroom will come to rest.
- **Platform**—a movable part of the environment: It must be separate from the fixed display stand so it can move on its own. It starts level with the floor and rises by 0.32 meters when the player activates the mechanism.
You can start by giving your AI agent this instruction:
::blockquote
The player picks up the mushroom and places it in a fixed socket, which then makes the platform rise. List which parts need to move on their own, which need to respond to clicks, and which need their own collision detection. First get the sequence working with placeholder models, then replace them with the finished art assets.
::
### 2. Generate the High-Poly Mushroom in Tripo from a Reference and a Prompt
The mushroom follows the tearoom's handmade clay fairytale style. It has a thick coral-red cap, raised cream-colored spots, pale gills, a softly rounded ring around the stem, and a sage-green leaf pattern in relief on the stem.
For this model, I used a reference image created with Codex and an English prompt. You can use the prompt below as a reference, but the same prompt will not necessarily produce the same model. If you try this yourself, use a reference image you have permission to use.
::media-caption
---
media: $media__6ad706e2016529033480a6a1
---
::
I first described the design and modeling requirements in Chinese, then asked GPT-6 Astra to turn them into an English prompt. Here is a reusable version of that brief:
> Design a clay mushroom that players can pick up in an afternoon tearoom. It should have a red cap, cream-colored spots, and a rounded shape. Keep the lower stem clear of details and the bottom flat so it can fit into a socket that will be made separately. Generate a single mushroom only, with no base, ground, or additional mushrooms. Turn these requirements into a prompt for Tripo, and list what I should check after downloading the model.
The screenshot below shows the original conversation from this project. The brief above is a revised example based on the same requirements, written to make it easier to reuse.
I generated the model using Tripo v3.1, with the geometry quality set to ultra-high definition and 4K PBR textures enabled. After I downloaded the model, Codex used Computer Use to help me work in Blender: adjusting the back of the mushroom, reducing its polygon count, fitting the socket, and checking the model in the scene.
The prompt used to generate the mushroom:
::blockquote
One isolated handmade clay fairytale mushroom, matching the reference. Coral red rounded cap with raised ivory spots, creamy stem and gills, softly scalloped collar, subtle sage leaf relief. Preserve the thick cap edge, flat stem bottom, and clean unobstructed lower stem for inserting into a socket. Full 360-degree textured object, no pedestal, no ground, no extra mushrooms, no face. Soft satin ceramic, clean warm color, restrained fine surface relief, no dirt or plastic gloss. Keep cap and stem coherent; the socket and lifting platform are separate local assets.
::
::media-caption
---
media: $media__6ad7072c016529033480a8e7
---
::
The original GLB download was approximately 57.5 MB. It contained 1,874,316 triangles, one mesh, and three 4096×4096 textures.
Before optimizing the model, Codex rotated it to inspect it from several angles, focusing on the front, back, underside, and stem. The checks included looking for an unwanted base, checking that the textures covered the model properly, and looking for defects in areas that would become visible when the player picked up the mushroom.
Once the overall shape and structure looked suitable, I moved on to optimization.
::media-caption
---
media: $media__6ad70772016529033480ab57
---
::
### 3. Inspect, Repair, and Optimize the Model in Blender, Then Build a Separate Socket
For this stage, GPT-6 Astra wrote Python scripts to inspect the model and make adjustments. The scripts ran in Blender's background mode, without using its graphical interface.
You can give the agent an instruction like this:
> Keep the original high-resolution model unchanged and save the new files in a separate folder. First report the polygon count, dimensions, textures, and any visible defects. Then reduce the polygon count and show before-and-after views from the same angles.
The inspection revealed a small hole along the back edge of the mushroom cap. Codex used a script to create a separate mesh named RearCapIvoryRepair, shaped like a cream-colored clay spot, to cover the hole. It also made this mesh a child of the mushroom so the patch would move with it.
This was a small visual fix to cover the defect. To help the patch blend in rather than look like an extra decoration stuck onto the mushroom, I set its material roughness to 0.65 and its normal strength to 0.45. This helped reduce harsh reflections that made it look like plastic.
::media-caption
---
media: $media__6ad7082c016529033480dab5
---
::
After the polygon reduction, the mushroom and socket had a combined total of 105,950 faces. The GLB file size dropped to approximately 10.6 MB, with the 4K textures still included.
The code below is the main part of the mesh-reduction script used in this project. It is not a complete script that you can run on its own. Before running it, select the main mushroom mesh in Blender's Object Mode and make sure it is the active object.
```ts
// 在此粘贴代码before = sum(len(p.vertices) - 2 for p in body.data.polygons)
d = body.modifiers.new("Desktop mushroom reduction", "DECIMATE")
d.ratio = 100000 / before
d.use_collapse_triangulate = True
bpy.ops.object.modifier_apply(modifier=d.name)
```
In the scene, MushroomProp, the movable mushroom, and MushroomSocket, the fixed socket, are controlled separately. A marker named SocketSeat inside the socket defines the mushroom's final resting position.
You can ask the agent to check the following:
::blockquote
Measure the stem on the current model, then create a socket using the same units and leaving a little clearance. When the mushroom is inserted, its bottom should rest at SocketSeat. Check the side and back views to make sure the mushroom does not clip through the socket. When MushroomProp moves, the repair mesh must move with it, while MushroomSocket stays in place.
::
After reducing the polygon count, check the outline of the cap, the detail in the gills, and the texture seams again. Make sure the model still looks right from the game's camera view.
::media-caption
---
media: $media__6ad70867016529033480dc3b
---
::
To add the prepared assets to the tearoom, remove the simple mushroom model used for testing and replace it with the new MushroomProp and MushroomSocket.
Each time I made repairs or reduced the polygon count, I saved a new version and kept both the original high-resolution model and the previous working version. Before replacing the asset used in the game, I compared screenshots and dimensions, then checked how the new version looked and worked in the scene. I replaced the existing asset only after confirming that the changes had not introduced any new problems.
Scripts should also avoid overwriting the only copy of a source file by default.
### 4. Hook Up Pickup, Socket Placement, the Rising Step, and Dialogue in Godot
After importing the model, the next step is to build the interaction sequence:
Idle → Pick up the mushroom → Place it in the socket → Raise the platform → Complete
For each state, define which inputs the game should accept and which state it should return to if the player cancels.
You can give the agent this instruction:
> First build this sequence using placeholder models: the player uses E or mouse clicks to pick up the mushroom and place it in the socket. This triggers the platform to rise, followed by the corresponding dialogue. Ignore repeated inputs while the animations are playing. If the player presses Esc before the sequence is complete, stop the current animation and cancel any pending delayed actions, then return the mechanism to its starting positions. After the sequence is complete, let the player view the dialogue again or retry the interaction.
Test this sequence first, then replace the placeholders with the final models.
Start by dividing the interaction into these steps:
1. Idle: The mushroom, socket, and platform remain in their starting positions.
2. Pickup: The player clicks the mushroom or presses E to pick it up.
3. Socket placement: The player clicks the socket or presses E again. The mushroom moves above the socket, drops into it, and bounces gently.
4. Platform movement: Once the mushroom is in place, the platform slowly rises.
5. Dialogue: After the platform rises, an attendant says, "If you can't reach, let the step come to you."
6. Cancel and retry: If the player presses Esc before the sequence is complete, the mechanism returns to its idle state. After completing the sequence, the player can try it again.
In the game, the player first approaches Mushroom Corner, faces the mushroom, and presses E. The camera switches to a close-up orthographic view. In this view, the player presses E again or clicks the mushroom to pick it up, then presses E or clicks the socket to place it inside.
The mushroom then moves above the socket, lines up with it, drops into place, and bounces slightly. A Tween controls its position and the timing of each movement. Because the animation does not rely on a physics simulation, the mushroom can reliably come to rest in the same position each time.
Once the mushroom is in place, the camera pulls back, the platform slowly rises, and the attendant's dialogue plays.
The following is the insert-and-gentle-bounce code written by GPT-6 Astra:
```ts
// 在此粘贴代码func _insert() -> void:
stage = Stage.INSERTING
busy = true
motion = create_tween()
var destination: Vector3 = seat.global_position
motion.tween_property(prop, "global_position", destination + Vector3(0, .25, 0), .50)
motion.tween_property(prop, "global_position", destination, .42)
motion.tween_property(prop, "global_position", destination + Vector3(0, .025, 0), .14)
motion.tween_property(prop, "global_position", destination, .20)
motion.tween_callback(_lift)
```
::media-caption
---
media: $media__6ad708a8016529033480de2e
---
::
### 5. Test Cancel, Retry, Repeated Actions, and How It Fits the Scene
A mechanism that works once is not necessarily reliable. You also need to check that it behaves correctly when the player interrupts it, repeats it, or activates it from different positions.
The following checklist is based on the implementation and regression testing for this project. You can also use it to test similar interactive props.
- **Check that players can cancel midway through.** Press Esc while the player is picking up the mushroom, while the mushroom is dropping into the socket, and while the platform is rising. Check that the mechanism resets, that the current animation stops, and that no dialogue plays unexpectedly after the player exits. Do not test cancellation only when the mechanism is idle.
- **Let players return and try again.** After completing the sequence, players should still be able to return to Mushroom Corner to view the dialogue again or click "Try Again" to reset the mechanism.
- **Prevent repeated inputs from disrupting the sequence.** Ignore repeated clicks and rapid key presses during animation transitions. This prevents the state machine from skipping a step or starting a new action before the previous one has finished.
- **Keep the interaction simple and easy to use.** Use the same two-step controls throughout: click or press a key to pick up the prop, then click or press a key again to place it. Players should not have to drag it into an exact position or rotate it to line it up with the socket.
- **Make sure each area shows the correct interaction prompt.** Mushroom Corner is close to the teacup area, so the game needs to consider both the player's distance from an object and the direction they are facing. Stand between the two areas and face the mushroom and the teacup in turn to check for incorrect prompts.
- **Keep the character artwork and dialogue in sync with the interaction.** When the player activates Mushroom Corner, show the character artwork and dialogue for that area. When the player leaves, switch back to the artwork and dialogue for the teacup area.
## Frequently Asked Questions
### Should I build the whole tearoom first or start with a single prop?
I recommend starting with a rough version of the entire scene in Blender.
First, I work out the tearoom layout, the size of the characters relative to the room, and the space players need to move around. Then I use simple placeholder models to test the routes and interactions in each corner. Only after that do I replace the placeholders, one by one, with the finished props generated in Tripo.
Starting with the whole scene before refining individual objects does not conflict with separating parts according to how they move. The first principle determines the order of the work. The second ensures that each part can move, respond to clicks, or handle collision detection separately when needed.
If a prop turns out to be the wrong size or in the wrong place, you can adjust the layout quickly using placeholders instead of reworking it after all the detailed models are finished.
### Why does an AI-generated 3D model still need polygon reduction?
The original model I downloaded for this project had approximately 1.87 million triangles and a file size of about 57.5 MB. I kept it as the source asset and made a separate version for use in the current desktop prototype.
The 100,000-triangle target was a balance for this desktop prototype: it kept the silhouette and the textures, and it stayed playable. It is not a universal polycount for small props. The target device, the prop's size on screen, the number of props visible at once, and the materials and textures all affect the appropriate budget.
If you need to reduce resource usage further, you can lower the polygon count again or rebake the textures. After each round of optimization, check the model from the actual in-game camera view.
For further optimization, compare loading times, frame times, and memory usage before and after each change, using the same device, camera view, and scene. Check the texture resources as well. Use separate, simplified shapes for interaction detection and platform collision rather than relying on the detailed visible meshes for all collision calculations.
### What do GPT-6 Astra, Tripo, Blender, and Godot each do?
In this workflow, GPT-6 Astra helps with planning and scripting, Tripo generates the model, Blender prepares and optimizes the assets, and Godot handles the game interactions.
More specifically:
- **Tripo:** Generates the high-resolution mushroom model and 4K PBR textures from the reference image.
- **Blender:** Provides the tools to inspect the mesh, fix local visual defects, adjust materials, reduce the polygon count, and create the separate socket.
- **GPT-6 Astra:** Organizes the production requirements, writes scripts for inspection, repairs, and polygon reduction, and helps write and test the Godot interaction logic.
- **Godot:** Handles mushroom pickup, socket placement, the bounce animation, platform movement, collision, dialogue, cancellation, and retries.
The mushroom shows where Tripo earns its place in a small game pipeline. It turns a reference and a prompt into a textured 3D model you can inspect, repair, and decimate before it reaches the engine. Pickup, the socket, and the rising step still happen in Blender and Godot. Tripo is what gets you a model worth taking that far.
Try it on one prop the player can actually touch. Open Tripo, generate from a reference you have the rights to use, and keep the prompt specific: one object, a flat base, and no extra scenery. Then run the GLB through the same checks in this tutorial.
Ready to build the next prop? [Start in Tripo with a single reference](https://studio.tripo3d.ai/), and take that model all the way to a playable interaction.
Creator Notes
Learn how Tripo AI powers a playable yokai town in one day, with 3D generation, auto-rigging, animation fixes, and web optimization.
Creator Notes
Learn how Tripo AI accelerates game character modeling with component generation, AI retopology, prompt iteration, and expert cleanup for production assets.

Creator Notes
Build a realistic forest courtyard with Tripo and Blender: triangle vs quad faces, face counts, lighting, volumetric fog, materials, and post-compositing.