Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |
| | ||||||
* | viewport: add a way to access front and back buffers. | rodri | 2024-04-01 | 3 | -2/+10 | |
| | ||||||
* | can't always rely on screen being there. | rodri | 2024-04-01 | 1 | -1/+1 | |
| | ||||||
* | pass a Viewport in the Renderjob instead of a fb. | rodri | 2024-03-26 | 4 | -6/+15 | |
| | | | | | do the frame buffer clearing and swapping as part of the rendering process, not within shootcamera. | |||||
* | implement a (partially) concurrent pipeline. | rodri | 2024-03-25 | 4 | -134/+234 | |
| | ||||||
* | use the new libgeometry berp routines. add a frame counter to the camstats. | rodri | 2024-03-21 | 5 | -19/+16 | |
| | ||||||
* | pass material properties to the fshader. | rodri | 2024-03-06 | 2 | -1/+3 | |
| | | | | | this way users can refer to per-surface material features when shading pixels. | |||||
* | make the fshader return a Color instead of a Memimage. clean things up. | rodri | 2024-03-06 | 3 | -30/+41 | |
| | ||||||
* | add a texture sampler with nearest and bilinear routines. | rodri | 2024-03-06 | 4 | -42/+191 | |
| | | | | | | pass the material reference along with the vertices. also implemented back-face culling, but it's disabled for now. | |||||
* | add user-defined vertex attributes (varyings) and improve the interpolation ↵ | rodri | 2024-03-03 | 5 | -72/+232 | |
| | | | | code. | |||||
* | have separate routines for drawing and memdrawing. | rodri | 2024-02-27 | 4 | -3/+34 | |
| | ||||||
* | interpolate every vertex attribute when clipping and during rasterization. | rodri | 2024-02-25 | 2 | -23/+43 | |
| | | | | added parameters necessary to implement the Phong shading model. | |||||
* | add initial support for OBJMaterial properties. | rodri | 2024-02-21 | 3 | -10/+39 | |
| | ||||||
* | implement general polygon fan triangulation. | rodri | 2024-02-15 | 1 | -61/+48 | |
| | ||||||
* | pass an entire entity to the shader unit. fix a bug in cliptriangle. | rodri | 2024-02-14 | 2 | -26/+22 | |
| | | | | | | | | | | an entity is passed instead of a model so we can access its frame of reference to perform the model-to-world transformation. the bug in cliptriangle was due to sd[01] being declared as static which, when rendering multiple entities, was causing d0 = d1, which led to division-by-zero. |