Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | fix a double-free. add a generic value-swapping macro. | rodri | 2024-08-05 | 5 | -55/+13 | |
| | ||||||
* | make the depth buffer 32-bit. | rodri | 2024-08-04 | 6 | -8/+9 | |
| | ||||||
* | fix line interpolation during rasterization. | rodri | 2024-08-02 | 4 | -7/+46 | |
| | | | | | | | vertex attributes were not being updated after clipping with their corresponding work rectangles, nor when reordering the points before rasterization, which caused serious artifacts. | |||||
* | fb: fix the destination drawing rectangle. | rodri | 2024-08-02 | 1 | -2/+2 | |
| | ||||||
* | add a viewport upscale filters interface. | rodri | 2024-08-02 | 3 | -44/+109 | |
| | ||||||
* | doc: write about the scene, the viewport. organize things better. | rodri | 2024-07-23 | 3 | -1079/+1314 | |
| | ||||||
* | doc: write about the renderer, with a little introduction. | rodri | 2024-07-22 | 3 | -612/+1229 | |
| | ||||||
* | reduce the volume of Camera.times records. clean up. | rodri | 2024-07-20 | 3 | -20/+19 | |
| | ||||||
* | implement pixel art upscaling filters scale[23]x. tidy up some code. | rodri | 2024-07-16 | 4 | -13/+100 | |
| | ||||||
* | fix stack overflow, skybox fov sensibility and scene duplication. | rodri | 2024-07-15 | 4 | -15/+30 | |
| | | | | | | | | | putting the duplicate camera in a local variable turned out to be a bad idea. bring the dynamic version back. the skybox rendering was affected by the camera fov, which made it look like it was not really at infinity, so set it always to 90°. | |||||
* | initial viewport upscaling support. | rodri | 2024-07-14 | 3 | -2/+76 | |
| | ||||||
* | small improvements and a skybox bugfix. | rodri | 2024-07-14 | 3 | -18/+15 | |
| | ||||||
* | new camera interface. | rodri | 2024-07-13 | 3 | -20/+74 | |
| | ||||||
* | enable culling and add a camera knob for it. | rodri | 2024-07-13 | 2 | -15/+19 | |
| | ||||||
* | fix the geometry glitches when moving things around. | rodri | 2024-07-13 | 8 | -145/+260 | |
| | | | | | | | | | | it's possible for interactive programs to keep updating the geometry of the scene during rendering, which caused primitives to look deformed or shattered in the final image. to avoid this we take a snapshot of the current state of things (scene and camera), and render based on that copy. | |||||
* | small improvements. | rodri | 2024-07-12 | 4 | -33/+37 | |
| | ||||||
* | texture nomenclature changes. fb format RGBA → XRGB. | rodri | 2024-07-09 | 4 | -15/+15 | |
| | | | | | | we are still doing alpha blending, so we use the X chan internally, but we don't care about it when (mem)drawing to the screen. | |||||
* | create a new texture interface. | rodri | 2024-07-05 | 4 | -45/+86 | |
| | ||||||
* | rough color space conversion implementation. | rodri | 2024-07-04 | 5 | -15/+150 | |
| | | | | | | | | colors are now properly processed in linear RGB space for lighting, shading and blending. sRGB is assumed for any texture sampled and the destination framebuffer. it's not perfect, but it does the job for now. | |||||
* | render: don't overwrite the vertex colors with white. report alien prims. | rodri | 2024-06-16 | 1 | -3/+2 | |
| | ||||||
* | fix the barycoords routine to avoid reporting false degenerates. | rodri | 2024-06-14 | 3 | -1/+43 | |
| | | | | added a normals buffer for debugging. | |||||
* | replace the Memimage color buffer with a ulong* one. some fixes. | rodri | 2024-06-13 | 5 | -38/+39 | |
| | ||||||
* | add spotlight params and a light color shading routine. other things. | rodri | 2024-06-10 | 6 | -18/+48 | |
| | | | | | | among these other things are clamping the color channels to [0,1] internally, and adding a modulation function for mixing colors/points. | |||||
* | add cubemaps. | rodri | 2024-06-06 | 7 | -5/+220 | |
| | ||||||
* | add a tangent parameter for normal mapping, and a world2model xform. | rodri | 2024-06-04 | 4 | -9/+31 | |
| | ||||||
* | add a normal map property to Material. | rodri | 2024-05-28 | 2 | -0/+8 | |
| | ||||||
* | replace the Framebufctl's Lock with a QLock. | rodri | 2024-05-23 | 3 | -7/+8 | |
| | | | | this provides fair scheduling, minimizing contention. | |||||
* | fix line rasterization. | rodri | 2024-05-21 | 3 | -18/+31 | |
| | ||||||
* | fix the perspective projection and add inverse xform functions. | rodri | 2024-05-20 | 4 | -112/+177 | |
| | ||||||
* | render: improve line raster (not fixed yet). also tag jobs with an id. | rodri | 2024-05-17 | 2 | -7/+9 | |
| | ||||||
* | doc: correct the indices to make things simpler. | rodri | 2024-05-14 | 3 | -27/+27 | |
| | ||||||
* | add a name property to Material. | rodri | 2024-05-12 | 2 | -1/+10 | |
| | ||||||
* | scene: free model materials during cleanup. | rodri | 2024-05-10 | 1 | -0/+2 | |
| | ||||||
* | clip: fix rectclipline. | rodri | 2024-05-03 | 3 | -9/+13 | |
| | | | | | mixed up CLIP[TB] and the slope was being computed as an integer division, which caused artifacts. | |||||
* | clip: avoid division by zero. | rodri | 2024-05-03 | 1 | -2/+2 | |
| | ||||||
* | add a general primitive with support for points, lines and triangles. | rodri | 2024-05-03 | 10 | -318/+863 | |
| | | | | | | | | also got rid of the dependency on OBJ for the entire renderer, instead letting the user load a Model from any given OBJ. this modularity will allow for other formats to be used in the same way, relying on a single, internal representation for the entire pipeline. | |||||
* | render: add rasterizer init params and per-proc identification. | rodri | 2024-04-24 | 3 | -26/+38 | |
| | ||||||
* | doc: add some schematics about the overall architecture. | rodri | 2024-04-24 | 3 | -57/+715 | |
| | ||||||
* | render: use the primitive's bbox to check for tile membership. | rodri | 2024-04-18 | 1 | -9/+12 | |
| | | | | | | this fixes a bug i introduced with the fully concurrent pipeline, where instead of testing whether the triangle *crossed* any of the tiles, i checked whether any of the points *were inside*. | |||||
* | render: make sure the last tile fills the screen. | rodri | 2024-04-18 | 1 | -0/+2 | |
| | ||||||
* | replace the Triangle with a general purpose Primitive. | rodri | 2024-04-16 | 4 | -104/+118 | |
| | | | | | this is only an structural replacement and doesn't add support for the other primitive types. | |||||
* | render: split tiles vertically instead of horizontally. | rodri | 2024-04-15 | 1 | -4/+4 | |
| | | | | | this makes more sense memory-wise, and it also fixes a clipping glitch that was occurring at tile boundaries. | |||||
* | add some instrumentation to measure pipeline stage time. | rodri | 2024-04-15 | 3 | -2/+49 | |
| | ||||||
* | implement a fully concurrent pipeline based on tiles. | rodri | 2024-04-15 | 4 | -40/+204 | |
| | | | | | - got rid of the z-buffer lock to avoid contention. - little improvements to fb.c | |||||
* | simplify the job scheduler. correct two mistakes regarding the Viewport. | rodri | 2024-04-05 | 6 | -92/+49 | |
| | | | | | | | | | | > They made two mistakes. they hanged the wrong man and they didn't finish the job. so Clint Eastwood came back to kick my ass. the mistakes in question were that the Viewport shouldn't know about double buffering, conceptually it has a framebuffer and that's it. the second one was passing it to the renderer, when the renderer couldn't care less about what a viewport is. | |||||
* | scene: correct blatant use-after-free. | rodri | 2024-04-03 | 1 | -2/+3 | |
| | ||||||
* | scene: add a way to remove entities and fix the clearscene routine. | rodri | 2024-04-03 | 2 | -1/+12 | |
| | ||||||
* | add trivial nil checks to some of the cleanup procedures. | rodri | 2024-04-03 | 2 | -1/+10 | |
| | ||||||
* | scene: implement full cleanup procedures. | rodri | 2024-04-03 | 2 | -2/+22 | |
| | ||||||
* | scene: fix uninitialized nents field. | rodri | 2024-04-03 | 1 | -0/+1 | |
| |