概要
Pascal Editor は、React Three Fiber と WebGPU で構築された Web ベースの 3D 建築エディターです。ユーザーは建築設計プランを作成、編集、共有でき、ノードベースのシーングラフとリアルタイムレンダリングをサポートしています。
README プレビュー
# Pascal Editor\n\nA 3D building editor built with React Three Fiber and WebGPU.\n\n[](LICENSE)\n[](https://www.npmjs.com/package/@pascal-app/core)\n[](https://www.npmjs.com/package/@pascal-app/viewer)\n[](https://discord.gg/SaBRA9t2)\n[](https://x.com/pascal_app)\n\nhttps://github.com/user-attachments/assets/8b50e7cf-cebe-4579-9cf3-8786b35f7b6b\n\n\n\n## Repository Architecture\n\nThis is a Turborepo monorepo with three main packages:\n\n```\neditor-v2/\n├── apps/\n│ └── editor/ # Next.js application\n├── packages/\n│ ├── core/ # Schema definitions, state management, systems\n│ └── viewer/ # 3D rendering components\n```\n\n### Separation of Concerns\n\n| Package | Responsibility |\n|---------|---------------|\n| **@pascal-app/core** | Node schemas, scene state (Zustand), systems (geometry generation), spatial queries, event bus |\n| **@pascal-app/viewer** | 3D rendering via React Three Fiber, default camera/controls, post-processing |\n| **apps/editor** | UI components, tools, custom behaviors, editor-specific systems |\n\nThe **viewer** renders the scene with sensible defaults. The **editor** extends it with interactive tools, selection management, and editing capabilities.\n\n### Stores\n\nEach package has its own Zustand store for managing state:\n\n| Store | Package | Responsibility |\n|-------|---------|----------------|\n| `useScene` | `@pascal-app/core` | Scene data: nodes, root IDs, dirty nodes, CRUD operations. Persisted to IndexedDB with undo/redo via Zundo. |\n| `useViewer` | `@pascal-app/viewer` | Viewer state: current selection (building/level/zone IDs), level display mode (stacked/exploded/solo), camera mode. |\n| `useEditor` | `apps/editor` | Editor state: active tool, structure layer visibility, panel states, editor-specific preferences. |\n\n**Access patterns:**\n\n```typescript\n// Subscribe to state changes (React component)\nconst nodes = useScene((state) => state.nodes)\nconst levelId = useViewer((state) => st
FAQ (2)
トラブル対応Apple Silicon上でBunを使ってNext.jsを実行する際に、'CPU doesn't support the bmi2 instructions'パニックと'Cannot find module lightningcss.darwin-x64.node'エラーを修正する方法は?
1. Next.jsをバージョン16.2.2以上にアップグレードして、qfilter BMI2 panicを解決してください。2. lightningcssのアーキテクチャ不一致については、開発サーバーをbun run devではなくbun --bun run devで実行し、Bunがarm64用の正しいネイティブモジュールを使用するように強制してください。問題が解決しない場合は、Bunバージョン1.3.12+がインストールされていること、Bunとシェルの両方が(Rosettaではなく)ネイティブarm64で動作していることを確認し、.nextとnode_modulesを削除してからbun installを実行してクリーンインストールしてください。
トラブル対応ユーザー名チェックまたはオンボーディング中の無限ループを修正するには?
最新バージョンにアップデートするか、最新の main ブランチをプルしてください。この問題は、コミット f2501be でユーザー名オンボーディングダイアログが削除された際に修正されました。影響を受けるバージョンでは、マウスクリックが機能しない場合は、**Enter** を押してユーザー名を確定してください。