The engine's parts: mesh, lights, camera #44

Open
UnflavoredMeson/Primal_Plus_Plus
opened 2026-11-24 20:16:01 +00:00 by UnflavoredMeson · 0 comments
Owner

Why

Actors draw and light the scene through parts that write S3-05's components, so the renderer needs no change.

Decided

  • MeshPart, the light parts and CameraPart (Engine/EngineAPI/RenderParts.h) write render:: components on their entity.
  • New scenes and templates get a directional light (the fork's "everything is black" bug was scenes without lights).

Read first

Steps

  • 1. Write the parts and tests that check their components.
  • 2. Convert the renderer EngineTest to actors.

Done when

  • The renderer test draws the same picture with actors on both backends; tests pass; 0 warnings; tidy 0.

Claude can help with

  • Converting the EngineTest scene.

Learn

  • Where the line is between a part and a component.
## Why Actors draw and light the scene through parts that write S3-05's components, so the renderer needs no change. ## Decided - `MeshPart`, the light parts and `CameraPart` (`Engine/EngineAPI/RenderParts.h`) write `render::` components on their entity. - New scenes and templates get a directional light (the fork's "everything is black" bug was scenes without lights). ## Read first - [Actors](https://forgejo.unflavoredmeson.com/UnflavoredMeson/Primal_Plus_Plus/wiki/Actors), section 19. ## Steps - [ ] 1. Write the parts and tests that check their components. - [ ] 2. Convert the renderer EngineTest to actors. ## Done when - [ ] The renderer test draws the same picture with actors on both backends; tests pass; 0 warnings; tidy 0. ## Claude can help with - Converting the EngineTest scene. ## Learn - Where the line is between a part and a component.
Sign in to join this conversation.
No assignees
No project
Depends on
#43 Actor runtime: actors, parts, behaviors
UnflavoredMeson/Primal_Plus_Plus
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
UnflavoredMeson/Primal_Plus_Plus#44
No description provided.