52 Commits

Author SHA1 Message Date
8e3ba7554a Mouse camera controls, hide cursor. 2021-11-09 17:50:49 +09:00
8997902c7c Gravity added. Camera offset and height set. 2021-11-09 17:27:04 +09:00
5912e0e07e Normalize diagonal movement. Implement movement speed and friction.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-09 07:14:31 +00:00
8e79afdf99 Strafe controls to replace turn controls. Ignore Y axis when not in flying mode.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-09 06:17:35 +00:00
6f48971a74 Prevent camera from going through blocks.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-09 05:13:49 +00:00
b0f0961260 Randomly face randomly generated objects for testing purposes. 2021-11-08 18:13:52 +09:00
cf808fd849 Removed the extra min required. 2021-11-08 18:10:43 +09:00
27fd83af6d Fix a rounding error to remove gridlines that appear around blocks. 2021-11-08 18:10:05 +09:00
90d55de494 Top and bottom edges now rotate accordingly.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-08 07:21:26 +00:00
80873eec27 Change the front facing direction of a block programmatically.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-08 06:12:29 +00:00
8d152ff06a Implement intersection function of line segments. 2021-11-08 05:55:20 +09:00
a1147ce151 Detect face direction of clicked edge. 2021-11-08 03:14:53 +09:00
e5e42d4f88 Handle clicking through transparent blocks. 2021-11-08 02:45:16 +09:00
91d94cc249 Block removal implemented. 2021-11-08 02:26:56 +09:00
4d3d72eba2 Translucency implementation. 2021-11-08 02:04:53 +09:00
5d6c8de3b5 Transparent texture rendering handling. 2021-11-07 23:43:26 +09:00
057ef44afb Threading. 2021-11-07 09:47:03 +09:00
78ffa0d78d Block buildling and some camera clipping fixes. 2021-11-07 06:14:21 +09:00
234520ced4 Improvements to rendering speeds. 2021-11-07 05:43:24 +09:00
8e0af6413e Profiler togling. 2021-11-07 01:09:55 +09:00
87c2c555b8 Per-side texturing and textures loaded in. 2021-11-06 08:48:20 +09:00
6c0b5ccd32 Add block type definitions for texture types. 2021-11-06 08:00:51 +09:00
c8a62a8e83 Setup Texture Types. 2021-11-06 06:49:18 +09:00
1865a973e7 Block click detection. 2021-11-05 22:57:01 +09:00
a99f5a81e3 Optimized texture pixel getting. 2021-11-05 22:30:00 +09:00
16e2b942bb Make sure untextured surfaces still read properly.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-04 13:35:30 +00:00
fb007ad472 Do not render faces that are on the "insides" of a structure.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-04 11:50:53 +00:00
c39412e144 Many blocks.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-03 20:40:32 +00:00
7aaa75d5a5 Experimentation with distance-based camera lighting.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-03 20:24:00 +00:00
1ce63d60a2 Include a depth buffer.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-03 15:15:02 +00:00
562ae07307 Use model loading code. 2021-11-03 14:32:29 +00:00
0192ab1ebe Textured cube with model loading.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-03 14:31:48 +00:00
aade867128 Texture lighting / color configuration.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-03 13:54:04 +00:00
482d512433 Fixed Texture coordinates to account for perspective.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-03 12:41:54 +00:00
9ea6587bdf Initial texture mapping implementation.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-03 11:12:04 +00:00
f70e1a4dbe Starting of texture mapping to 3D coords 2021-11-03 17:11:30 +09:00
edbd25ff2a Remove missing triangles bug from screen edge clipping. 2021-11-03 09:36:45 +09:00
9e6537c8b2 Edge screen clipping. 2021-11-03 09:26:32 +09:00
c016c613aa Fix missing rendered face with plane clipping. 2021-11-03 08:53:32 +09:00
2e86db49f2 Pass by value instead of pass by reference for arrays right now....bugs out.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-02 20:43:12 +00:00
129d0e71b1 Fixing display bugs.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-02 19:42:30 +00:00
344e91502d Fixed triangle rasterizing sorting algorithm.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-02 17:10:14 +00:00
7b0467cc5d Refactor and create helper utility functions.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-02 16:36:10 +00:00
dfe6210836 Include a sample teapot.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-02 15:51:06 +00:00
9601cb9133 Remove all references to external dependencies.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-02 15:50:28 +00:00
8f7d77dfa8 OBJ File reader implementation.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-02 15:34:20 +00:00
baec7c6f38 rasterizer hack.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-02 15:05:25 +00:00
cd6dd3217a Render simple shading via normals and provide a wireframe mode if necessary.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-02 14:43:10 +00:00
a4e7731412 Draw a cube with culling.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2021-11-02 13:33:53 +00:00
9e324be3e2 Draw a rotating 3D cube. 2021-11-02 09:41:33 +09:00