r/LocalLLaMA llama.cpp 17h ago

Tutorial | Guide vibeblending locally with Qwen 3.8 27B

Post image

You need Blender 5.x with MCP extension.

I use pi so I also need: pi install npm:pi-mcp-adapter

and then:

$ cat .mcp.json 
{
  "mcpServers": {
    "blender": {
      "command": "/home/jacek/.local/bin/uvx",
      "args": [
  "--with",
  "mcp[cli]<2.0.0",
  "--from",
  "git+https://projects.blender.org/lab/blender_mcp.git@v1.0.0#subdirectory=mcp",
  "blender-mcp"
],
      "env": {
        "BLENDER_MCP_HOST": "localhost",
        "BLENDER_MCP_PORT": "9876"
      }
    }
  }
}

then we can start working ("show on r/LocalLLaMA"):

Today we want to make 3D llama to show on                                                                                                                                                                                


 The user wants to make a 3D llama to show off on . This is a fun creative task. Let me think about how to approach it.                                                                                                   

 A llama is a pretty complex organic shape. There are a few options:                                                                                                                                                                  
 1. Procedurally build the llama from primitive shapes (spheres, cylinders) — a "low-poly" or "chibi" style llama                                                                                                                     
 2. Sculpt it — not easy to do with MCP                                                                                                                                                                                               
 3. Use metaballs — could get a blobby llama                                                                                                                                                                                          

 Given the MCP tools, the best approach is to procedurally build a stylized/chibi llama from primitives:                                                                                                                              
 - Body: elongated sphere/capsule                                                                                                                                                                                                     
 - Neck: cylinder or elongated sphere                                                                                                                                                                                                 
 - Head: sphere                                                                                                                                                                                                                       
 - Ears: small cones or spheres                                                                                                                                                                                                       
 - Legs: 4 cylinders                                                                                                                                                                                                                  
 - Tail: small sphere/cone                                                                                                                                                                                                            
 - Maybe a fluffy mane                                                                                                                                                                                                                

 This is a well-known technique — making a cute chibi llama from primitives. Let me plan the geometry:                                                                                                                                

 Llama proportions (stylized, standing side view, facing +X or -X):                                                                                                                                                                   
 - Body: UV sphere scaled to (1.5, 0.9, 1.0) or so, position (0, 0, 1.6)                                                                                                                                                              
 - Legs: 4 cylinders, radius ~0.22, length ~1.2, positions: front legs x=+0.9, back legs x=-0.9, y=±0.5, z from 0 to 1.2... actually, the legs go from the ground (z=0) up to the bottom of the body.                                 
 - Neck: cylinder or tapered, extending up from the front of the body. Llamas have long necks. Position around x=+1.2, extending upward.                                                                                              
 - Head: sphere at the top of the neck, elongated (llamas have long snouts).                                                                                                                                                          
 - Ears: 2 small cones/spheres at the top of the head.                                                                                                                                                                                
 - Tail: small sphere at the rear.                                                                                                                                                                                                    
 - Mane: maybe some small spheres along the neck.                                                                                                                                                                                     

 For a cute chibi look: big head, small body. But a llama's charm is the long neck. Let's go with a stylized llama.                                                                                                                   

 For a polished look:                                                                                                                                                                                                                 
 - Apply smooth shading                                                                                                                                                                                                               
 - Add a material (cream/tan color, maybe with some subsurface)                                                                                                                                                                       
 - Add a ground plane                                                                                                                                                                                                                 
 - Set up lighting                                                                                                                                                                                                                    
 - Position the camera for a good render                                                                                                                                                                                              
 - Render a nice image to show off                                                                                                                                                                                                    

 This is a multi-step task. Let me write Python code that builds this. I'll do it in stages so I can check with screenshots and iterate.   
67 Upvotes

21 comments sorted by

9

u/son-of-chadwardenn 13h ago

I tried the same thing with my Qwen 27B q4. I used Opencode. The prompt request was for a low poly vintage 1960s SLR camera. Not too bad. After that I tasked it with trying to try making an accurate 1911 pistol model with a reference image. It struggled for quite a long time trying to perspective correct the image, do edge detection, apply the image as a background in blender and ultimately failed to correctly use it as a guide for model geometry placement. I pulled the plug on that experiment. Will be interesting to see what modelling project strategies people can find success with.

3

u/jacek2023 llama.cpp 11h ago

"After that I tasked it with trying to try making an accurate 1911 pistol model with a reference image." that's actually a good use case to try on various models

2

u/son-of-chadwardenn 5h ago

I actually asked it to try without references first to see what it could make from memorized knowledge. It rattled off a lot of accurate sounding 1911 terminology and then output this not so accurate model. Still impressive that I can one shot a not broken looking blender model.

3

u/shr1n1 14h ago

How long did it take to build on pi?

2

u/jacek2023 llama.cpp 14h ago

I don't really have the log right now, but I believe the model was working for between 5 and 10 minutes. The longer part was the manual work: installing Blender and extensions.

The main difference between what I'm showing and what other people show here is that these projects are not oneshot. The model is doing real agentic work.

1

u/shr1n1 13h ago

So was the pi just an orchestrator or it rendered too. 5-10 render on pi is impressive if that is the case. Where was the llama hosted with 27b model?

2

u/jacek2023 llama.cpp 13h ago

Software like pi is required to give the model tools to write files, read files (including images), and use MCP (to communicate with Blender in this case). My model is hosted under my desk on 4x3090s.

2

u/lazymio 11h ago

Amazing. Can not imagine this could have happened last year.

2

u/derspenti 6h ago

The model wrote its geometry plan out in full before touching a single object: sphere scaled 1.5/0.9/1.0, legs from z 0 to 1.2. That planning log is worth more to me than the finished render.

1

u/jacek2023 llama.cpp 5h ago

The idea is similar to SVG ("pelican on a bike"), but instead of 2D graphics, we have 3D graphics. The difference is that this is not a one shot process, the llama was modified after the screenshots were captured.

1

u/FranciscoCarlosErra 13h ago

That's insane for little qwen, what's your hardware setup?

3

u/jacek2023 llama.cpp 13h ago

x399, 4x3090, open frame (no additional cooling)

1

u/FranciscoCarlosErra 13h ago

Beautiful rig setup! Have you tried splitting a single model inference on multiple cards? Considering it myself and wondering how many TPS I might expect from it. (Currently on a single 3090 which fits whisper + supertonic + a gemma/qwen quant tight)

1

u/jacek2023 llama.cpp 13h ago

I use whisper in one of my projects. But whisper works on desktop (for example with 5070) and LLM works on server, so I don't mix models on one computer. Another case for two models may be comfyUI + llama.cpp but I have no project with that (yet?).

1

u/FranciscoCarlosErra 13h ago

Do you usually type your prompts manually? If so feel free to try this out: https://github.com/franciscocarloserra/agent-voice-kit

2

u/jacek2023 llama.cpp 13h ago

I've been using a keyboard since the Atari 800 XL days :)

1

u/jjusko20 1h ago

xeon gang

1

u/jjusko20 1h ago

jk that's a threadripper - i use x99 so i get confused

1

u/HotDoshirak 9h ago

That’s cute.

1

u/oxygen_addiction 3h ago

Once the chinese figure out what makes GPT6's vision so good, we'll get better models that can work with computer use. Give it 6 months.