Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

feat(city): add rooftop holograms and pixel art window murals

Adam Eivy1dadb41cc896
diff --git a/.changelog/v0.12.x.md b/.changelog/v0.12.x.md
index 0458d2ff46..f4affc346a 100644
--- a/.changelog/v0.12.x.md
+++ b/.changelog/v0.12.x.md
@@ -149,6 +149,8 @@ This release adds branch management and automated release workflow capabilities
- **Twinkling starfield**: Enhanced sky with 1500 color-varied stars using a custom shader — soft circular points, per-star twinkle animation, and fog-immune rendering so stars are visible through the atmospheric haze
- **Full building names**: App names display in full on building facades using intelligent word-wrapping — hyphens, underscores, and dots are replaced with spaces (e.g., "void-server" renders as "VOID SERVER" across two lines)
- **Visible archive district**: Archived buildings are taller, brighter, and closer to the main city — upgraded from near-invisible to a clearly distinguishable warehouse district with brighter slate wireframes and always-on holographic labels
+- **Pixel art window murals**: Each building displays a unique pixel art icon (heart, server rack, lightning, star, shield, gear, globe, terminal) rendered as lit office windows on the building face — deterministic per app via name hash
+- **Floating holographic decorations**: Animated 3D wireframe shapes hover above each building rooftop — diamonds, inverted pyramids, Saturn spheres, stacked rings, cubes, and beacon orbs — slowly rotating and bobbing with accent-colored glow
**Client changes**:
- `client/src/pages/CyberCity.jsx` — Page component with data hook integration and HUD overlay
@@ -156,7 +158,8 @@ This release adds branch management and automated release workflow capabilities
- `client/src/components/city/CityScene.jsx` — React Three Fiber Canvas with orbit controls
- `client/src/components/city/CityGround.jsx` — drei Grid with Tron-style cyan lines
- `client/src/components/city/CityLights.jsx` — Ambient, point lights, and fog for atmosphere
-- `client/src/components/city/Building.jsx` — App building mesh with neon wireframe edges and hover glow
+- `client/src/components/city/Building.jsx` — App building mesh with neon wireframe edges, pixel art window murals, and hover glow
+- `client/src/components/city/BuildingHologram.jsx` — Animated rooftop holographic decorations (6 shape types)
- `client/src/components/city/BuildingCluster.jsx` — Positions all buildings via layout algorithm with archive district
- `client/src/components/city/AgentEntity.jsx` — Floating octahedron agent with bob animation and sparkles
- `client/src/components/city/HolographicPanel.jsx` — drei Html floating status label per building
diff --git a/client/src/components/city/Building.jsx b/client/src/components/city/Building.jsx
index 887c97ec0f..55ee7f248f 100644
--- a/client/src/components/city/Building.jsx
+++ b/client/src/components/city/Building.jsx
@@ -4,13 +4,100 @@ import { Text } from '@react-three/drei';
import * as THREE from 'three';
import { getBuildingColor, getBuildingHeight, getAccentColor, CITY_COLORS, BUILDING_PARAMS, PIXEL_FONT_URL } from './cityConstants';
import HolographicPanel from './HolographicPanel';
+import BuildingHologram from './BuildingHologram';
-// Generate a pixel window texture for a building face
+// 7x7 pixel art icons drawn on building faces via lit office windows
+const PIXEL_ICONS = [
+ // Heart
+ [
+ [0,1,0,0,0,1,0],
+ [1,1,1,0,1,1,1],
+ [1,1,1,1,1,1,1],
+ [0,1,1,1,1,1,0],
+ [0,0,1,1,1,0,0],
+ [0,0,0,1,0,0,0],
+ [0,0,0,0,0,0,0],
+ ],
+ // Server rack
+ [
+ [1,1,1,1,1,1,1],
+ [1,0,0,0,0,1,1],
+ [1,1,1,1,1,1,1],
+ [1,0,0,0,0,1,1],
+ [1,1,1,1,1,1,1],
+ [1,0,0,0,0,1,1],
+ [1,1,1,1,1,1,1],
+ ],
+ // Lightning bolt
+ [
+ [0,0,0,1,1,0,0],
+ [0,0,1,1,0,0,0],
+ [0,1,1,1,1,0,0],
+ [0,0,1,1,1,1,0],
+ [0,0,0,1,1,0,0],
+ [0,0,1,1,0,0,0],
+ [0,0,1,0,0,0,0],
+ ],
+ // Star
+ [
+ [0,0,0,1,0,0,0],
+ [0,0,1,1,1,0,0],
+ [1,1,1,1,1,1,1],
+ [0,1,1,1,1,1,0],
+ [0,1,1,0,1,1,0],
+ [0,1,0,0,0,1,0],
+ [1,0,0,0,0,0,1],
+ ],
+ // Shield
+ [
+ [0,1,1,1,1,1,0],
+ [1,1,1,1,1,1,1],
+ [1,1,0,1,0,1,1],
+ [1,1,1,1,1,1,1],
+ [0,1,1,1,1,1,0],
+ [0,0,1,1,1,0,0],
+ [0,0,0,1,0,0,0],
+ ],
+ // Gear
+ [
+ [0,1,0,1,0,1,0],
+ [1,1,1,1,1,1,1],
+ [0,1,0,0,0,1,0],
+ [1,1,0,0,0,1,1],
+ [0,1,0,0,0,1,0],
+ [1,1,1,1,1,1,1],
+ [0,1,0,1,0,1,0],
+ ],
+ // Globe
+ [
+ [0,0,1,1,1,0,0],
+ [0,1,0,1,0,1,0],
+ [1,0,0,1,0,0,1],
+ [1,1,1,1,1,1,1],
+ [1,0,0,1,0,0,1],
+ [0,1,0,1,0,1,0],
+ [0,0,1,1,1,0,0],
+ ],
+ // Terminal
+ [
+ [1,1,1,1,1,1,1],
+ [1,0,0,0,0,0,1],
+ [1,0,1,1,0,0,1],
+ [1,0,0,1,0,0,1],
+ [1,0,0,0,0,0,1],
+ [1,1,1,1,1,1,1],
+ [0,0,1,1,1,0,0],
+ ],
+];
+
+// Generate a pixel window texture with icon mural for a building face
const createWindowTexture = (accentColor, width, height, seed) => {
const canvas = document.createElement('canvas');
- const px = 8; // pixel grid size
- canvas.width = px * 8;
- canvas.height = px * Math.max(12, Math.floor(height * 4));
+ const px = 8;
+ const cols = 12;
+ const rowCount = Math.max(16, Math.floor(height * 5));
+ canvas.width = px * cols;
+ canvas.height = px * rowCount;
const ctx = canvas.getContext('2d');
// Dark base
@@ -21,25 +108,40 @@ const createWindowTexture = (accentColor, width, height, seed) => {
let s = seed;
const rand = () => { s = (s * 16807 + 0) % 2147483647; return (s & 0x7fffffff) / 2147483647; };
- // Draw window grid
- const rows = Math.floor(canvas.height / px);
- const cols = Math.floor(canvas.width / px);
-
- for (let r = 1; r < rows - 1; r++) {
+ // Draw random ambient windows (dimmer background pattern)
+ for (let r = 1; r < rowCount - 1; r++) {
for (let c = 1; c < cols - 1; c++) {
- if (r % 3 === 0 || c % 3 === 0) continue; // Window frame gaps
- const lit = rand() > 0.5;
- if (lit) {
- // Mix between accent and white-ish for warm window glow
+ if (r % 3 === 0 || c % 3 === 0) continue;
+ if (rand() > 0.6) {
const bright = rand();
- if (bright > 0.7) {
- ctx.fillStyle = accentColor;
- } else if (bright > 0.3) {
- ctx.fillStyle = accentColor + '80'; // Semi-transparent accent
+ if (bright > 0.8) {
+ ctx.fillStyle = accentColor + '50';
+ } else if (bright > 0.4) {
+ ctx.fillStyle = accentColor + '25';
} else {
- ctx.fillStyle = '#0f172a';
+ ctx.fillStyle = '#0a0f1e';
}
- ctx.fillRect(c * px, r * px, px - 1, px - 1);
+ ctx.fillRect(c * px + 1, r * px + 1, px - 2, px - 2);
+ }
+ }
+ }
+
+ // Draw pixel art icon mural centered on face
+ const icon = PIXEL_ICONS[seed % PIXEL_ICONS.length];
+ const iconRows = icon.length;
+ const iconCols = icon[0].length;
+ const startCol = Math.floor((cols - iconCols) / 2);
+ const startRow = Math.floor((rowCount - iconRows) / 2);
+
+ for (let r = 0; r < iconRows; r++) {
+ for (let c = 0; c < iconCols; c++) {
+ if (icon[r][c]) {
+ // Bright accent pixel - solid, no frame gaps
+ ctx.fillStyle = accentColor;
+ ctx.fillRect((startCol + c) * px, (startRow + r) * px, px, px);
+ // Slight inner highlight for pixel art depth
+ ctx.fillStyle = 'rgba(255,255,255,0.15)';
+ ctx.fillRect((startCol + c) * px + 1, (startRow + r) * px + 1, px - 3, px - 3);
}
}
}
@@ -55,7 +157,6 @@ const createWindowTexture = (accentColor, width, height, seed) => {
export default function Building({ app, position, agentCount, onClick }) {
const meshRef = useRef();
const glowRef = useRef();
- const nameRef = useRef();
const [hovered, setHovered] = useState(false);
const height = getBuildingHeight(app);
@@ -75,13 +176,13 @@ export default function Building({ app, position, agentCount, onClick }) {
const boxGeom = useMemo(() => new THREE.BoxGeometry(width, height, depth), [width, height, depth]);
const edgesGeom = useMemo(() => new THREE.EdgesGeometry(boxGeom), [boxGeom]);
- // Window texture for building faces
+ // Window texture with pixel art icon
const windowTexture = useMemo(
() => createWindowTexture(accentColor, width, height, seed),
[accentColor, width, height, seed]
);
- // Format name for building face: replace separators with spaces, full name
+ // Format name for building face
const displayName = useMemo(() => {
return (app.name || '').replace(/[-_.]/g, ' ').toUpperCase();
}, [app.name]);
@@ -102,7 +203,7 @@ export default function Building({ app, position, agentCount, onClick }) {
return (
<group position={[position.x, 0, position.z]}>
- {/* Building body with window texture */}
+ {/* Building body with window texture + pixel art icon */}
<mesh
ref={meshRef}
position={[0, height / 2, 0]}
@@ -142,9 +243,8 @@ export default function Building({ app, position, agentCount, onClick }) {
{/* Building name on front face - pixel font */}
<Text
- ref={nameRef}
- position={[0, height * 0.65, depth / 2 + 0.02]}
- fontSize={0.22}
+ position={[0, height * 0.88, depth / 2 + 0.02]}
+ fontSize={0.2}
color={edgeColor}
anchorX="center"
anchorY="middle"
@@ -156,8 +256,8 @@ export default function Building({ app, position, agentCount, onClick }) {
{/* Building name on back face */}
<Text
- position={[0, height * 0.65, -(depth / 2 + 0.02)]}
- fontSize={0.22}
+ position={[0, height * 0.88, -(depth / 2 + 0.02)]}
+ fontSize={0.2}
color={edgeColor}
anchorX="center"
anchorY="middle"
@@ -168,9 +268,9 @@ export default function Building({ app, position, agentCount, onClick }) {
{displayName}
</Text>
- {/* Vertical name on left side */}
+ {/* Name on left side */}
<Text
- position={[-(width / 2 + 0.02), height * 0.5, 0]}
+ position={[-(width / 2 + 0.02), height * 0.88, 0]}
fontSize={0.18}
color={accentColor}
anchorX="center"
@@ -207,12 +307,19 @@ export default function Building({ app, position, agentCount, onClick }) {
</>
)}
+ {/* Floating hologram above building */}
+ <BuildingHologram
+ position={[0, height + 0.8, 0]}
+ color={accentColor}
+ seed={seed}
+ />
+
{/* Holographic label */}
{(hovered || isOnline || app.archived) && (
<HolographicPanel
app={app}
agentCount={agentCount}
- position={[0, height + 1.0, 0]}
+ position={[0, height + 1.8, 0]}
/>
)}
</group>
diff --git a/client/src/components/city/BuildingHologram.jsx b/client/src/components/city/BuildingHologram.jsx
new file mode 100644
index 0000000000..950e7854b8
--- /dev/null
+++ b/client/src/components/city/BuildingHologram.jsx
@@ -0,0 +1,150 @@
+import { useRef, useMemo } from 'react';
+import { useFrame } from '@react-three/fiber';
+import * as THREE from 'three';
+
+const HOLOGRAM_TYPES = ['diamond', 'invertedPyramid', 'saturn', 'rings', 'cube', 'beacon'];
+
+function HoloDiamond({ color }) {
+ const geom = useMemo(() => new THREE.OctahedronGeometry(0.5, 0), []);
+ const edges = useMemo(() => new THREE.EdgesGeometry(geom), [geom]);
+ return (
+ <group>
+ <mesh geometry={geom}>
+ <meshBasicMaterial color={color} transparent opacity={0.12} side={THREE.DoubleSide} />
+ </mesh>
+ <lineSegments geometry={edges}>
+ <lineBasicMaterial color={color} transparent opacity={0.85} />
+ </lineSegments>
+ </group>
+ );
+}
+
+function HoloPyramid({ color }) {
+ const geom = useMemo(() => new THREE.ConeGeometry(0.5, 0.8, 4), []);
+ const edges = useMemo(() => new THREE.EdgesGeometry(geom), [geom]);
+ return (
+ <group rotation={[Math.PI, 0, Math.PI / 4]}>
+ <mesh geometry={geom}>
+ <meshBasicMaterial color={color} transparent opacity={0.12} side={THREE.DoubleSide} />
+ </mesh>
+ <lineSegments geometry={edges}>
+ <lineBasicMaterial color={color} transparent opacity={0.85} />
+ </lineSegments>
+ </group>
+ );
+}
+
+function HoloSaturn({ color }) {
+ const sphereGeom = useMemo(() => new THREE.IcosahedronGeometry(0.25, 1), []);
+ const ringGeom = useMemo(() => new THREE.TorusGeometry(0.5, 0.025, 8, 32), []);
+ const sphereEdges = useMemo(() => new THREE.EdgesGeometry(sphereGeom), [sphereGeom]);
+ return (
+ <group>
+ <mesh geometry={sphereGeom}>
+ <meshBasicMaterial color={color} transparent opacity={0.15} />
+ </mesh>
+ <lineSegments geometry={sphereEdges}>
+ <lineBasicMaterial color={color} transparent opacity={0.7} />
+ </lineSegments>
+ <mesh geometry={ringGeom} rotation={[Math.PI / 3, 0.3, 0]}>
+ <meshBasicMaterial color={color} transparent opacity={0.35} side={THREE.DoubleSide} />
+ </mesh>
+ </group>
+ );
+}
+
+function HoloRings({ color }) {
+ const geoms = useMemo(() => [
+ new THREE.TorusGeometry(0.45, 0.02, 8, 24),
+ new THREE.TorusGeometry(0.3, 0.02, 8, 24),
+ new THREE.TorusGeometry(0.38, 0.02, 8, 24),
+ ], []);
+ return (
+ <group>
+ {geoms.map((geom, i) => (
+ <mesh key={i} geometry={geom} position={[0, (i - 1) * 0.22, 0]} rotation={[Math.PI / 2, 0, 0]}>
+ <meshBasicMaterial color={color} transparent opacity={0.45 + i * 0.15} side={THREE.DoubleSide} />
+ </mesh>
+ ))}
+ </group>
+ );
+}
+
+function HoloCube({ color }) {
+ const geom = useMemo(() => new THREE.BoxGeometry(0.45, 0.45, 0.45), []);
+ const edges = useMemo(() => new THREE.EdgesGeometry(geom), [geom]);
+ return (
+ <group rotation={[Math.PI / 6, Math.PI / 4, 0]}>
+ <mesh geometry={geom}>
+ <meshBasicMaterial color={color} transparent opacity={0.08} />
+ </mesh>
+ <lineSegments geometry={edges}>
+ <lineBasicMaterial color={color} transparent opacity={0.85} />
+ </lineSegments>
+ </group>
+ );
+}
+
+function HoloBeacon({ color }) {
+ const cylGeom = useMemo(() => new THREE.CylinderGeometry(0.025, 0.025, 0.5, 6), []);
+ const sphereGeom = useMemo(() => new THREE.SphereGeometry(0.15, 8, 8), []);
+ return (
+ <group>
+ <mesh geometry={cylGeom}>
+ <meshBasicMaterial color={color} transparent opacity={0.5} />
+ </mesh>
+ <mesh geometry={sphereGeom} position={[0, 0.32, 0]}>
+ <meshBasicMaterial color={color} transparent opacity={0.75} />
+ </mesh>
+ </group>
+ );
+}
+
+const SHAPES = {
+ diamond: HoloDiamond,
+ invertedPyramid: HoloPyramid,
+ saturn: HoloSaturn,
+ rings: HoloRings,
+ cube: HoloCube,
+ beacon: HoloBeacon,
+};
+
+export default function BuildingHologram({ position, color, seed }) {
+ const bobRef = useRef();
+ const spinRef = useRef();
+ const glowRef = useRef();
+
+ const type = HOLOGRAM_TYPES[seed % HOLOGRAM_TYPES.length];
+ const Shape = SHAPES[type];
+
+ useFrame(({ clock }) => {
+ const t = clock.getElapsedTime();
+ if (bobRef.current) {
+ bobRef.current.position.y = Math.sin(t * 1.0 + seed * 0.7) * 0.15;
+ }
+ if (spinRef.current) {
+ spinRef.current.rotation.y = t * 0.4 + seed;
+ }
+ if (glowRef.current) {
+ glowRef.current.material.opacity = 0.15 + Math.sin(t * 1.5 + seed) * 0.08;
+ }
+ });
+
+ return (
+ <group position={position}>
+ {/* Projector base disc */}
+ <mesh rotation={[-Math.PI / 2, 0, 0]} position={[0, -0.1, 0]}>
+ <circleGeometry args={[0.5, 16]} />
+ <meshBasicMaterial ref={glowRef} color={color} transparent opacity={0.15} side={THREE.DoubleSide} />
+ </mesh>
+ {/* Animated hologram shape */}
+ <group ref={bobRef}>
+ <group ref={spinRef}>
+ <Shape color={color} />
+ </group>
+ </group>
+ {/* Subtle point light glow */}
+ <pointLight color={color} intensity={0.5} distance={4} decay={2} />
+ </group>
+ );
+}