programextensions/blender/demos/city.xtl

Blender, ray-traced: a city at night after rain, flown through. The city is arrays (NeonCity.xtl): 240 lots, each tower's height, footprint and skin from a hash of its number; screens, neon, lamps, steam, bridges, cars and fliers, all rows of tables that Cycles.xtl writes into Blender's Python. Here: four stills along the camera's flight, 1280 by 720, ray-traced by Cycles (the graphics card when there is one), written to work/city/out. Run: just demo blender city (about five minutes) Title: The neon city, ray-traced: four stills Link: three/live/ the same city, live: fly and walk through it

source · imports bl: extensions/blender/lib/Blender.xtl; bp: extensions/blender/lib/Bpy.xtl; cy: extensions/blender/lib/Cycles.xtl; nc: extensions/blender/demos/NeonCity.xtl

script : Char

value · line 17
script ← (((1280, 720, 30, 64, "GPU") ⁿᶜs̲cene 0) c̲at
  (("skyline.png", 0.5) ᶜʸs̲till 0) c̲at (("descent.png", 6.0) ᶜʸs̲till 0) c̲at (("street.png", 10.5) ᶜʸs̲till 0) c̲at ("screen.png", 14.5) ᶜʸs̲till 0)
Used in: _

_ : Int

function · line 19
_ ← "work/city/run.py" ᵇˡw̲rite! ᵇᵖlauncher

_ : Int

function · line 20
_ ← "work/city/scene.py" ᵇˡw̲rite! script

r : Char

value · line 22
r ← "work/city/run.py" ᵇˡr̲un! "work/city/scene.py work/city/out"
Used in: lines

lines : Box Char

value · line 24
lines ← (n̲ot r = f̲irst "\n") p̲artition r