aboutsummaryrefslogtreecommitdiff
path: root/src/obj_parser.cpp
Commit message (Collapse)AuthorAgeFilesLines
* various improvementsvimene2025-01-021-8/+6
| | | | | | | | | | - 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
* fixed parse_object by implementing custom parsersvimene2024-12-311-20/+80
| | | | | std::setlocale also change the parsing of floats with std::stof. It is also more future proof to use a parser specific to Wavefront .obj files.
* various improvementsvimene2024-12-311-0/+81
- 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