Files
hermes-agent/config/nexus-templates/lighting_presets.json
Allegro d9cf77e382 feat: Issue #42 - Nexus Architect for autonomous Three.js world building
Implement Phase 31: Autonomous 'Nexus' Expansion & Architecture

DELIVERABLES:
- agent/nexus_architect.py: AI agent for natural language to Three.js conversion
  * Prompt engineering for LLM-driven immersive environment generation
  * Mental state integration for dynamic aesthetic tuning
  * Mood preset system (contemplative, energetic, mysterious, etc.)
  * Room and portal design generation

- tools/nexus_build_tool.py: Build tool interface with functions:
  * create_room(name, description, style) - Generate room modules
  * create_portal(from_room, to_room, style) - Generate portal connections
  * add_lighting(room, type, color, intensity) - Add Three.js lighting
  * add_geometry(room, shape, position, material) - Add 3D objects
  * generate_scene_from_mood(mood_description) - Mood-based generation
  * deploy_nexus_module(module_code, test=True) - Deploy and test

- agent/nexus_deployment.py: Real-time deployment system
  * Hot-reload Three.js modules without page refresh
  * Validation (syntax check, Three.js API compliance)
  * Rollback on error with version history
  * Module versioning and status tracking

- config/nexus-templates/: Template library
  * base_room.js - Base room template (Three.js r128+)
  * portal_template.js - Portal template (circular, rectangular, stargate)
  * lighting_presets.json - Warm, cool, dramatic, serene, crystalline presets
  * material_presets.json - 15 material presets including Timmy's gold, Allegro blue

- tests/test_nexus_architect.py: Comprehensive test coverage
  * Unit tests for all components
  * Integration tests for full workflow
  * Template file validation

DESIGN PRINCIPLES:
- Modular architecture (each room = separate JS module)
- Valid Three.js code (r128+ compatible)
- Hot-reloadable (no page refresh needed)
- Mental state integration (SOUL.md values influence aesthetic)

NEXUS AESTHETIC GUIDELINES:
- Timmy's color: warm gold (#D4AF37)
- Allegro's color: motion blue (#4A90E2)
- Sovereignty theme: crystalline structures, clean lines
- Service theme: open spaces, welcoming lighting
- Default mood: contemplative, expansive, hopeful
2026-04-01 02:45:36 +00:00

222 lines
5.2 KiB
JSON

{
"description": "Nexus Lighting Presets for Three.js",
"version": "1.0.0",
"presets": {
"warm": {
"name": "Warm",
"description": "Warm, inviting lighting with golden tones",
"colors": {
"timmy_gold": "#D4AF37",
"ambient": "#FFE4B5",
"primary": "#FFA07A",
"secondary": "#F4A460"
},
"lights": {
"ambient": {
"color": "#FFE4B5",
"intensity": 0.4
},
"directional": {
"color": "#FFA07A",
"intensity": 0.8,
"position": {"x": 10, "y": 20, "z": 10}
},
"point_lights": [
{
"color": "#D4AF37",
"intensity": 0.6,
"distance": 30,
"position": {"x": 0, "y": 8, "z": 0}
}
]
},
"fog": {
"enabled": true,
"color": "#FFE4B5",
"density": 0.02
},
"atmosphere": "welcoming"
},
"cool": {
"name": "Cool",
"description": "Cool, serene lighting with blue tones",
"colors": {
"allegro_blue": "#4A90E2",
"ambient": "#E0F7FA",
"primary": "#81D4FA",
"secondary": "#B3E5FC"
},
"lights": {
"ambient": {
"color": "#E0F7FA",
"intensity": 0.35
},
"directional": {
"color": "#81D4FA",
"intensity": 0.7,
"position": {"x": -10, "y": 15, "z": -5}
},
"point_lights": [
{
"color": "#4A90E2",
"intensity": 0.5,
"distance": 25,
"position": {"x": 5, "y": 6, "z": 5}
}
]
},
"fog": {
"enabled": true,
"color": "#E0F7FA",
"density": 0.015
},
"atmosphere": "serene"
},
"dramatic": {
"name": "Dramatic",
"description": "High contrast lighting with deep shadows",
"colors": {
"shadow": "#1A1A2E",
"highlight": "#D4AF37",
"ambient": "#0F0F1A",
"rim": "#4A90E2"
},
"lights": {
"ambient": {
"color": "#0F0F1A",
"intensity": 0.2
},
"directional": {
"color": "#D4AF37",
"intensity": 1.2,
"position": {"x": 5, "y": 10, "z": 5}
},
"spot_lights": [
{
"color": "#4A90E2",
"intensity": 1.0,
"angle": 0.5,
"penumbra": 0.5,
"position": {"x": -5, "y": 10, "z": -5},
"target": {"x": 0, "y": 0, "z": 0}
}
]
},
"fog": {
"enabled": false
},
"shadows": {
"enabled": true,
"mapSize": 2048
},
"atmosphere": "mysterious"
},
"serene": {
"name": "Serene",
"description": "Soft, diffuse lighting for contemplation",
"colors": {
"ambient": "#F5F5F5",
"primary": "#E8EAF6",
"accent": "#C5CAE9",
"gold": "#D4AF37"
},
"lights": {
"hemisphere": {
"skyColor": "#E8EAF6",
"groundColor": "#F5F5F5",
"intensity": 0.6
},
"directional": {
"color": "#FFFFFF",
"intensity": 0.4,
"position": {"x": 10, "y": 20, "z": 10}
},
"point_lights": [
{
"color": "#D4AF37",
"intensity": 0.3,
"distance": 20,
"position": {"x": 0, "y": 5, "z": 0}
}
]
},
"fog": {
"enabled": true,
"color": "#F5F5F5",
"density": 0.01
},
"atmosphere": "contemplative"
},
"crystalline": {
"name": "Crystalline",
"description": "Clear, bright lighting for sovereignty theme",
"colors": {
"crystal": "#E0F7FA",
"clear": "#FFFFFF",
"accent": "#4DD0E1",
"gold": "#D4AF37"
},
"lights": {
"ambient": {
"color": "#E0F7FA",
"intensity": 0.5
},
"directional": [
{
"color": "#FFFFFF",
"intensity": 0.8,
"position": {"x": 10, "y": 20, "z": 10}
},
{
"color": "#4DD0E1",
"intensity": 0.4,
"position": {"x": -10, "y": 10, "z": -10}
}
],
"point_lights": [
{
"color": "#D4AF37",
"intensity": 0.5,
"distance": 25,
"position": {"x": 0, "y": 8, "z": 0}
}
]
},
"fog": {
"enabled": true,
"color": "#E0F7FA",
"density": 0.008
},
"atmosphere": "sovereign"
},
"minimal": {
"name": "Minimal",
"description": "Minimal lighting with clean shadows",
"colors": {
"ambient": "#FFFFFF",
"primary": "#F5F5F5"
},
"lights": {
"ambient": {
"color": "#FFFFFF",
"intensity": 0.3
},
"directional": {
"color": "#FFFFFF",
"intensity": 0.7,
"position": {"x": 5, "y": 10, "z": 5}
}
},
"fog": {
"enabled": false
},
"shadows": {
"enabled": true,
"soft": true
},
"atmosphere": "clean"
}
},
"default_preset": "serene"
}