Understanding the Pascal Scene Graph

هذا هو Pascal.

وهذا أيضًا Pascal.

وهذا Pascal كذلك.

مبانٍ مختلفة، ومخرجات مختلفة، وبنية واحدة

في الأسفل، لأن Pascal ليس محرّك عرض.

إنه DOM الخاص بمبنى، ومرجع أساسي يمكنك بناء أي

تجربة أو محاكاة فوقه.

نسمّيه الرسم البياني للمشهد. كل شيء هو عقدة.

كل جدار ونافذة وباب، وقطعة أثاث هي عقدة

لها خصائص. تعرف النافذة حجمها، ومادتها،

والجدار الموجود فيها، والاتجاه الذي تواجهه.

توجد العقد ضمن مناطق. المنطقة هي غرفة أو أي مساحة

تحددها، كمطبخ مفتوح أو ممر، أو شرفة.

تحمل المناطق بياناتها الخاصة أيضًا، كالمساحة، ونوع الأرضية، وما

تُستخدم لأجله، ويمكن تجميع المناطق ضمن وحدات.

لذا فإن شقة سكنية أو غرفة فندق هي شيء واحد يمكنك الإشارة إليه.

تقع المناطق على مستويات. المستوى هو أكثر من مجرد رقم طابق.

له ارتفاعه ومنسوبه، وبنيته الخاصة.

رصّها فوق بعضها، فتحصل على الشكل الرأسي لـ

المبنى.

المستويات تكوّن مبنى. وعقدة المبنى لا تكرّر ما هو

تحتها. فارتفاعه وعدد مستوياته، ومداخله كلها تأتي

من عُقده الفرعية. وما تملكه هو ما يخص المبنى ككل،

أي مسقطه الأفقي واتجاهه، واسمه.

وأخيرًا، تقع المباني على موقع.

الموقع هو حيث ينتهي كل ذلك في العالم الحقيقي.

الإحداثيات، وقطعة الأرض، واتجاه الشمال، ذلك ما يتيح لك

حساب ضوء الشمس أو وضع المبنى على خريطة.

وتمتد المجموعات عبر كل ذلك، كل الأضواء، وكل

الأجهزة، وأيًا ما تعرّفه.

التصيير مجرد طريقة واحدة للنظر إليه، ولأن كل شيء هو

عقدة، يمكنك الاستعلام عن المبنى كما تستعلم عن

DOM.

أرِني كل النوافذ المطلة على الجنوب.

أطفئ الأضواء في المطبخ. أرِني نظام التدفئة والتهوية وتكييف الهواء.

لا تتبّع للأشعة ولا تخمين. أنت تسأل المبنى، وهو

يجيب. هذا ما يجعل التوأم الرقمي الحقيقي

ممكنًا،

لا نموذجًا ثلاثي الأبعاد تنظر إليه، بل مبنى يمكنك محاكاته،

وأتمتته، والاستدلال بشأنه. ضوء الشمس، الطاقة،

تغطية شبكة الواي فاي، أتمتة المنزل، إعلان يمثل المبنى فعلًا.

يمكن أن يمتلك كل مبنى في العالم

واحدًا، ويمكن لكل واحد من

تلك المباني أن يشغّل تجربتك. والرسم البياني هو المنتج، لا

العرض. إنه يستمر في التطور. أنواع عُقد جديدة، خصائص جديدة،

وعلاقات جديدة بينها. أي شيء يُبنى عليه يرث كل ذلك

مجانًا، داخل المحرر كإضافات أو خارجه

كأي شيء يقرأ الرسم البياني. Pascal مفتوح المصدر، والمشهد

المخطط والمحرر والإضافات. تعالَ وساهم.

كل ذلك على GitHub.

End of transcript · 352 words · machine translated

Original transcript (English)

This is Pascal. This is also Pascal. This is Pascal too. Different buildings, different outputs, one structure underneath, because Pascal isn't a renderer.

It's the DOM of a building, a ground truth you can build any experience or simulation on top of. We call it the scene graph. Everything is a node. Every wall, window, door, and a piece of furniture is a node with properties. A window knows its size, its material,

which wall it's in, and which way it faces. Nodes live in zones. A zone is a room or any space you define, an open kitchen, a hallway, a terrace. Zones carry their own data too, area, floor type, what they're used for, and zones can be grouped into units.

So a condo or a hotel room is one thing you can point at. Zones sits on levels. A level is more than a floor number. It has its height, its elevation, its own structure. Stack them, and you get the vertical shape of the building.

Levels make a building. The building node doesn't duplicate what's below it. Its height, its level count, its entrances all come from its children. What it owns is what belongs to the building as a whole, its footprint, its orientation, its name. And finally, buildings sit on a site.

The site is where it all ends in the real world. Coordinates, the plot, which way north is, that's what lets you compute sunlight or put the building on a map. Collections cut across all of it, all the lights, all the appliances, whatever you define.

The render is just one way to look at it, and because everything is a node, you can query the building the way you'd query the DOM. Give me every window facing south. Turn the lights off in the kitchen. Show me the HVAC system.

No ray casting, no guessing. You ask the building, and it answers. That's what makes a real digital twin possible, not a 3D model you look at, but a building you can simulate, automate, and reason about. Sunlight, energy,

Wi-Fi coverage, home automation, a listing that's actually the building. Every building in the world could have one, and every one of them could run your experience. And the graph is the product, not the render. It keeps evolving. New node types, new properties, new

relationships between them. Anything built on it inherits all of that for free, inside the editor as plugins or outside it as anything that reads the graph. Pascal is open source, the scene graph, the editor, the plugins. Come and contribute. It's all on GitHub.

iPhone app Translate videos on your iPhone Paste a TikTok, Instagram or X link, add subtitles in your language and save the video to Photos.

Read any video in your language

Paste a link from X, TikTok, YouTube or Instagram. You get a page like this one.

© 2026 TranslateMom Transcripts Sources Pricing Legal