0b62550f54
Using models seems to be harder than just generating the chunk manually. So to make this possible and less tedious and time consuming I'm now going to move to place models on top of a marching cube terrain using a triangulation table.
2022-08-30 14:04:50 +01:00
5ece3c455f
Merge branch 'feature/terrain-generation' of warwicknew.xyz:game into feature/terrain-generation
2022-08-22 17:07:44 +01:00
90897a5698
Added world rotation and started filling mc map
2022-08-22 17:06:02 +01:00
40bbbf07f6
Added world rotation and started filling mc map
2022-08-22 16:38:48 +01:00
d328edd169
Created table to contain model transform data
2022-08-19 14:56:11 +01:00
6a3b02dc9d
Added some debug tools so I'm ready to start filling in the marching cube table.
2022-08-18 11:51:41 +01:00
01121fe526
Added method of getting cube's index
2022-08-15 12:27:13 +01:00
bb349e9994
Loaded all marching cube models into marching cube renderer.
2022-08-15 11:35:41 +01:00
8a699ae422
Fixed resizing of models.
2022-08-12 12:37:52 +01:00
73346ebab9
Added one of the models though resizing doesn't seem to be working rn
2022-08-11 16:40:48 +01:00
592a9febbd
Rendering models based on noise values.
...
The last step is to do so using marching cubes.
2022-08-11 14:59:27 +01:00
a0a0861723
Added the ability to set the position of a model.
2022-08-11 14:01:26 +01:00
28cd790e31
Added the OOP infastructure to work on rendering chunks.
2022-08-10 16:13:32 +01:00
38b1d8c92e
Offloaded the terrain work into a chunk object so we can manage spaces in chunks in the future.
2022-08-09 15:10:30 +01:00
9fa18286cb
Generated first chunk of terrain data.
2022-08-09 13:41:55 +01:00
5c135950e0
Added FastNoise2 as a dependency.
2022-08-09 12:28:24 +01:00
f587950771
Added subrepo for model development and ReadMe file.
2022-08-08 16:23:13 +01:00
0cbcc1f094
Cleaned up shader code and removed now incompatible models.
2022-08-03 13:50:08 +01:00
d4f5f8eb50
We have normal maps working wew. Now I just need to clean up the code.
2022-08-02 15:13:07 +01:00
157adf0dfa
Normal is now mapped correctly but the light's position is in the wrong
...
position
2022-07-29 13:21:07 +01:00
b1c966b47d
Adding a limit to the number of primitves exiting my geometry shader
...
stops the shape from breaking...
2022-07-29 13:01:01 +01:00
ecf7929152
I think I'm close to inserting and using the TBN correctly.
2022-07-27 16:31:38 +01:00
5b1aba34df
Added geometry shader to pipeline so I can calculate normal data on the GPU
2022-07-27 14:30:24 +01:00
532382b1f9
not correct way of using normal maps but gives me some preliminary info.
2022-07-26 15:27:17 +01:00
2eabd78ed5
Changed how we track a models position.
...
In learning more about linear algebra I've figured out that if we have
the model matrix of an object, for the most part the objects position is
0,0,0 multiplied through the model matrix.
2022-07-26 11:33:33 +01:00
811e949def
Fixed pbr issue by re reading and implementing https://learnopengl.com/PBR/Lighting
2022-07-25 14:00:19 +01:00
cd382435a8
Added method to load normal maps and moved pbr to it's own function
2022-07-25 13:43:58 +01:00
2cd954dc9a
PBR is now implemented
2022-07-25 13:22:42 +01:00
4ee8d24f18
Added roughness
2022-07-25 10:56:58 +01:00
58eb18354c
Got metal to work
2022-07-22 15:02:42 +01:00
3d3aaa3c3c
Solved multiple texture loading problem.
2022-07-20 16:30:40 +01:00
40f12dd510
Added the ability to use renderdoc and warn when uniforms unavailable
2022-07-20 16:26:40 +01:00
1e5544ce1f
Almost got metallisism working I just don't know what's up with the textures again.
2022-07-19 14:58:02 +01:00
7e3a7f0df7
Added assimp version requirement as default debian version doesn't support pbr by defualt
2022-07-18 15:41:49 +01:00
187936bea6
Added time variable to shader to see difference in different values
2022-07-18 14:36:08 +01:00
a0819a4e98
Added the camera position and the models position to pbr shader
2022-07-18 14:17:08 +01:00
b4fda4612c
Re-rendered same scene with hard coded values pbr code from https://learnopengl.com/PBR/Lighting
2022-06-16 15:14:53 +01:00
3700494d84
Rotation added to model (whole system is currently dirty)
2022-06-16 14:23:12 +01:00
1f6079dd25
added ability to resize models so I don't have to tinker with gun model.
2022-06-16 14:04:18 +01:00
8ef9ef72ca
Added pbr compatible model to be rendered
2022-06-16 13:36:48 +01:00
a89a5745ea
Fixed camera looking at last frame's forward target.
2022-06-14 15:53:52 +01:00
cf964bf235
Unload textures when model is deleted, and remove warnings.
2022-06-14 14:34:30 +01:00
a91fc3d57d
Added diffuse lighting
2022-06-13 14:07:55 +01:00
16dd10f252
Allowed user to quite the program with the escape key.
2022-06-13 13:25:04 +01:00
9e5514e5ba
Fixed the texture issue. The texture was upside down.
2022-06-09 15:01:30 +01:00
3dd235397a
Actually added textures to loaded texture buffer so we can skip loading already loaded texetures.
2022-06-09 13:47:55 +01:00
18a785613d
The engine can now import models with textures but bugs.
...
More complex models have a bug where the same textures are potentially
being loaded too many times.
2022-05-31 14:43:44 +01:00
a33ff9d029
Added test cube for model loading, discovered vertices are alright it appears to be an issue with the textures.
2022-05-17 15:07:40 +01:00
037233ddf2
fixed filename issue, (WARNING next bug may brick machine)
2022-04-29 16:40:03 +01:00
685aafd45f
Fixed being stuck in an infinite loop whilst loading model indecies
2022-04-29 16:28:16 +01:00