How haletas033/lsimengine works
LSIM Engine is a 3D scene editor/runtime. Its principal workflow is to create or load a scene, edit and inspect meshes and lighting, then render the scene with camera controls. The README also documents procedural terrain, model loading, picking, PBR materials, skyboxes, and scene/config persistence. The sampled main excerpt confirms scene setup, rendering-loop responsibilities, camera handling, and GUI lifecycle; several feature implementations were not sampled, so their internal connections are left unverified.
Main entry points: main.cpp Runtime Loop · mesh.cpp Mesh · gui.cpp Editor GUI · fileIO.cpp Scene File I/O
Components 23
Application Loop
- Runtime Loop
Src/main.cpp
Scene Editing
- Editor GUI
Src/inputs/gui.cpp - Input Handling
Src/inputs/inputs.cpp - Camera Controls
Src/scene/camera.cpp - Scene State
include/scene/scene.h - Lighting
include/scene/light.h - ImGui UI
external/imgui/imgui.h
Geometry
- Mesh
Src/geometry/mesh.cpp - Primitives
Src/geometry/primitives.cpp - Terrain
Src/geometry/terrain.cpp - Model Loading
Src/geometry/model.cpp - Mesh Picking
include/utils/meshPicking.h
Rendering
- GL Buffers
Src/gl/VAO.cpp - Shader Programs
Src/gl/shaderClass.cpp - Textures and Skybox
Src/utils/texture.cpp - GLFW Windowing
external/glfw/include/GLFW/glfw3.h - GLM Math
external/glm/glm.hpp
Persistence and Utilities
- Scene File I/O
Src/utils/fileIO.cpp - Config Defaults
include/utils/defaults.h - JSON Handling
Src/utils/json.cpp - Logging
Src/utils/logging/log.cpp - JSON Library
external/nlohmann/json.hpp
Other components
- Editor User
Connections 27
- Editor User → Editor GUI: edits scene
README.md - Runtime Loop → Scene State: owns scene
Src/main.cpp - Runtime Loop → Primitives: creates meshes
Src/main.cpp - Runtime Loop → Editor GUI: initializes and draws
Src/main.cpp - Runtime Loop → Camera Controls: handles camera
Src/main.cpp - Runtime Loop → Scene File I/O: loads scene
Src/main.cpp - Runtime Loop → Mesh: applies transforms
Src/main.cpp - Runtime Loop → Lighting: updates lights
Src/main.cpp - Scene State → Mesh: stores meshes
include/scene/scene.h - Scene State → Lighting: stores lights
include/scene/scene.h - Editor GUI → ImGui UI: uses UI
- Editor GUI → Mesh: edits meshes
- Editor GUI → Lighting: edits lighting
- Scene File I/O → JSON Handling: uses JSON
Src/utils/fileIO.cpp - Model Loading → Scene State: references scene
Src/geometry/model.cpp - Model Loading → Textures and Skybox: uses textures
Src/geometry/model.cpp - Mesh → GL Buffers: sets up buffers
- Mesh → Shader Programs: renders with
- Mesh → Textures and Skybox: uses material maps
- Runtime Loop → Terrain: supports terrain
- Runtime Loop → Model Loading: supports model loading
- Runtime Loop → Mesh Picking: supports selection
Src/main.cpp - Runtime Loop → GLFW Windowing: creates window
- Camera Controls → GLM Math: uses math
- Scene File I/O → Textures and Skybox: handles texture data
- Scene File I/O → Config Defaults: uses defaults
Src/utils/fileIO.cpp - JSON Handling → JSON Library: uses library