Prompt for your curriculum project 1. Download the packs you want. 2. Open the Pan African Global Open Curriculum project. 3. Upload the ZIPs and paste this prompt.
Copy prompt Add new African flying fields to the RCForge flight simulator (Scholar Lab, RCForge commit 5603655). I'm uploading one or more "RC Forge field pack" ZIPs (for example mosi_rcforge_field.zip or nairobi_rcforge_field.zip, or the bigger *_24k.zip versions). Each pack folder has:
- <id>-height.json (or <id>-24k-height.json): real ground heights in the same format as RCForge's src/view/data/alpine-height.json ({grid, extentM, center, datumM, elevationsM, sources}), made with RCForge's own scripts/prepare-terrain.py. 12 km packs are grid 129 / 12000 m; 24 km packs are grid 257 / 24000 m.
- <id>-preset.json: a scenery preset in the same shape as the built-in club / valley / mesa presets, plus "sky" (sunrise/midday/sunset HDR paths), "defaultSky", "textures", "heightFile" and "extrasFile". Its "name" is the African name (for example Mosi-oa-Tunya); the "description" keeps the English name in brackets.
- <id>-extras.json: trees (one kind per field), rocks, huts (round thatched or flat-roof), a wind sock, water areas, landmarks (Giza pyramids) and two practice courses (5 yellow hoops, 8 red gates). Positions are metres from the runway centre in RCForge world axes: x = north, z = east; hoop/gate "y" is metres above the airfield. "allowBelowField": true means land and water may sit lower than the airfield.
- sky-sunrise-2k.hdr, sky-midday-2k.hdr, sky-sunset-2k.hdr: CC0 Poly Haven skies, the same size as scenery/partly-cloudy-2k.hdr
- textures/: ground and rock colour (512 px, like scenery/lite) plus normal maps
- lesson.md and lesson.json: a geography, history and wildlife lesson card with a "try this flight" challenge and sources
- sat.jpg and landcover.png: a real colour picture of the land (Copernicus Sentinel-2) and an ESA WorldCover land-type map, both 24 km square, north at the top, centred on the runway (the 12 km field uses the middle half). The preset's "nature" block lists the files and land classes.
- README.md: the credits and licences that must be kept
Please:
1. Rebuild RCForge from upstream commit 560365528303906b1db96b312e90ffcebbe2da08 with our existing scholarverse-changes.patch applied, then make these changes in its source.
2. Keep RCForge's own runway (170 m strip at the centre, flat clearing out to 430 m) for every new field. Use each preset's "surface" (grass or dirt) for the strip; none of the new fields use "asphalt", so all of them load their real height file.
3. Copy each height file and extras file into src/view/data/ and add each preset to the scenery preset list, next to "Alpine meadow" and "Desert mesa", so it appears in the scenery picker under its African name.
4. Today the terrain height is picked by surface type (grass = alpine, dirt = mesa). Change it so each preset names its own height file, and keep the 3 built-in fields working exactly as before. When "allowBelowField" is true, don't clamp land lower than the airfield to zero (keep the clamp for every other field). For 24 km height files, set the rendered terrain half-size to extentM / 2 (today it is fixed at 6000 m) and keep the same render budget.
5. Let each preset name its sky HDRs and ground/rock textures (scenery/<id>-<sunrise|midday|sunset>-sky-2k.hdr, scenery/lite/<id>-*.jpg), and fall back to the current files. Keep the 1024 x 512 sky reduction and the existing texture sizes. Add a "Time of day" choice (Sunrise / Midday / Sunset) next to the flying-site picker in Flight setup; start on the preset's "defaultSky".
6. Add a small module (for example src/view/field-extras.ts) that reads the extras file and adds, using landscapeSurfaceHeight for the ground height: instanced low-poly trees and rocks; huts (round = cylinder + cone roof, flat = box + flat roof); a wind sock (pole + orange cone pointing downwind of "windFromDeg", compass degrees, 0 = north = +x); water as flat surfaces over every terrain cell whose real height is below the water "level" (and inside its optional "box" [xMin, zMin, xMax, zMax]), outside 1100 m from the runway; landmarks as simple shapes (pyramid = 4-sided cone); and the hoops (torus, radius from the file, facing "heading") and gates (two posts and a top bar). Trees, huts and rocks must not be inside the runway clearing, and none should be added to the collision list unless that is easy.
6b. Nature: drape sat.jpg over the terrain as its colour (UV from world position: u = (z + 12000) / 24000 east, v = (x + 12000) / 24000 north) and multiply in the tiled ground texture's brightness for close-up detail. Read landcover.png on load (canvas) and, outside the runway clearing, place many more instanced trees where the class is 10 (tree cover, dense) and fewer in 20/90/95, bushes in 20 and 30, and grass tufts on grassy cells near the runway; cap trees at about 25,000 and add a "Lite nature" setting that uses a quarter of that for older computers. Draw water as flat quads on every class-80 cell (rivers, lakes, sea) with a slow moving normal map; when a field has class-80 water, skip the old level-based water areas.
6c. Runway look: replace the plain strip with a painted one. Sealed fields use dark asphalt with threshold bars, "36"/"18" numbers (the strip runs north-south), aiming-point bars, a dashed centreline, edge lines and tyre wear. Fields whose texture starts with "Sand" use a rolled dirt strip. Lay it on a 230 x 46 m mown-grass verge with light and dark stripes. Add a small apron (40 x 22 m) with a hangar on the west side and orange cones every 17 m along both edges.
6d. City (only when a pack has city.json: Hoerikwaggo, Nairobi and Èkó): extrude each OpenStreetMap footprint ([height, x1, z1, x2, z2, ...] in metres, x = north, z = east) from the ground to its height. Use warm plaster colours, merge everything into one mesh, and skip anything inside the runway clearing. Credit "© OpenStreetMap contributors (ODbL)".
6e. Mosi-oa-Tunya: add the falls as a scrolling white water curtain 100 m tall along the lip from (x -3440, z -1889) to (x -3750, z -279) (also in mosi-extras.json "falls"), with a low band of soft mist along the gorge that rises only about 150 m (not one tall plume).
7. Add a "Lesson" button in Scholar Lab's FlightStage that shows the current field's lesson card (name meaning, geography, history, wildlife, try-this-flight, sources) from lesson.json, with a note that a teacher should check the facts.
8. Add every pack README's credits to public/scenery/README.md and THIRD_PARTY_NOTICES.md: Terrain Tiles/USGS for the heights, ESA WorldCover 2021 and modified Copernicus Sentinel-2 data (CC BY 4.0) for the nature layers, Poly Haven CC0 for the skies and textures. Add the new files to scholarverse-changes.patch and SCHOLARVERSE_NOTICE.md.
9. Serve the result as a new folder (public/engines/rcforge-<new short id>/), point lab-tools.ts entry at it, and update its launchSize, license, assetRights and verified notes. In FlightStage.tsx, make the "The sky you fly in is a real photo..." caption name the current field's sky, time of day and place.
10. Test in the browser: every new field loads at all three times of day, the plane flies, the mountains, trees, huts, wind sock, water and hoops show around the airfield, a 24 km pack loads, and no request leaves our site. Show me a screenshot of each new field.
Keep the existing safety and privacy rules: no outside requests at runtime and no new tracking.