diff --git a/common.go b/common.go --- a/common.go +++ b/common.go @@ -11,7 +11,7 @@ import ( "time" ) -const version = "0.98.347-experimental1" +const version = "0.98.349-experimental1" const appDisplayName = "Projection Mapper - Built by Instinct" diff --git a/floral347.go b/floral347.go --- a/floral347.go +++ b/floral347.go @@ -13,9 +13,9 @@ type floralDef347 struct { } var floralEffects347 = []floralDef347{ - {"sandflora:rose-breath", "Sandflow Rose Breathing Garden", "Attributed Sandflow rose mesh grows, curls and opens. Arranged from authored contours; no scan or registration claim.", 0}, - {"sandflora:lily-tide", "Sandflow Spider Lily Tide", "Attributed spider lily mesh with slow petal expansion and swaying stems, on a black masked panel.", 1}, - {"sandflora:lotus-unfold", "Sandflow Water Bloom Unfolding", "Attributed spatterdock mesh with breathing leaves and flower forms; existing bound depth may vary lean and scale.", 2}, + {"sandflora:rose-breath", "Sandflow Rose Breathing Garden", "Attributed Sandflow rose mesh grows, curls and opens. Fits up to3authored object polygons per receiver; no scan or physical registration claim.", 0}, + {"sandflora:lily-tide", "Sandflow Spider Lily Tide", "Attributed spider lily mesh with slow petal expansion and swaying stems, scaled inside authored polygons with black-safe clipping.", 1}, + {"sandflora:lotus-unfold", "Sandflow Water Bloom Unfolding", "Attributed spatterdock mesh with breathing leaves and flower forms; actual mesh fit follows authored polygons; existing bound depth may vary lean and scale.", 2}, } func floralLookup347(id string) (floralDef347, bool) { diff --git a/internal/floral347/fit349.go b/internal/floral347/fit349.go --- /dev/null +++ b/internal/floral347/fit349.go @@ -0,0 +1,168 @@ +package floral347 + +import ( + "math" + "sort" +) + +// fit349 is an artistic arrangement inside one real authored UV polygon. +// It says nothing about the physical camera or projector registration. +type fit349 struct { + A Point + Scale float64 + Poly []Point + Mask []bool +} + +func inside349(q Point, p []Point) bool { + in := false + for i, a := range p { + b := p[(i+1)%len(p)] + if (a.Y > q.Y) != (b.Y > q.Y) && q.X < (b.X-a.X)*(q.Y-a.Y)/(b.Y-a.Y)+a.X { + in = !in + } + } + return in +} +func roomFits349(in Input) []fit349 { + var out []fit349 + for ci, p := range in.Contours { + if ci >= 12 || len(out) >= 3 { + break + } + if len(p) < 3 || len(p) > 256 { + continue + } + valid := true + for _, q := range p { + if !finite(q.X) || !finite(q.Y) || q.X < 0 || q.X > 1 || q.Y < 0 || q.Y > 1 { + valid = false + break + } + } + if !valid { + continue + } + // Scan interior columns, keep actual polygon spans, never use its box as art. + mask := polygonMask349(p, 480, 270) + contains := func(q Point) bool { return maskPoint349(mask, q) } + best := fit349{} + score := 0.0 + for xi := 1; xi < 24; xi++ { + x := float64(xi) / 24 + bottom, top := 0.0, 0.0 + run := false + for yi := 1; yi < 48; yi++ { + y := float64(yi) / 48 + if contains(Point{x, y}) { + if !run { + top = y + run = true + } + bottom = y + } else if run { + run = false + top = 0 + bottom = 0 + } + if !run { + continue + } + height := bottom - top + // Space at the crown is measured by point-in-polygon samples, not extents. + mid := bottom - height*.65 + half := 0.0 + for dx := 1; dx < 12; dx++ { + v := float64(dx) / 96 + if !contains(Point{x - v, mid}) || !contains(Point{x + v, mid}) { + break + } + half = v + } + scale := math.Min(height*.90, half*4.2) + if scale > score { + score = scale + best = fit349{A: Point{x, bottom - .012}, Scale: scale, Poly: p, Mask: mask} + } + } + } + if score > .045 { + out = append(out, best) + } + } + return out +} + +// Use every actual transformed mesh vertex. A concave polygon still gets an +// exact final pixel mask because an edge may cross a concavity between vertices. +func containedScale349(a Point, limit float64, poly []Point, mesh []Triangle) float64 { + return containedMaskScale349(a, limit, polygonMask349(poly, 480, 270), mesh) +} +func containedMaskScale349(a Point, limit float64, mask []bool, mesh []Triangle) float64 { + fits := func(scale float64) bool { + for _, tri := range mesh { + for _, v := range tri.P { + if !maskPoint349(mask, Point{a.X + v[0]*scale, a.Y + v[1]*scale}) { + return false + } + } + } + return true + } + if fits(limit) { + return limit + } + lo, hi := 0.0, limit + for i := 0; i < 9; i++ { + mid := (lo + hi) * .5 + if fits(mid) { + lo = mid + } else { + hi = mid + } + } + return lo * .98 +} + +func maskPoint349(mask []bool, q Point) bool { + x, y := int(q.X*480), int(q.Y*270) + return finite(q.X) && finite(q.Y) && x >= 1 && x < 479 && y >= 1 && y < 269 && mask[y*480+x] && mask[y*480+x-1] && mask[y*480+x+1] && mask[(y-1)*480+x] && mask[(y+1)*480+x] +} + +// Exact pixel-centre even/odd scan conversion, O(height*edges + pixels). +func polygonMask349(poly []Point, w, h int) []bool { + mask := make([]bool, w*h) + xs := make([]float64, 0, len(poly)) + for y := 0; y < h; y++ { + v := (float64(y) + .5) / float64(h) + xs = xs[:0] + for i, a := range poly { + b := poly[(i+1)%len(poly)] + if (a.Y > v) != (b.Y > v) { + xs = append(xs, a.X+(b.X-a.X)*(v-a.Y)/(b.Y-a.Y)) + } + } + sort.Float64s(xs) + for i := 0; i+1 < len(xs); i += 2 { + x0 := int(math.Ceil(xs[i]*float64(w) - .5)) + x1 := int(math.Ceil(xs[i+1]*float64(w) - .5)) + if x0 < 0 { + x0 = 0 + } + if x1 > w { + x1 = w + } + for x := x0; x < x1; x++ { + mask[y*w+x] = true + } + // Re-evaluate the few edge-adjacent pixel centres with the same + // predicate as geometry containment, avoiding roundoff at ties. + for _, edgeX := range []int{x0 - 1, x0, x1 - 1, x1} { + if edgeX >= 0 && edgeX < w { + mask[y*w+edgeX] = inside349(Point{(float64(edgeX) + .5) / float64(w), v}, poly) + } + } + } + } + return mask +} diff --git a/internal/floral347/fit349_test.go b/internal/floral347/fit349_test.go --- /dev/null +++ b/internal/floral347/fit349_test.go @@ -0,0 +1,138 @@ +package floral347 + +import ( + "fmt" + "image/png" + "math" + "os" + "testing" +) + +func TestRoomFits349(t *testing.T) { + layouts := []Input{ + {Contours: [][]Point{{{.08, .9}, {.08, .2}, {.32, .2}, {.32, .9}}, {{.4, .9}, {.4, .5}, {.9, .5}, {.9, .9}}}}, + {Contours: [][]Point{{{.05, .9}, {.5, .1}, {.95, .9}}}}, + {Contours: [][]Point{{{.08, .9}, {.08, .15}, {.9, .15}, {.9, .38}, {.4, .38}, {.4, .9}}}}, + } + for li, in := range layouts { + fits := roomFits349(in) + if len(fits) == 0 { + t.Fatal("no valid fit") + } + for mode := 0; mode < 3; mode++ { + var s State + im := s.Render(mode, 3, in) + lit := 0 + for y := 0; y < im.Rect.Dy(); y++ { + for x := 0; x < im.Rect.Dx(); x++ { + o := im.PixOffset(x, y) + if im.Pix[o+3] == 0 { + continue + } + lit++ + inside := false + for _, p := range in.Contours { + if inside349(Point{(float64(x) + .5) / float64(im.Rect.Dx()), (float64(y) + .5) / float64(im.Rect.Dy())}, p) { + inside = true + } + } + if !inside { + t.Fatal("lit pixel outside authored contour") + } + } + } + if lit < 30 { + t.Fatalf("too little visible art layout%d mode%d:%d", li, mode, lit) + } + if os.Getenv("FLORAL_PREVIEWS") != "" { + f, e := os.Create(fmt.Sprintf("/downloads/pm-monitor-recovery/fit349-%d-%d.png", li, mode)) + if e != nil { + t.Fatal(e) + } + png.Encode(f, im) + f.Close() + } + } + } +} + +func BenchmarkRoomFitPanel349(b *testing.B) { + in := Input{Contours: [][]Point{{{.05, .9}, {.5, .1}, {.95, .9}}, {{.2, .7}, {.3, .4}, {.4, .7}}}} + var s State + for i := 0; i < b.N; i++ { + s.Render(1, float64(i)/15, in) + } +} + +func TestNoFitDoesNotInventGarden349(t *testing.T) { + in := Input{Contours: [][]Point{{{.01, .01}, {.02, .01}, {.02, .02}}}} + var s State + im := s.Render(0, 1, in) + for i := 3; i < len(im.Pix); i += 4 { + if im.Pix[i] != 0 { + t.Fatal("unfittable authored input fell back to unbound garden") + } + } +} +func TestActualVertexContainment349(t *testing.T) { + poly := []Point{{.2, .85}, {.2, .2}, {.65, .2}, {.65, .85}} + a := Point{.42, .8} + mesh := []Triangle{{P: [3][3]float64{{-1, -1, 0}, {1, -1, 0}, {0, 0, 0}}}} + scale := containedScale349(a, .9, poly, mesh) + if scale <= 0 || scale >= .9 { + t.Fatal("fit did not constrain actual vertices") + } + for _, v := range mesh[0].P { + if !inside349(Point{a.X + v[0]*scale, a.Y + v[1]*scale}, poly) { + t.Fatal("vertex escaped") + } + } +} + +func BenchmarkWorstCaseRoomFit349(b *testing.B) { + var in Input + for k := 0; k < 12; k++ { + var p []Point + for i := 0; i < 256; i++ { + a := float64(i) * 2 * math.Pi / 256 + p = append(p, Point{.5 + .45*math.Cos(a), .5 + .45*math.Sin(a)}) + } + in.Contours = append(in.Contours, p) + } + var s State + for i := 0; i < b.N; i++ { + s.Render(1, float64(i)/15, in) + } +} + +func TestMaskMatchesPolygon349(t *testing.T) { + polys := [][]Point{{{.05, .9}, {.5, .1}, {.95, .9}}, {{.1, .9}, {.1, .1}, {.9, .1}, {.9, .35}, {.4, .35}, {.4, .9}}} + for _, p := range polys { + mask := polygonMask349(p, 480, 270) + for y := 0; y < 270; y++ { + for x := 0; x < 480; x++ { + if mask[y*480+x] != inside349(Point{(float64(x) + .5) / 480, (float64(y) + .5) / 270}, p) { + t.Fatalf("scan mask differs at%d,%d", x, y) + } + } + } + } +} +func TestGeometryMaskCache349(t *testing.T) { + a := Input{Contours: [][]Point{{{.1, .9}, {.5, .1}, {.9, .9}}}} + var s State + s.Render(0, 1, a) + if len(s.fits) == 0 { + t.Fatal("no fit") + } + p := &s.fits[0].Mask[0] + s.Render(0, 2, a) + if p != &s.fits[0].Mask[0] { + t.Fatal("static geometry mask rebuilt each frame") + } + a.Contours[0][1].X = .4 + s.Render(0, 3, a) + if p == &s.fits[0].Mask[0] { + t.Fatal("geometry change did not rebuild mask") + } +} diff --git a/internal/floral347/floral.go b/internal/floral347/floral.go --- a/internal/floral347/floral.go +++ b/internal/floral347/floral.go @@ -41,10 +41,12 @@ type Input struct { Depth func(u, v float64) (d, nx, ny, nz float64, ok bool) } type State struct { - mu sync.Mutex - bucket int64 - sig uint64 - im *image.RGBA + mu sync.Mutex + bucket int64 + sig uint64 + im *image.RGBA + geomSig uint64 + fits []fit349 } func finite(x float64) bool { return !math.IsNaN(x) && !math.IsInf(x, 0) } @@ -88,42 +90,122 @@ func signature(in Input) uint64 { } return h } -func anchors(in Input) []Point { - // Use real authored contour vertices, never their bounding rectangle. Invalid - // or off-receiver geometry is ignored. No input means a declared panel garden. + +// pathSamples follows actual authored contour edges at equal arc lengths. It +// never substitutes a rectangle or invents a measured physical surface. +func pathSamples(in Input) []Point { var out []Point - for ci, p := range in.Contours { + for ci, raw := range in.Contours { if ci >= 64 { break } - if len(p) < 3 { + if len(raw) < 3 { continue } - for j := 0; j < len(p) && len(out) < 3; j++ { - q := p[j] - if !finite(q.X) || !finite(q.Y) || q.X < .08 || q.X > .92 || q.Y < .2 || q.Y > .96 { - continue + n := len(raw) + if n > 256 { + n = 256 + } + valid := true + for _, q := range raw[:n] { + if !finite(q.X) || !finite(q.Y) || q.X < 0 || q.X > 1 || q.Y < 0 || q.Y > 1 { + valid = false + break } - clear := true - for _, a := range out { - if math.Hypot(q.X-a.X, q.Y-a.Y) < .20 { - clear = false + } + if !valid { + continue + } + lengths := make([]float64, n) + total := 0.0 + for i, a := range raw[:n] { + b := raw[(i+1)%n] + lengths[i] = math.Hypot(b.X-a.X, b.Y-a.Y) + total += lengths[i] + } + if total < .02 { + continue + } + for k := 0; k < 12; k++ { + target := total * (float64(k) + .5) / 12 + for i, d := range lengths { + if target > d { + target -= d + continue } - } - if clear { - out = append(out, q) + if d > 1e-9 { + a, b := raw[i], raw[(i+1)%n] + f := target / d + out = append(out, Point{a.X + (b.X-a.X)*f, a.Y + (b.Y-a.Y)*f}) + } + break } } - if len(out) == 3 { + if len(out) >= 48 { break } } - if len(out) == 0 { + return out +} +func anchors(in Input) []Point { + samples := pathSamples(in) + if len(samples) == 0 { return []Point{{.24, .91}, {.51, .79}, {.77, .94}} } + // Prefer low boundary points so the flowers rise into the authored object. + // The farthest-point picks spread growth without using the contour bbox. + first := samples[0] + for _, q := range samples { + if q.Y > first.Y { + first = q + } + } + out := []Point{first} + for len(out) < 3 { + best := Point{} + score := 0.0 + for _, q := range samples { + if q.X < .04 || q.X > .96 || q.Y < .2 || q.Y > .98 { + continue + } + d := 2.0 + for _, a := range out { + d = math.Min(d, math.Hypot(q.X-a.X, q.Y-a.Y)) + } + v := d * (.55 + .45*q.Y) + if v > score { + best = q + score = v + } + } + if score < .12 { + break + } + out = append(out, best) + } return out } +// outlineBend produces an artistic receiver-local deformation from an actual +// nearby contour sample. No contour is a neutral zero field. +func outlineBend(samples []Point, a Point, z, t float64, k int) float64 { + if len(samples) == 0 { + return 0 + } + best := samples[0] + dist := math.Inf(1) + targetY := a.Y - z*.46 + for _, q := range samples { + d := math.Abs(q.Y-targetY) + math.Abs(q.X-a.X)*.3 + if d < dist { + best = q + dist = d + } + } + follow := clamp((best.X-a.X)*.65, -.13, .13) + return follow * z * z * (.72 + .28*math.Sin(t*.24+float64(k))) +} + // Render returns an immutable cached image. Geometry and accepted depth changes // invalidate it immediately; animation is limited to15 prepared panels/second. func (s *State) Render(mode int, t float64, in Input) *image.RGBA { @@ -137,22 +219,38 @@ func (s *State) Render(mode int, t float64, in Input) *image.RGBA { if s.im != nil && s.bucket == b && s.sig == sig { return s.im } - s.im = render(mode, float64(b)/15, in, 320, 180) + gs := signature(Input{Contours: in.Contours}) + if s.fits == nil || s.geomSig != gs { + s.fits = roomFits349(in) + s.geomSig = gs + } + s.im = renderFits349(mode, float64(b)/15, in, 480, 270, s.fits) s.bucket = b s.sig = sig return s.im } func render(mode int, t float64, in Input, w, h int) *image.RGBA { + return renderFits349(mode, t, in, w, h, roomFits349(in)) +} +func renderFits349(mode int, t float64, in Input, w, h int, fits []fit349) *image.RGBA { im := image.NewRGBA(image.Rect(0, 0, w, h)) zbuf := make([]float64, w*h) for i := range zbuf { zbuf[i] = math.Inf(-1) } - for k, a := range anchors(in) { + samples := pathSamples(in) + if len(fits) == 0 && len(in.Contours) == 0 { + for _, a := range anchors(Input{}) { + fits = append(fits, fit349{A: a, Scale: .52}) + } + } + for k, fit := range fits { + a := fit.A + fitMask := fit.Mask phase := t*.48 + float64(k)*1.7 growth := .69 + .27*(.5+.5*math.Sin(phase)) opening := .72 + .31*math.Sin(phase*.77) - sz := .62 + sz := fit.Scale lean := .055 * math.Sin(t*.41+float64(k)) yaw := .33 * math.Sin(t*.19+float64(k)*.9) if in.Depth != nil { @@ -162,17 +260,30 @@ func render(mode int, t float64, in Input, w, h int) *image.RGBA { lean += clamp(nx, -1, 1) * .09 } } - for _, tri := range meshes[mode] { - var p [3][3]float64 + // Transform mesh once, then find a scale whose actual vertices fit the + // authored polygon. Raster clipping is a final guard, not the fit. + transformed := make([]Triangle, len(meshes[mode])) + for ti, tri := range meshes[mode] { + transformed[ti].C = tri.C for j, v := range tri.P { x, y, z := v[0], v[1], v[2] bloom := clamp((z-.52)/.38, 0, 1) x *= 1 + (opening-1)*bloom y *= 1 + (opening-1)*bloom z *= growth - x += lean*z*z + math.Sin(z*5+t*.7+float64(k))*.015*z + x += lean*z*z + math.Sin(z*5+t*.7+float64(k))*.015*z + outlineBend(samples, a, z, t, k) + y += bloom * bloom * .022 * math.Sin(math.Atan2(v[1], v[0])*5+t*.8+float64(k)) x, y = x*math.Cos(yaw)-y*math.Sin(yaw), x*math.Sin(yaw)+y*math.Cos(yaw) - p[j] = [3]float64{(a.X + x*sz) * float64(w), (a.Y - z*sz + y*sz*.20) * float64(h), y} + transformed[ti].P[j] = [3]float64{x, -z + y*.20, y} + } + } + if len(fit.Poly) > 0 { + sz = containedMaskScale349(a, sz, fit.Mask, transformed) + } + for ti, tri := range meshes[mode] { + var p [3][3]float64 + for j, v := range transformed[ti].P { + p[j] = [3]float64{(a.X + v[0]*sz) * float64(w), (a.Y + v[1]*sz) * float64(h), v[2]} } // Diffuse shading from actual mesh triangles, no claim of physical room light. ux, uy, uz := tri.P[1][0]-tri.P[0][0], tri.P[1][1]-tri.P[0][1], tri.P[1][2]-tri.P[0][2] @@ -181,16 +292,16 @@ func render(mode int, t float64, in Input, w, h int) *image.RGBA { n := math.Sqrt(nx*nx + ny*ny + nz*nz) shade := .8 if n > 1e-12 { - shade = .55 + .45*math.Abs((nx*.3-ny*.65+nz*.7)/n) + shade = .47 + .53*math.Abs((nx*.3-ny*.65+nz*.7)/n) } c := color.RGBA{uint8(clamp(float64(tri.C[0])*shade*1.35, 0, 255)), uint8(clamp(float64(tri.C[1])*shade*1.35, 0, 255)), uint8(clamp(float64(tri.C[2])*shade*1.35, 0, 255)), 255} - raster(im, zbuf, p, c) + rasterFit349(im, zbuf, p, c, fitMask) } } return im } func edge(a, b [3]float64, x, y float64) float64 { return (x-a[0])*(b[1]-a[1]) - (y-a[1])*(b[0]-a[0]) } -func raster(im *image.RGBA, zbuf []float64, p [3][3]float64, c color.RGBA) { +func rasterFit349(im *image.RGBA, zbuf []float64, p [3][3]float64, c color.RGBA, mask []bool) { area := edge(p[0], p[1], p[2][0], p[2][1]) if math.Abs(area) < 1e-9 { return @@ -214,6 +325,9 @@ func raster(im *image.RGBA, zbuf []float64, p [3][3]float64, c color.RGBA) { y0, y1 := int(clamp(math.Floor(ymin), 0, float64(h-1))), int(clamp(math.Ceil(ymax), 0, float64(h-1))) for y := y0; y <= y1; y++ { for x := x0; x <= x1; x++ { + if len(mask) > 0 && !mask[y*w+x] { + continue + } u := edge(p[1], p[2], float64(x)+.5, float64(y)+.5) / area v := edge(p[2], p[0], float64(x)+.5, float64(y)+.5) / area z := 1 - u - v diff --git a/internal/floral347/floral_test.go b/internal/floral347/floral_test.go --- a/internal/floral347/floral_test.go +++ b/internal/floral347/floral_test.go @@ -85,3 +85,39 @@ func BenchmarkPreparedFloral347(b *testing.B) { s.Render(1, float64(i)/15, Input{}) } } + +func TestContourEdgeSampling348(t *testing.T) { + a := Input{Contours: [][]Point{{{.12, .9}, {.5, .2}, {.88, .9}}}} + b := Input{Contours: [][]Point{{{.12, .9}, {.31, .55}, {.5, .2}, {.69, .55}, {.88, .9}}}} + pa, pb := pathSamples(a), pathSamples(b) + if len(pa) != 12 || len(pb) != 12 { + t.Fatal("unexpected sample count") + } + for i := range pa { + if math.Hypot(pa[i].X-pb[i].X, pa[i].Y-pb[i].Y) > 1e-10 { + t.Fatal("collinear vertex subdivision moved the garden") + } + } + if outlineBend(nil, Point{.5, .8}, .9, 1, 0) != 0 { + t.Fatal("missing contour not neutral") + } + malformed := Input{Contours: [][]Point{{{.2, .8}, {math.NaN(), .2}, {.8, .8}}}} + if len(pathSamples(malformed)) != 0 { + t.Fatal("invalid contour used") + } +} +func TestInteriorContourMorph348(t *testing.T) { + // Identical bounds and all original347 anchor vertices, different edge shape. + a := Input{Contours: [][]Point{{{.16, .9}, {.48, .72}, {.82, .9}, {.82, .25}, {.16, .25}}}} + b := Input{Contours: [][]Point{{{.16, .9}, {.48, .72}, {.82, .9}, {.82, .25}, {.5, .55}, {.16, .25}}}} + var x, y State + for mode := 0; mode < 3; mode++ { + aa, bb := x.Render(mode, 2, a), y.Render(mode, 2, b) + if bytes.Equal(aa.Pix, bb.Pix) { + t.Fatalf("mode%d ignored interior edge", mode) + } + if aa.Bounds() != bb.Bounds() || aa.Rect.Dx() != 480 || aa.Rect.Dy() != 270 { + t.Fatal("unexpected panel shape") + } + } +} diff --git a/whatsnew_ui_win.go b/whatsnew_ui_win.go --- a/whatsnew_ui_win.go +++ b/whatsnew_ui_win.go @@ -47,6 +47,8 @@ type whatsNewFeature struct { } var whatsNewFeatures = []whatsNewFeature{ + {"349: Floral meshes fit authored object shapes", "Experimental low-poly floral art. Native Windows/projector/real-room NOT RUN.", []string{"Sandflow flowers now fit actual authored polygon interiors. Mesh vertices are scaled before drawing; exact polygon clipping is a final guard. Up to3blooms per receiver, scanning at most12authored objects. More objects may remain unfilled.", "Geometry masks are cached and rebuilt when outlines change. Missing outlines show a declared panel garden; invalid or unfittable authored outlines stay black. No new scan, camera input, registration or physical-room acceptance.", "Includes held348 contour sampling, bounded stem bending, separate petal ripple and480x270prepared panels. Sandflow CC BY4.0 attribution retained. Low-poly art, not cinematic model inference."}, []string{"Test on a project copy with your real authored object outlines. Compare tall, wide and concave shapes, change the contour, then Stop.347 rollback retained."}, ""}, + {"348: Contour-following floral growth", "Experimental low-poly art. Native Windows/projector/real-room NOT RUN.", []string{"Actual authored contour edges are sampled at equal distances, with spaced growth anchors and a bounded contour-dependent stem bend. Petal ripple has a separate phase. No new camera input or physical registration.", "Prepared panel detail increased from320x180 to480x270 at15Hz. Cached rendering remains bounded. Local synthetic portable tests are not hardware acceptance. Sandflow CC BY4.0 attribution retained."}, []string{"Use existing Sandflow effects. Work on a project copy; compare different authored outlines and bound depth.347 rollback remains available."}, ""}, {"347: Sandflow living floral studies", "Experimental artistic panels, not measured room registration. Native Windows/projector NOT RUN.", []string{"Three actual Sandflow Nature meshes: rose, spider lily and spatterdock. Static source geometry is locally animated with stem bending, growth and petal opening. Authored contour vertices drive arrangement; existing receiver-bound depth can change lean and scale. Missing depth stays a flat artistic panel.", "Sandflow Sand3D Nature, CC BY4.0: https://huggingface.co/datasets/Sandflow/sand3d-nature . License https://creativecommons.org/licenses/by/4.0/ . Adapted: removed pots/backgrounds, normalized/quantized meshes and added animation. No dataset Python executed, paid calls or new camera upload.", "Native output masks remain unchanged and applied after artwork sampling. No whole-frame upscaling or Nexus integration.346 OpenRouter safeguards, reach calibration, old FishTank art, audio and logging preserved."}, []string{"Use the effect library Botanical Motion category or search Sandflow. Test each floral study on a project copy, then Stop. With no authored objects, a declared panel garden is shown. Physical alignment and rig performance are not accepted by synthetic previews."}, ""}, {"346: free OpenRouter repair and engine budget", "Experimental. Windows UI and projector NOT RUN.", []string{"OpenRouter requests cap prompt, completion, image and request prices at zero. Expired or rejected keys stop before model rotation, including HTTP200 error envelopes. Connection test is bounded and does not claim vision was tested. Failed local fallback retains the OpenRouter error.", "Engine skips only fully masked-out pure AG100 shaders, preserving all plans in room geometry. Stateful effects, audio and video keep their lifecycle. Profiler p95 now uses nearest-rank so small samples do not hide the slowest frame.", "This is a first optimization tier, not completion of all30 proposals or a measured rig FPS gain. No calibration thresholds, saved maps or old FishTank art changed."}, []string{"Set a valid OpenRouter key on this PC and run Test connection. Vault key replacement does not update the key already saved in this app.", "Test AG100 effects on visible and fully cut-out surfaces, plus piano Pause/Blackout. Compare the frame profiler on your rig and send logs for failures."}, ""}, {"338: bounded Depth Interiors projector test", "Experimental single-view artwork. Windows product compiled, not executed on Windows or projector hardware.", []string{"Depth Interiors has a separate seven-second saved-depth projector test. It needs a fresh qualified saved scan/registered photo, calibrated 3D target, the original active camera session, an already-open exact native-size projector and a paused show. Explicitly confirm camera, projector and receiver are unmoved. Fresh frames cannot detect hidden movement.", "Loss, stale frames, changed sources/project/page/camera/display or expiry latch output BLACK. Stop in Depth Interiors restores the paused show, without automatic playback. The native BGRA path never fits or rescales measured pixels. Native 4K is currently refused by the 4.19-million-pixel budget.", "Depth art stays out of ordinary scene snapshots, timelapses and WLED feeds. This is not hidden-content detection, physical bulb lighting or qualified furniture fit. Synthetic demo remains separate. No project changes, paid AI, auto model downloads or RealFX activation."}, []string{"Back up your project. First try the synthetic demo. For qualified saved depth, pause the show, deliberately open the calibrated native projector, then use Seven-second saved-depth projector test. Press Stop to restore the paused show. Native Windows and hardware acceptance remain unverified."}, ""},