Today I implemented a free-roaming camera system for my custom rendering engine, allowing me to navigate and inspect a multi-cube 3D scene in real time.
The implementation includes:
-
Right-click mouse look with cursor capture.
-
Yaw and pitch rotation with pitch clamping.
-
Forward and right vector calculations in a left-handed coordinate system.
-
View matrix construction using
XMMatrixLookAtLH. -
Keyboard-based movement: WASD and Q/E for vertical movement.
-
Frame-rate-independent movement and Shift sprint (2.5x speed).
-
Link video Day 6:https://youtu.be/-DLPFipIPhw
The camera system is built directly into my C++ engine using DirectX 12, Win32 input handling, DirectXMath and Microsoft GDK.
This is part of my ongoing journey building a rendering engine from scratch and exploring low-level graphics and engine architecture.
#DirectX12 #CPlusPlus #GameEngine #GraphicsProgramming Rendering #GameDevelopment #MicrosoftGDK #EngineDevelopment