Commit Graph

45 Commits

Author SHA1 Message Date
orange a22feeb1b9 added frostbite sources 2025-10-23 00:08:17 +03:00
orange 9af201069a Fixes incorrect NDC calculation and updates formulas
Corrects the NDC calculation in `world_to_screen` to improve accuracy.
Replaces custom perspective projection matrix calculation with `omath::mat_perspective_right_handed` for correctness and consistency.
Updates test cases and provides debugging information by printing view and projection matrices.
Addresses an issue in the feature/ndc_invalid_calc_fix branch.
2025-10-21 04:38:43 +03:00
orange 36e4cef2f3 fix unity 2025-09-22 02:10:33 +03:00
orange 3c81aea2ca unified look at for source iw_engine 2025-09-20 17:09:13 +03:00
orange 5466638330 fixed unreal 2025-09-20 15:59:43 +03:00
orange 19350b2618 fixed unity 2025-09-20 15:54:48 +03:00
orange 53b495a413 fixed opengl 2025-09-20 15:48:59 +03:00
orange 18a1349693 reverted 2025-09-20 15:46:21 +03:00
orange 3e5fb1bdb5 fixed rotation matrix 2025-09-20 15:44:33 +03:00
orange 3fa85f4c4d added new mat function
more tests
2025-09-20 15:44:33 +03:00
orange eeb4dccb12 fixed iw engine
fixed source

revert
2025-09-20 15:44:33 +03:00
orange ddafd24ea6 Fixes namespace and angle calculations
Corrects namespace naming from unity_engine to unreal_engine.

Adjusts projectile prediction and angle calculations for accuracy
in Unreal Engine environments.
2025-08-25 21:46:50 +03:00
orange bdbf596647 Fixes Unreal Engine view angle matrix order
The view angle rotation matrix order in Unreal Engine was incorrect, leading to incorrect camera orientation.

This commit fixes the order of rotation matrices to roll, pitch, yaw
to correctly implement Unreal Engine camera rotations.

Adds comprehensive unit tests for Unreal Engine formulas, camera and constants.

Marks Unreal Engine as supported in README.md.
2025-08-25 21:42:58 +03:00
orange 28b3aecf9d Adds Unreal Engine math implementations
Adds Unreal Engine-specific implementations for camera and projectile prediction calculations.

This includes:
- Defining constants and data types tailored for Unreal Engine's coordinate system and conventions.
- Implementing functions for calculating forward, right, and up vectors, view matrices, and perspective projection matrices.
- Providing camera trait for look-at angle calculations and projection matrix generation.
- Implements projectile prediction traits and utilities.
2025-08-25 21:30:35 +03:00
orange 8e7e1dfc42 Includes missing formula headers
Includes the necessary formula headers in the camera trait files for different rendering engines.
This ensures that the required mathematical functions and definitions are available when using camera traits.
2025-08-12 19:08:30 +03:00
orange 1f4b10f336 Refactors camera and prediction engine traits.
Moves camera and prediction engine implementations into traits for each engine,
decoupling the engine-specific logic from the core classes, promoting code reuse
and maintainability. This change allows for easier addition of new engines and
customization of existing ones.
2025-08-11 00:32:09 +03:00
orange e2322960b7 added noexcept 2025-05-13 09:34:39 +03:00
orange ba2c60389f added more noexcept 2025-05-05 01:46:50 +03:00
orange 6df9d59fe9 fixed style 2025-05-03 20:38:58 +03:00
orange 4406e1e461 changed code style 2025-05-03 20:31:59 +03:00
orange 01b7256e98 improved cmake, removed useless cmake files 2025-04-30 21:26:25 +03:00
orange 9de444bda0 fixed gimba lock for unity 2025-04-26 00:52:46 +03:00
orange 34621ad171 fixed gimba lock for opengl camera 2025-04-26 00:32:53 +03:00
orange 06b891c827 improved openg gl rotation matrix, added tests 2025-04-16 19:11:02 +03:00
orange 97f38af2b5 added unit tests 2025-04-16 18:35:50 +03:00
orange 7642936716 removed method from Mat added method for unity 2025-04-16 17:52:19 +03:00
orange f1f2aeb1b9 added func
added rotation matrix for opengl
2025-04-16 17:40:00 +03:00
orange d30c5be50f fixed for clang 2025-03-24 06:48:51 +03:00
orange 47e8bc1a04 fixed unity view matrix building 2025-03-24 06:30:09 +03:00
orange d2e67b7f86 fix 2025-03-23 00:57:58 +03:00
orange 620ea44b06 improved camera 2025-03-22 17:39:40 +03:00
orange de968ee03b updated formulas 2025-03-22 08:36:06 +03:00
orange cbc0a13a79 added unity engine tests 2025-03-22 08:12:16 +03:00
orange d9fe60b505 added camera files 2025-03-22 04:26:54 +03:00
orange 756bcef6e1 fixed include names 2025-03-21 04:40:59 +03:00
orange d5d1260784 changed source files naming 2025-03-21 04:30:17 +03:00
orange 1b2822275f removed inline functions 2025-03-19 20:07:44 +03:00
orange f788a60e14 added iw engine files 2025-03-17 07:20:13 +03:00
orange 3c104cd228 changed naming of engines section 2025-03-17 05:27:00 +03:00
Vladislav Alpatov a68ebd9ab7 now template 2025-03-01 21:11:46 +03:00
orange 29d05e2b63 improved cmake+hotfix of clang support 2025-01-17 16:56:47 +03:00
orange d80e1658e8 added open gl stuff 2024-12-23 17:53:47 +03:00
orange a68007a1f4 added methods 2024-12-23 15:34:38 +03:00
orange fd1bb25ed8 improved some code 2024-12-08 05:19:49 +03:00
orange dc3fcafd48 refactored camera 2024-12-04 04:58:29 +03:00