Skip to content
Kiln0.10Get Kiln

Cluster of golden wheat stems with narrow leaves and upright seed heads.

Shapes & Seasons Farm · Crops

Wheat clump, three-quarter view on a neutral backdrop

Drag to orbit after opening. The model starts stationary.

Revision r_254f9bdf4d004a7796033d5fe348a3e3

Metres · +X forward · +Y up · +Z right

The poster is this revision’s sealed GLB rendered under the Kiln review lighting rig (review-neutral-v1) on the neutral backdrop, with nothing retouched. The 3D view applies the same rig (review-neutral-v1): its light directions and strengths, exposure, tone mapping and backdrop.

For your engine. The download is a standard glTF 2.0 binary (GLB) with PBR metallic-roughness materials. glTF stores materials, not lighting or tone mapping, so your engine decides how they read. This 3D view tone-maps with Review Neutral, the Khronos PBR Neutral construction with a smaller glare offset (0.015 instead of 0.04), at exposure 0.9. Its Tone mapping control also shows ACES and Linear, for comparison.

Triangles
1,488
Meshes drawn
4
Materials
2
Bounds · X × Y × Z
0.46 × 0.90 × 0.48 m
Animation clips
None

Review views

Six views of this revision, rendered on the GPU from its source.

Six rendered review views of Wheat.
Material-faithful GPU source review views for r_254f9bdf4d004a7796033d5fe348a3e3.

Read the actual source.

Download .kiln.js

This is the source extracted from the sealed editable archive for the displayed revision.

wheat.kiln.js
const meta={name:"Wheat",role:"prop"};

function bucket(){return {p:[],uv:[]};}
function tri(b,a,c,d){for(const v of [a,c,d]){b.p.push(...v);b.uv.push(v[0]/0.5,v[1]);}}
function addGeo(b,g){const p=g.getAttribute('position'),ix=g.index;for(let i=0;i<(ix?ix.count:p.count);i++){let j=ix?ix.getX(i):i;const x=p.getX(j),y=p.getY(j),z=p.getZ(j);b.p.push(x,y,z);b.uv.push(x/0.5,y);}g.dispose();}
function rod(b,a,c,r0,r1,n=5){const av=new THREE.Vector3(...a),cv=new THREE.Vector3(...c),d=cv.clone().sub(av);const g=new THREE.CylinderGeometry(r1,r0,d.length(),n,1,false);g.applyQuaternion(new THREE.Quaternion().setFromUnitVectors(new THREE.Vector3(0,1,0),d.normalize()));g.translate(...av.add(cv).multiplyScalar(.5).toArray());addGeo(b,g);}
function finish(b,name,mat,parent){return createPart(name,meshGeo({positions:b.p,uvs:b.uv}),mat,{parent});}
function solid(color){return new THREE.MeshStandardMaterial({color,roughness:0.92,metalness:0,flatShading:true});}
function mound(b,rx,rz,h,n=12){const low=[],high=[];for(let i=0;i<n;i++){const t=i*2*Math.PI/n,rr=1+0.055*Math.sin(i*2.7);low.push([rx*Math.cos(t)*rr,0,rz*Math.sin(t)*rr]);high.push([rx*.77*Math.cos(t)*rr,h*.73,rz*.77*Math.sin(t)*rr]);}for(let i=0;i<n;i++){let j=(i+1)%n;tri(b,[0,0,0],low[i],low[j]);tri(b,low[i],high[i],low[j]);tri(b,low[j],high[i],high[j]);tri(b,high[i],[0,h,0],high[j]);}}
function thickLeaf(b,origin,angle,L,W,rise){const outline=[[0,0],[.48,-.52],[1,0],[.48,.52]];const cv=(u,v,y)=>[origin[0]+Math.cos(angle)*u*L-Math.sin(angle)*v*W,origin[1]+y+u*rise,origin[2]+Math.sin(angle)*u*L+Math.cos(angle)*v*W];const center=cv(.45,0,.024),bottom=cv(.45,0,.012);for(let i=0;i<outline.length;i++){let j=(i+1)%outline.length;const a=cv(...outline[i],0),c=cv(...outline[j],0),ad=[a[0],a[1]-.008,a[2]],cd=[c[0],c[1]-.008,c[2]];tri(b,center,c,a);tri(b,bottom,ad,cd);tri(b,a,c,ad);tri(b,c,cd,ad);}}

async function build(){
const root=createRoot('Wheat'),plant=createRoot('Plant');root.add(plant);
const straw=await compilePortableMaterialSpecV2({"schemaVersion":2,"model":"pbrMetallicRoughness","name":"Farm compressed golden straw","baseColor":16777215,"roughness":1,"metalness":0,"emissiveIntensity":1,"alphaMode":"opaque","alphaCutoff":0.5,"doubleSided":false,"textures":{"baseColor":{"kind":"resource","resourceId":"kiln.library.583eb73450267db85733ef488259788e70e2757cf650d09ef84ea807f41a9279.base-color"},"normal":{"kind":"resource","resourceId":"kiln.library.583eb73450267db85733ef488259788e70e2757cf650d09ef84ea807f41a9279.normal"},"metallicRoughness":{"kind":"resource","resourceId":"kiln.library.583eb73450267db85733ef488259788e70e2757cf650d09ef84ea807f41a9279.metallic-roughness"}}});straw.flatShading=true;straw.normalScale.set(.18,.18);
const stems=bucket(),heads=bucket(),blades=bucket(),soil=bucket();
const heights=[.90,.78,.85,.72,.83,.76,.88,.70,.81,.75,.86,.79];
for(let i=0;i<12;i++){
 const a=i*2.399963,r=.040+.087*Math.sqrt(i/11),x=Math.cos(a)*r,z=Math.sin(a)*r,h=heights[i];
 const lx=.022*Math.cos(a+.5),lz=.024*Math.sin(a-.2),base=[x*.66,.018,z*.66],neck=[x+lx,h-.18,z+lz],tip=[x+lx*1.6,h,z+lz*1.6];
 // Preserve upper ring, head and leaf positions; extend only this stalk's bottom ring 21 mm.
 const rootStart=stems.p.length;rod(stems,base,neck,.007,.0045);
 for(let j=rootStart+1;j<stems.p.length;j+=3)if(stems.p[j]<.03){stems.p[j]-=.021;stems.uv[Math.floor(j/3)*2+1]=stems.p[j];}
 rod(stems,neck,tip,.0045,.0018);
 for(let k=0;k<4;k++)for(let s of [-1,1]){
  const t=k/4,cx=neck[0]+(tip[0]-neck[0])*t,cz=neck[2]+(tip[2]-neck[2])*t,cy=neck[1]+.02+k*.037;
  const side=a+.45,rad=.023*(1-k*.12),out=[Math.cos(side)*s,0,Math.sin(side)*s];
  const g=new THREE.OctahedronGeometry(1,0);g.scale(rad,.041,.016);g.rotateZ(s*.34);g.rotateY(-side);g.translate(cx+out[0]*.010,cy,cz+out[2]*.010);addGeo(heads,g);
 }
 const leafY=.35+(i%3)*.065, tLeaf=(leafY-base[1])/(neck[1]-base[1]); const anchor=base.map((v,j)=>v+(neck[j]-v)*tLeaf);
 thickLeaf(blades,anchor,a,.13,.033,.13);
}
mound(soil,.197,.181,.032);
finish(soil,'Soil',solid(0x785334),root);finish(stems,'Stalks',straw,plant);finish(heads,'TwelveSeedHeads',straw,plant);finish(blades,'StrawLeaves',straw,plant);
return root;
}

Source SHA-256: c8cc41a113683887a811796613fe44abe7d2be8302144de5cc22516169a1e669

Named part paths (4)
  • Wheat/Plant/Mesh_Stalks
  • Wheat/Plant/Mesh_TwelveSeedHeads
  • Wheat/Plant/Mesh_StrawLeaves
  • Wheat/Mesh_Soil

Follow the saved revisions.

Originally authored by GPT-6 Astra. Refinements in this delivery: GPT-6 Astra.

  1. first

    GPT-6 Astra · Codex 0.157.1

    Requested effort: high. Independently confirmed: high.

    r_723550c59e0a44948ebf51a3526fa455

  2. review-1

    GPT-6 Astra · Codex 0.157.1

    Requested effort: high. Independently confirmed: high.

    r_254f9bdf4d004a7796033d5fe348a3e3

    Parent: r_723550c59e0a44948ebf51a3526fa455

Displayed revision’s parent: r_723550c59e0a44948ebf51a3526fa455

Download the assets

Runtime assets

Models, textures and animations prepared for use in a scene or application.

352,648 bytes (0.35 MB)

Download runtime assets

Editable assets

Models plus Kiln source, editing metadata, materials and included revisions, so you can reopen and continue editing.

1,903,220 bytes (1.90 MB)

Download editable assets

CC0-1.0 covers authored asset content only, to the extent of the owner’s rights. Kiln, the scene code, Three.js, BVH, Field Grass and other components retain their own licenses.