Skip to content

Latest commit

 

History

History
74 lines (68 loc) · 7.2 KB

layout.md

File metadata and controls

74 lines (68 loc) · 7.2 KB

File layout and ownership

Part of: Rendering & haptics spec (index) · Sections: R10 · Implements: D-11, D-17, D-18, D-13, Q-114, Q-115 to Q-118 · Read with: layout-repo.md (R10.1, the rest of the repo), ../uml/04-package.md

R10. File layout and ownership

The paths this spec owns: the texture baker, the 3D viewer, haptics and sound, and the shared schemas. The rest of the repository is in R10.1. Owners follow D-17 (Munazir is Moon); a folder's owner owns its tests.

backend/app/core/render/            (Atish)
  card_to_params.py   # §6.2 rules + tags; pipeline stage 7 (A4.7), issue #5, built; seed_for (R6.3, Q-35); measuring: refusals (Q-111)
  gas_giant.py        # gas giant layer rules and typical constants: Rhines bands, flattening (§7.7, A7.2; issue #62, Q-115, Q-119)
  background.py       # TextureBaker: R6.7 bakes off the request path, both sizes, worker process (issue #41, Q-112)
  blackbody.py        # §7.5 Teff -> display colour, issue #5
  noise.py craters.py height.py normals.py palette.py bake.py   # issue #6, built; height.band_field and palette.BROWN_DWARF_PALETTE (R6.2)
  params.py           # §6.2 generator parameters (BakeParams, BakeRefusal; Kind asteroid | bands); card_to_params adds the tags
  __main__.py         # python -m app.core.render <card.json> --seed N --out DIR
  gemini_paint.py     # R6.6, stretch, behind the admin token; issue #14, built (Q-122)
  spherex_rgb.py      # §5.2 channel extraction (CHANNELS_BY_TYPE), issue #5, built
backend/scripts/bake_fixtures.py    (Atish)  # bakes shared/fixtures/textures/ with the real baker (§6.7, issue #62, Q-114); --check fails on drift
frontend/src/viewer/                 (Moon)
  ViewerApp.ts lighting.ts modes.ts honesty.ts scaleBar.ts altText.ts sliders.ts
  planTypes.ts planCommon.ts renderPlan.ts   # pure RenderPlan: types, shared helpers, planRender (no GPU)
  renderers/AsteroidMesh.ts AsteroidProcedural.ts Comet.ts BrownDwarf.ts Star.ts   # per-type plan functions (R7)
  renderers/build.ts        # turns a RenderPlan into three.js objects
  renderers/ShaderBody.ts   # browser-shader kinds (§7.7, D-01, D-12)
  renderers/bodyRenderer.ts # BodyRenderer contract (field, status, onChange) of the generated body
  renderers/shaderPlan.ts shaderSpec.ts shaderPalette.ts pointClouds.ts fieldTexture.ts   # shader kinds: plan, card -> what to draw, palettes, point sets (unused), field upload
  renderers/StarBody.ts     # star surface (R7.5.1, issue #42)
  renderers/jetSurface.ts jetPalette.ts   # brown dwarf moving jets (R7.4, issue #42)
  renderers/linearColour.ts # sRGB <-> linear colour helpers
  renderers/asteroidLift.ts # asteroid display lift, capped (R5.1, issue #62, Q-117)
  renderers/ttauriDisc.ts   # flared, lit T Tauri disc (R7.5, issue #62, Q-118)
  renderers/textureMean.ts  # mean luma of a loaded map: brown dwarf IR pattern (R5.2, Q-116), asteroid lift (Q-117)
  bodies/starModel.ts       # CPU model of star groups, flares and loops (R7.5, issue #42)
  volume/             # nebula, nova, coma, tails (issue #43): VolumeBody.ts, noiseVolume.ts (48³ cube), volumeMath.ts, volumeSpecs.ts
  shape/              # real shape models (R7.1, issue #43): shapeModel.ts (load, LOD), ShapeMaterial.ts (Lommel-Seeliger), ShapeAo.ts (baked AO)
  motion/             # R5.7 (issue #42): motion.ts (MOTION_CONFIG, caps), planMotion.ts (motion layers until stage 6), phase.ts
  render/             # render core (issue #39): pipeline.ts (RenderChain: HDR pass, bloom, highlight clip, TAAU or SMAA),
                      # quality.ts (quality levels, initialTier, FrameGovernor), clock.ts (SimClock, pause reasons),
                      # workerPool.ts (WorkerPool), fanout.ts (card and render-params fan-out loader, asset prefetch)
  mould/              # build animation (R5.8, issue #60, Q-113): mouldSteps.ts (pure: steps per type from the mock-up PLAN,
                      # step -> plan layers, progress, pose), MouldRig.ts (applies and exactly undoes a pose on a built scene)
  shaders/            # TSL helpers on three r187 (issue #39): noise.ts, sphere.ts, star.ts, loops.ts; index.ts re-exports
  sky/                # sky view (A21): SkyView.ts, skyMath.ts, surveys.ts
  fields/             (Atish)  # shared field for shader kinds (§7.7, D-12): fieldGenerator.ts (pure, FieldSampler), noise.ts,
                               # fieldWorker.ts, fieldClient.ts (main-thread fallback), flowModel.ts (moving storms, Q-105)
frontend/src/app/build/              (Moon)   # R5.8 (issue #60): BuildPane, SelectedCard, MouldStrip, useMould, selectedBody, focus.ts
frontend/src/sound/                  (Atish: D-13, D-17; haptics cut and the audio moved here, D-39)
  engine.ts           # R8.8 SoundEngine: honesty gate, rate cap, trains (Q-71), createSoundEngine (audio only)
  voices.ts           # R8.9 audio driver: timbre by tag, pitch, pan; plays into the events bus, ducks the ambience
  audioContext.ts     # the one shared AudioContext, created only by a click (R8.9); shared unlock state
  audioGraph.ts       # R13.9: events, spectrum and ambience buses, duck, 35 Hz HPF, harmonic branch, limiter; playBell
  settings.ts         # R13.9 settings, own Zustand store, one localStorage key; bindEngine
  pitch.ts spectrumMapping.ts   # pitch from λ (Q-70, Q-430: long λ low), spectrum → sample (R8.6)
  tuning.ts           # every sound tuning constant, marked CREATIVE placeholder (D-13) or [verify]
  listenSweep.ts      # A8 Listen sweep, into the spectrum bus
  appSound.ts SoundProvider.tsx   # the app's one engine and sweep, bound to settings, honesty and the page
  ui/SoundSettings.tsx            # R13.9 sound settings (SoundControls), in the build view's Ambience dropdown (Q-456)
  ambience/           # R13 flyover soundscape and weather (planned, #112 to #117; layout in R13.11)
frontend/src/contract/               (generated, D-18)  # generated.ts from shared/schemas/; hand-written helpers next to it:
                                                        # assertTagged(), tags.ts (TV<T>), haptics.ts (the R8.8 runtime types, Q-19; names kept after D-39)
frontend/src/shaderlab/                       # dev-only shader harness behind frontend/shaderlab.html; not a build input, not in dist/
shared/schemas/object-card.schema.json  render-params.schema.json   (Moon)
shared/fixtures/                     (Moon)  # cards/ and params/: one synthetic pair per ObjectType; invalid/: rejected cases

frontend/src/contract/ is generated code and follows the owner of shared/schemas/. D-17 names no owner for shaderlab/; Moon owns viewer/sky/ provisionally (Q-89).

Owner (D-17) Also owns, outside the paths above
Kevin Backend scaffold, data adapters (including Gaia and WISE), pipeline stages 1, 4 and 5, local hosting (D-24)
Moon (Munazir) The flipbook UI, the shader kinds, the overlay UI; pipeline stage 2 (brightness and spectrum), the physics layer (architecture spec §7)
Atish Pipeline stage 3 (classify), stage 7 (card_to_params), the texture baker, the Gemini layer, haptics and sound (D-13)