SDF Creature Shading & QC Standards

    by Enoch Gardiner

    1

    Eliminate faceting on 3D SDF meshes using analytic gradient normals and measurable QC thresholds.

    $2

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    SDF Creature Shading & QC Standards

    Example session with this skill installed

    My extracted creature mesh looks faceted on the shoulders even though the mean dihedral angle is 4 degrees. I need the QC gates and the analytic normal application steps.

    • Read your context and instructions
    • Compiled the sdf creature shading

    I have analyzed the faceting issue on your creature mesh. While your mean dihedral angle of 4° suggests a smooth surface, the faceting on high-curvature areas like shoulders indicates a high p95 distribution. I have prepared the analytic normal implementation and the mandatory QC gates to resolve this.

    SDF Shading and QC Implementation

    // 1. Apply analytic normals to the extracted geometry
    // Use this before the first render to replace averaged triangle normals.
    applyAnalyticSDFNormals(geometry, evalSDF, voxelSize);
    
    // 2. Set mandatory surface constants for matte creature shading
    const creatureMaterial = new MeshStandardMaterial({
      roughness: 0.92,      // Range: 0.90–0.96
      metalness: 0,         // Constant
      flatShading: false    // Ensure smooth shading is enabled
    });
    
    // 3. Lighting Configuration
    // Use a hemisphere wrap of 1.15 and key light of 0.85
    

    Mandatory QC Gate Table

    GateThresholdPass/FailMeasurement Method
    p95 Dihedral< 12.0°TBDCompute dihedral angle at every interior edge; take 95th percentile.
    Dominant Shell1.0TBDLargest shell face share must be 1.0 (no stray fragments).
    Field Alignment> 0.995TBDMedian dot product of written normal vs. normalized SDF gradient.
    Mobile CaptureNo BandingTBD360x360 render inspection at phone display size.

    Next steps

    • Call applyAnalyticSDFNormals using an epsilon of max(1e-4, voxelSize * 0.35).
    • Run a vertex-by-vertex dot product check to confirm medianNormalDotWithSDF exceeds 0.995.
    • Ensure no computeVertexNormals() calls run after this process, as they will overwrite the analytic data.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Fix the faceted, melted look on lofted 3D creatures: a dependency-free JS module that replaces averaged vertex normals with analytic SDF-gradient normals, plus the measurable QC gates that prove the fix — p95 dihedral under 12 degrees, dominant shell ratio 1.0, median normal alignment above 0.995, a phone-size capture check, and the matte-surface lighting constants. Each gate comes with how to measure it and a before/after checklist. From THE PASSWORD.

    Restricted to 3D SDF-extracted meshes. Requires an existing SDF evaluator function. Does not generate geometry or handle 2D assets.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 14 days ago

    Permissions

    Terminal / Shell
    Listed14 days ago
    Updated12 days ago

    What's inside

    Frequently Asked Questions

    This skill replaces traditional triangle-averaged normals with analytic SDF-gradient normals and applies strict QC gates to catch high-curvature faceting that standard smoothing algorithms often miss.

    The skill is designed for WebGL-based JavaScript environments, specifically targeting Three.js-style geometry buffers and SDF evaluators for procedural 3D pipelines.

    You will receive the specialized logic for analytic normal sampling, the automated QC gate scripts for dihedral and shell validation, and the material configuration constants.

    Yes, the skill includes built-in degeneracy handling that detects zero-length gradients and automatically applies safe fallback values to prevent NaN artifacts or rendering crashes.

    While this skill optimizes shading and surface quality, it does not generate the initial 3D creature geometry; you must have an existing SDF evaluator or mesh extractor (like Marching Cubes) to provide the base mesh.

    The QC gate provides four measurable benchmarks, including p95 dihedral thresholds and shell ratio checks, to ensure your creature assets pass production-level visual inspections for mobile and web.

    New in UX & UI Design

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for UX & UI Design.