Playground
From footbridge · Compiles in your browser · $0
CtrlShiftS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
asset footbridge "Footbridge" complexity=4// a timber footbridge arching over a stream: plank treads on a gentle hump carried by two log// stringers, stone abutments at both ends, rail posts and a curved handrail each side, fat// newel posts at the cornerslet W = 1.5..1.7let plankA = oak:3|honey|driftwoodlet postC = walnut:2|barkB|redwoodlet stoneC = rockGrey:3|granite|rockCool// the treads: thirteen planks on an arch along zbox plank x13 at=(0, .35+.45*(1-(2*t-1)*(2*t-1)), (t-.5)*5.4) tilt=(2*t-1)*18 size=(W, .1, .38) round=.03 color=sel(i, plankA, plankA*.92, plankA*1.04, plankA*.96, plankA, plankA*.92, plankA*1.04, plankA*.96, plankA, plankA*.92, plankA*1.04, plankA*.96, plankA)// the log stringers under the plank ends, the stone abutmentstube stringer pts=[.6,.18,-2.95 .6,.56,-1.45 .6,.7,0 .6,.56,1.45 .6,.18,2.95] mirror r=.11 smooth sides=8 color=postCball abut x2 row=(0, 0, 5.6) r=(W*.62, .42, .55) half sq=3 noise=.08 color=stoneC segs=14 rings=6// rails: posts, a curved handrail, newels at the cornerscyl rpost x5 at=(W*.5+.08, .4+.45*(1-(1.6*t-.8)*(1.6*t-.8)), (t-.5)*4.4) mirror h=1.05 r=.06 color=postC segs=8tube handrail at=(W*.5+.08, 0, 0) pts=[0,1.42,-2.75 0,1.72,-1.3 0,1.82,0 0,1.72,1.3 0,1.42,2.75] mirror r=.065 smooth sides=8 color=plankAcyl newel x2 row=(0, 0, 5.6) at=(W*.5+.08, .28, 0) mirror h=1.25 r=.1 round=.03 color=postC cap=honey segs=12ball knob on=newel at=end r=.11 color=postC*1.1 segs=10 rings=6
Clean: no issues on this seed.
Loading
seed
Shapes— / 70
Triangles— / 6,000
Draw calls— / 4