Abdelrahman Said abdelrahman
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-07-09 23:19:46 +00:00
00e7293b28 Reformat
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-07-09 23:18:28 +00:00
3c293198bb Start implementing clipping triangles
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-07-09 22:32:30 +00:00
ae072ec70e Initial implementation of bounding sphere clipping
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-07-09 18:44:39 +00:00
c3e1aac779 Move scene to raytracer
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-07-07 22:34:03 +00:00
4430ea872c Increase arena and frame arena capacities
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-07-07 22:31:05 +00:00
df1620319c Flip camera x rotation controls
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-07-07 22:19:56 +00:00
26fc513d4a Apply transformation first then project the points
9d929c22ba Add clipping planes to the scene
44c7b6ac1b Add function to multiply 4x4 matrix by 4D vector
Compare 3 commits »
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-07-07 21:06:57 +00:00
7823e92861 Apply projection matrix last to allow for clipping
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-07-07 20:58:52 +00:00
b7101108a4 Add rasteriser_scene_t struct and render_scene function
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-06-30 13:52:40 +00:00
39f198e342 Add camera controls
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-06-30 01:40:29 +00:00
b81304e759 Switch to using transformation matrices
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-06-29 23:09:41 +00:00
9ba7a8c414 Add vec4 types and functions
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-06-29 23:08:58 +00:00
01c5def71f Fix project_point function
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-06-29 19:13:54 +00:00
0911b33981 Add another cube instance
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-06-29 19:05:10 +00:00
946ea9c307 Add model and instance data types
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-06-29 18:29:24 +00:00
7f251e7704 Draw cube using vertices and triangles lists
fa5453d399 Add render_object function
7c192d5edf Include vector
Compare 3 commits »
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-06-29 17:29:06 +00:00
33b89a9e44 Fix list type naming
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-06-29 16:47:20 +00:00
d5a18828c5 Rename arena to frame_arena
c9f3c6ab01 Add colour field to triangle
Compare 2 commits »
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-06-29 16:17:06 +00:00
96c5d21f79 Adjust cube colours
abdelrahman pushed to main at abdelrahman/cg-from-scratch 2024-06-29 16:11:49 +00:00
f922980232 Projection equation and first cube