summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* reduce the volume of Camera.times records. clean up.rodri2024-07-203-20/+19
|
* implement pixel art upscaling filters scale[23]x. tidy up some code.rodri2024-07-164-13/+100
|
* fix stack overflow, skybox fov sensibility and scene duplication.rodri2024-07-154-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.rodri2024-07-143-2/+76
|
* small improvements and a skybox bugfix.rodri2024-07-143-18/+15
|
* new camera interface.rodri2024-07-133-20/+74
|
* enable culling and add a camera knob for it.rodri2024-07-132-15/+19
|
* fix the geometry glitches when moving things around.rodri2024-07-138-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.rodri2024-07-124-33/+37
|
* texture nomenclature changes. fb format RGBA → XRGB.rodri2024-07-094-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.rodri2024-07-054-45/+86
|
* rough color space conversion implementation.rodri2024-07-045-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.rodri2024-06-161-3/+2
|
* fix the barycoords routine to avoid reporting false degenerates.rodri2024-06-143-1/+43
| | | | added a normals buffer for debugging.
* replace the Memimage color buffer with a ulong* one. some fixes.rodri2024-06-135-38/+39
|
* add spotlight params and a light color shading routine. other things.rodri2024-06-106-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.rodri2024-06-067-5/+220
|
* add a tangent parameter for normal mapping, and a world2model xform.rodri2024-06-044-9/+31
|
* add a normal map property to Material.rodri2024-05-282-0/+8
|
* replace the Framebufctl's Lock with a QLock.rodri2024-05-233-7/+8
| | | | this provides fair scheduling, minimizing contention.
* fix line rasterization.rodri2024-05-213-18/+31
|
* fix the perspective projection and add inverse xform functions.rodri2024-05-204-112/+177
|
* render: improve line raster (not fixed yet). also tag jobs with an id.rodri2024-05-172-7/+9
|
* doc: correct the indices to make things simpler.rodri2024-05-143-27/+27
|
* add a name property to Material.rodri2024-05-122-1/+10
|
* scene: free model materials during cleanup.rodri2024-05-101-0/+2
|
* clip: fix rectclipline.rodri2024-05-033-9/+13
| | | | | mixed up CLIP[TB] and the slope was being computed as an integer division, which caused artifacts.
* clip: avoid division by zero.rodri2024-05-031-2/+2
|
* add a general primitive with support for points, lines and triangles.rodri2024-05-0310-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.rodri2024-04-243-26/+38
|
* doc: add some schematics about the overall architecture.rodri2024-04-243-57/+715
|
* render: use the primitive's bbox to check for tile membership.rodri2024-04-181-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.rodri2024-04-181-0/+2
|
* replace the Triangle with a general purpose Primitive.rodri2024-04-164-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.rodri2024-04-151-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.rodri2024-04-153-2/+49
|
* implement a fully concurrent pipeline based on tiles.rodri2024-04-154-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.rodri2024-04-056-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.rodri2024-04-031-2/+3
|
* scene: add a way to remove entities and fix the clearscene routine.rodri2024-04-032-1/+12
|
* add trivial nil checks to some of the cleanup procedures.rodri2024-04-032-1/+10
|
* scene: implement full cleanup procedures.rodri2024-04-032-2/+22
|
* scene: fix uninitialized nents field.rodri2024-04-031-0/+1
|
* viewport: add a way to access front and back buffers.rodri2024-04-013-2/+10
|
* can't always rely on screen being there.rodri2024-04-011-1/+1
|
* pass a Viewport in the Renderjob instead of a fb.rodri2024-03-264-6/+15
| | | | | do the frame buffer clearing and swapping as part of the rendering process, not within shootcamera.
* implement a (partially) concurrent pipeline.rodri2024-03-254-134/+234
|
* use the new libgeometry berp routines. add a frame counter to the camstats.rodri2024-03-215-19/+16
|
* pass material properties to the fshader.rodri2024-03-062-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.rodri2024-03-063-30/+41
|