agentleFS
TraX22TraX22/HydraOps-Skills/blender-materials-render/SKILL.md

blender-materials-render

Skill1 starsChanged 59 days agoApache-2.0View on GitHub

Gives Blender objects materials that actually render (Principled BSDF, glass, metal, emission, procedural textures), sets up lighting, world, camera and render settings, and produces a final image through a Blender connection (the official Blender Lab server or MCP for Blender). Use when the user asks for materials, colors, textures, lighting, a camera or a render of a Blender scene, or when a render comes out black, grey, flat or noisy.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If neither set of tools is available, stop and say so: the user has to install a Blender connection (Tools → Connections), give it to this …

    line 40
  2. Distinctive:

    Light and world: before judging any material: a material cannot be evaluated in the dark.

    line 50
  3. Distinctive:

    Do not change the user's render device or preferences.

    line 110
  4. Distinctive:

    Create one if there is none and make it the scene camera.

    line 114
  5. Distinctive:

    Check the framing with a small test render, not with the viewport screenshot (the viewport is not the camera unless you switch to camera …

    line 118
  6. Distinctive:

    Test small first. A full-resolution Cycles render can take minutes and blocks Blender while it runs.

    line 128
  7. Distinctive:

    Look at the result before declaring success: a viewport capture does not show a render.

    line 130
  8. Distinctive:

    Every visible object has an assigned material whose Base Color is set on the node.

    line 151

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Materials, lighting and rendering in Blender

You work in the user's Blender through a Blender connection. The viewport capture and the final render are different things: the capture shows whatever shading mode the viewport is in, the render uses the render engine, the lights and the world. Most "it looked fine but the render is wrong" problems come from that.

Which Blender connection you have

HydraOps offers two Blender connections. Your tool names tell you which one you were given; use the names of that column and never call a tool of the other.

What you needBlenderLab, the official Blender Lab server: tools blenderlab_…Blender, MCP for Blender: tools blender_…
What is in the sceneget_objects_summaryget_scene_info
One object in detailget_object_detail_summary (by name)get_object_info
The file: saved or not, its pathget_blendfile_summary_path_infocode: bpy.data.filepath
Run Pythonexecute_blender_codeexecute_blender_code
See the 3D viewportget_screenshot_of_area_as_image with area_ui_type: "VIEW_3D" (whole window: get_screenshot_of_window_as_image)get_viewport_screenshot
Point the viewport at an objectjump_to_view3d_object_by_namecode
Check the Python APIget_python_api_docs (an identifier such as bpy.types.BevelModifier), search_api_docs; the manual: search_manual_docsbpy_api_lookup, describe_node_type
Quick renderrender_thumbnail_to_path, render_viewport_to_path: the image goes to Blender's temp folder and the result gives the real pathcode
Exportcodeexport_scene, or code
Asset libraries, 3D generatorsnonePoly Haven, Sketchfab, Poly Pizza; Hyper3D, Hunyuan3D, Tripo

On both, do not count on anything surviving between execute_blender_code calls (carry your helpers in each script), and what the script prints comes back. On BlenderLab you can also assign a dict to result for structured data, and its guard refuses a few operators (quitting Blender, factory resets).

If neither set of tools is available, stop and say so: the user has to install a Blender connection (Tools → Connections), give it to this agent, and have Blender open with that connection's add-on running. Do not describe work as done when you could not do it.

Order of work

  1. Look: the scene tool; which objects, which already have materials, is there a camera, a light, a world? Read bpy.app.version_string and the current render engine.
  2. Materials, one per distinct surface, named for what they are (Oak_Wood, Brushed_Steel), reused across objects.
  3. Light and world before judging any material: a material cannot be evaluated in the dark.
  4. Camera: framed on the subject, sensible focal length.
  5. Test render small (25-50 % resolution, few samples), look at it, fix.
  6. Final render to a file, and report the path, engine, resolution and time.

Code for each step is in references/shading-and-render.md. Open it before writing the first script.

Materials: what goes wrong

  • Color set on the wrong place. material.diffuse_color and object.color are viewport display colors only: they do not render. The color that renders is the Base Color input of the Principled BSDF node. Set both if you want the solid-mode viewport to match.
  • Input names changed in Blender 4.0. Transmission became Transmission Weight, Emission became Emission Color, Specular became Specular IOR Level, Clearcoat became Coat Weight, Subsurface became Subsurface Weight. Look an input up by name and check it exists before setting it; use the API tool of your connection when unsure.
  • Material made but never assigned. Append it to obj.data.materials; for different materials on parts of one mesh, assign polygon.material_index.
  • Find the node by type, not by name. The node is called "Principled BSDF" only in an English interface. Use next(n for n in nodes if n.type == 'BSDF_PRINCIPLED').
SurfacePrincipled BSDF settings
Painted, plasticBase Color; Roughness 0.3-0.6; Metallic 0
MetalMetallic 1.0; Base Color = the metal's color; Roughness 0.15-0.5
GlassTransmission Weight 1.0; Roughness 0-0.05; IOR 1.45; needs a world or lights to have anything to refract
GlowingEmission Color + Emission Strength (1-20)
Rubber, cloth, matteRoughness 0.8-1.0
Car paint, varnishCoat Weight 1.0; Coat Roughness 0.05

Metallic is 0 or 1, almost never in between. Pure black (0, 0, 0) and pure white (1, 1, 1) base colors look wrong under light: stay within about 0.03-0.9.

Lighting and world

  • No world and no light means a black render, and glass or chrome rendered against an empty world comes out black even with lights, because there is nothing to reflect or refract. Give the world a color and strength, or an HDRI.
  • A dependable start: a large area light as key (45° to one side and above), a weaker fill on the other side, a rim light behind, and a world at low strength (0.2-0.5).
  • Area light power is in watts and needs to be large: a 1 m area light 2 m from a small object wants roughly 100-500 W. A sun's strength is different: 2-5.
  • A ground plane under the object gives contact shadows; without it the object floats.
  • An HDRI gives realistic light and reflections in one step. The Blender (MCP for Blender) connection can download one from Poly Haven: it is third-party content and an approval in HydraOps, so ask first. On BlenderLab, ask the user for an HDRI file.

Engines

EEVEECycles
SpeedSecondsSeconds to minutes
Use forPreviews, stylized, animationFinal stills, glass, accurate light
Watch outReflections and refractions need ray tracing enabled; without it glass and glossy surfaces look flat or grainyNoise: raise samples and keep denoising on; uses the GPU only if the user configured it

The engine identifier for EEVEE differs by version (BLENDER_EEVEE_NEXT in 4.2-4.5, BLENDER_EEVEE before and after): the reference shows how to set it without guessing. Do not change the user's render device or preferences.

Camera

  • Create one if there is none and make it the scene camera; do not move a camera the user already placed unless asked.
  • Aim it with a Track To constraint at the subject or at an empty; 50-85 mm for objects, 24-35 mm for rooms and environments.
  • Check the framing with a small test render, not with the viewport screenshot (the viewport is not the camera unless you switch to camera view).

Rendering

  • Render to a file with an absolute path in a folder the user can find (next to the .blend if it is saved, otherwise ask or use the user's temp folder) and report the full path. Never overwrite an existing file without saying so. Do it with code (the reference has it): BlenderLab's own render tools are for quick checks and write into Blender's temp folder whatever path you give them; report the path their result names.
  • Test small first. A full-resolution Cycles render can take minutes and blocks Blender while it runs; tell the user before starting a long one.
  • Look at the result before declaring success: a viewport capture does not show a render. If you cannot view the rendered file yourself, say that plainly and describe what you set up rather than what the image "looks like".
  • Color management: the default view transform (AgX or Filmic) desaturates strong colors for realism; for flat graphic colors that must match exactly, use Standard.

Troubleshooting

SymptomUsual cause
Render is blackNo light and no world; camera inside an object; object hidden from render
Object is grey or whiteMaterial not assigned, or color set on diffuse_color instead of Base Color
Glass is blackEmpty world; in EEVEE, ray tracing off
Pink or magentaMissing image texture file
GrainyCycles: few samples or no denoiser. EEVEE: ray tracing off or soft shadows at low samples
Flat, no depthOnly a world light: add a key light and a ground plane
Washed-out colorsView transform: try Standard, or lower the exposure
Blocky curved surfacesFlat shading: enable smooth shading

Before you say it is done

  • Every visible object has an assigned material whose Base Color is set on the node.
  • There is a light or a lit world, and a camera that frames the subject.
  • A render was written to a file, and you gave the path, the engine and the resolution.
  • You changed only what was asked: no deleted objects, no changed preferences.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.