aboutsummaryrefslogtreecommitdiff
path: root/src/o3d
Commit message (Collapse)AuthorAgeFilesLines
* starting to merge vulkan with the enginevimene2025-12-292-18/+43
| | | | | | | | | | | | | - refactored scene_main to be able to share code between software and hardware renderers, while still sharing code between terminal software renderer and graphical software renderer - made the hardware renderer use scene objects vertices and transforms, instead of hardcoded ones - made the hardware renderer use the scene's camera - made .obj parser create Vector3 instead of Vector4, which didn't made sense - removed unnecessary std:: - lots of small changes
* added uniform buffers, small tweaksvimene2025-12-241-1/+1
| | | | | | | | | | - fixed aspect ratio being the inverse of what it's supposed to be - use std::chrono::high_resolution_clock instead of system_clock - convert ellapsed time to float representing seconds - renamed engine::math::Matrix4::projection to perspective - use [0,1] instead of [-1,1] for the range of z values, to be aligned with vulkan - added engine::math::Matrix4::{look_at,transpose}
* renamed .h to .hppvimene2025-12-1011-20/+20
|
* various improvementsvimene2025-01-025-28/+38
| | | | | | | | | | - cleaned up the computation of the camera's matrix - changed VertexData to being a struct which transmit data between the "vertex shader" and the "fragment shader" - started working on keyboard and mouse controls - added fov (field of view) - changed quaternion to euler angles conversion, from zyx to zxy - fixed computations of z coordinates in triangle rendering - improved naming in the triangle rasterizer
* various improvementsvimene2024-12-3118-197/+63
| | | | | | | | | | | - added quaternions and rewrote all rotations to use them - added transforms to put all object transforms in a single place - added Wavefront .obj file parser - removed frame buffer's abstract class - improved vectors, matrices, triangles, vertices and vertices data by putting all code in header file - added vector's operations - changed from NULL to nullptr - miscellaneous improvements
* improved mesh definitionvimene2023-12-1110-132/+141
| | | | | | | | - In the context of mesh definition, splited indices into vertex index, normal index and vertex data index to be able to specify different normals and vertex data for different faces using the same vertex
* renamed tri{_deriv,}_vertex.{h,cpp} to tri{_deriv,}.{h,cpp}vimene2023-12-114-0/+0
|
* fixed perspective, added planevimene2023-12-094-32/+47
|
* fixed perspective calculationsvimene2023-12-098-323/+382
|
* added renderer, improved various thingsvimene2023-12-052-4/+4
| | | | | | | - Added renderer to unify frame buffers - Added FrameBuffer class as a parent for frame buffers' classes - Improved formatting in Makefile.am - Added const modifier in Matrix4's methods
* renamed MathVector{2,3,4} to Vector{2,3,4} and Mat4 to Matrix4 in engine::mathvimene2023-12-038-34/+34
|
* fixed a small bugvimene2023-11-281-2/+2
|
* added scenes, camera and meshesvimene2023-11-269-100/+137
|
* added namespaces, made every function in engine.cpp static and added ↵vimene2023-11-268-20/+45
| | | | warnings' flags
* improved matrices, cube building and command parsingvimene2023-11-262-0/+25
|
* code refactoringvimene2023-11-228-0/+496