Bequen / loft

2 stars 0 forks source link

Viewer: Scene Outline #15

Open Bequen opened 7 months ago

Bequen commented 7 months ago

Need for scene outline with ImGui UI.

Scene Outline

Scene outline should wrap around Scene buffer. This way, it can be separated easily, when outline is not needed or when it will be replaced. Just store the data structure.

class SceneOutline {
SceneOutline(Scene& scene);
};

Make a tree view showing all the scene nodes. Each scene node has children. This might need some data structure to store. But outside of transform, I don't care about parent at all.

Therefore the information about nodes children and parents can be stored in transform system.

On node select:

Transform system

Stores all the scene transforms in data structure, allowing to easily apply affine transformations each frame. After each change, the transform buffer will recalculate. This way we can make many changes and apply all transforms once.