Spaces:
Sleeping
Sleeping
Commit History
-
fix: animation detection + AI 404 errors
GLB Studio DeployModelManager.jsx: - Uses THREE.AnimationMixer directly (not useAnimations hook) so clips work on cloned scenes correctly - Auto-plays first clip on model load - Cross-fades between clips (fadeOut 0.3s / fadeIn 0.3s) - Mixer ticked via useFrame (clips actually animate now) - Manual skeleton clone for SkinnedMesh models (no SkeletonUtils dep) - Separate refs: mixerRef, actionsRef, currentAnimRef - Responds to animationPlaying, activeAnimation, animationSpeed from store AnimationPlayer.jsx: - Play/Pause button actually toggles model.animationPlaying in store - Stop button pauses and resets - Now-playing indicator with pulse dot (green=playing, grey=paused) - Play All / Pause All header button - Clip buttons show ▶ / ⏸ prefix for active clip state useStore.js: - Added setModelAnimPlaying(id, playing) action - selectModel now preserves lastSelectedModelId on deselect AIController.jsx: - 10 verified free models (old llama-3.1-8b had no free endpoints) - Handles HTTP 404, 429, 500, 503, …d9dc1a9 -
feat: CommandInterpreter layer + voice control + animation presets
GLB Studio DeployCommandInterpreter.js (new critical layer): - Structured command schema validation before execution - resolveTarget(): 'selected','it','car','all',name-match,ID-match,aliases - 20+ action types with proper delta vs absolute handling - Physics-aware: uses velocity/impulse when physics on, transform when off - Direction shorthand: {direction:'forward',amount:3} → correct axis delta - generatePresetAnimation(): drive_straight, spin_360, bounce, figure_eight, circle, fly_in - Array of commands executed sequentially with 60ms delay - Graceful error recovery per-command AIController.jsx (major rewrite): - Plugs through CommandInterpreter (not direct store calls) - 5-model fallback chain: llama→gemma→mistral→qwen→stepfun - Voice input via Web Speech API (🎤 button, shown when supported) - 10 quick-action buttons in 2-column grid - Context memory: last selected preserved across messages - Command history logged to store (addAiCommandHistory) - Retry hint shown on error messages - Model name s…d496807