aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/mesh.cpp
Commit message (Collapse)AuthorAgeFilesLines
* starting to merge vulkan with the enginevimene2025-12-291-10/+30
| | | | | | | | | | | | | - 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
* renamed .h to .hppvimene2025-12-101-2/+2
|
* various improvementsvimene2025-01-021-14/+13
| | | | | | | | | | - 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-311-30/+0
| | | | | | | | | | | - 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-111-7/+21
| | | | | | | | - 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
* fixed perspective, added planevimene2023-12-091-15/+29
|
* renamed MathVector{2,3,4} to Vector{2,3,4} and Mat4 to Matrix4 in engine::mathvimene2023-12-031-9/+9
|
* added scenes, camera and meshesvimene2023-11-261-0/+33