sourceextensions/three/demos/city.xtl

1⍝│ Three.js, live: the neon city to ride, fly and walk through in a 2⍝│ browser. 240 lots worked out as arrays from a seed -- another seed is 3⍝│ another city -- built in the page by X_eTaL compiled to WebAssembly 4⍝│ and drawn by a player written with Three.js: lit towers, neon, 5⍝│ screens showing slides and videos, puddles that mirror it all, cars 6⍝│ and fliers. The same arrays and the same calls as the ray-traced 7⍝│ film (blender's demos/NeonCity.xtl, Cycles.xtl). From the command 8⍝│ line this writes a directory to serve, work/city: the page, the 9⍝│ player, Three.js and the calls. 10⍝│ Run: just ext three city (then just ext three serve city, and open 11⍝│ http://127.0.0.1:8470/) 12⍝│ Command: just ext three city && just ext three serve city 13⍝│ Page: three/live/ fly and walk through it, live 14⍝│ Title: The neon city, live 15⍝│ Link: #blender-city the same city, ray-traced by Blender 16⍝│ Feature: Open the city: ride, fly or walk through it in your browser 17 18"th:" u̲se< "Three" 19"nc:" u̲se< "NeonCity" 20 21scene ← (ⁿᶜseed, "media", 1280, 720, 30, 24, "GPU") ⁿᶜc̲ity 0 22"the calls of the scene, and the files written to work/city:" 23ᵗʰs̲how! scene 24"work/city" ᵗʰp̲age! scene